Visual Studio - SharePoint 2010 - Include Assembly > Quick Question

前端 未结 2 1108
名媛妹妹
名媛妹妹 2021-01-20 08:16

I have a quick question....building a VS 2010 SharePoint project and I am referencing a custom assembly. I can reference this assembly in my code and it works fine to write

相关标签:
2条回答
  • 2021-01-20 08:51

    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.

    0 讨论(0)
  • 2021-01-20 08:58

    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 讨论(0)
提交回复
热议问题