2

I've referenced SPMeta2 dlls into several of my solutions and I'm wondering if there is a way to add them to my wsp. "Copy to local" adds them to the output folder, but they're not included into the wsp.

I could manually add them to the package, but since there're monthly releases, I would have to update the reference each month again.

Is there an other way than to add those assemblies to GAC?

2

Yes, you can get them packaged in your WSP by opening the Package.package file in your VS project, click on the "Advanced" tab, click the "Add" button and choose "Add Existing Assembly."

Then for the "source path" just click on the ellipses button and browse to where the assembly is.

  • And after selection the dll you would choose GAC or Web Application? If I choose GAC it's not only added to the wsp but also directly deployed to GAC. – Andreas Dec 10 '15 at 8:56
  • Also since NuGet adds new folders for each new version I would have to manually update the path to the current assembly each time I update it. – Andreas Dec 10 '15 at 9:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.