简体   繁体   English

Visual Studio不会将程序集复制到GAC中

[英]visual studio does not copy assembly into gac

I have a class library and a sharepoint project. 我有一个班级图书馆和一个共享项目。 I have added a reference to the class library in the sharepoint project and when I click deploy I don't see the class library assembly in the gac. 我在sharepoint项目中添加了对类库的引用,当我单击“部署”时,在gac中看不到类库程序集。 I think this is not normal. 我认为这是不正常的。 can any please let me know how can I solve this issue without resorting to manual deployment? 请问让我知道如何在不依靠手动部署的情况下解决此问题? thank you. 谢谢。

You have to open the package in the package editor, go to Advanced, and add the class library's DLL there. 您必须在包编辑器中打开包,转到“高级”,然后在其中添加类库的DLL。 It doesn't happen automatically just from adding an assembly reference to the Sharepoint project. 仅将程序集引用添加到Sharepoint项目中并不会自动发生。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM