开发者

Visual Studio - SharePoint 2010 - Include Assembly > Quick Question

开发者 https://www.devze.com 2023-01-09 10:17 出处:网络
I have a quick question....building a VS 2010 Share开发者_如何学运维Point project and I am referencing a custom assembly.I can reference this assembly in my code and it works fine to write code and al

I have a quick question....building a VS 2010 Share开发者_如何学运维Point project and I am referencing a custom assembly. I can reference this assembly in my code and it works fine to write code and all. When I deploy the project to SharePoint my Feature Activation code will not run because the custom assembly does not get deployed with the project.

I have set Copy Local to TRUE on the referenced assembly. Am I missing something?

Thanks


When you Create SharePoint Project in Visual Studio 2010, you will see a Item called Package in it.Click open it and bottom left corner click on Advanced, you will see an option to add additional assemblies , add as many you want > all assemblies you select here will get deployed as a Part of SHarePoint Package you create.


Not sure if this is what you're looking for, but you can use ilmerge.exe to bundle satellite managed assemblies into your executable, making it portable and more easily deployed. I use it all the time, it works great.

You can set up a build event in VS2010 to do this automatically whenever you build, too, though it can be a bit slow (I have it set as a Release-only build event for this reason).

0

精彩评论

暂无评论...
验证码 换一张
取 消