简体   繁体   English

如何避免在构建服务器上的GAC中安装.NET程序集?

[英]How do I avoid installing .NET assemblies in the GAC on our build server?

We're using Windows Identity Foundation in some of our applications. 我们在一些应用程序中使用Windows Identity Foundation。 On the developer machines, this installs various bits into the GAC. 在开发人员计算机上,这会将各种位安装到GAC中。

I'd rather not do this on our build agents. 我宁愿不在我们的构建代理上执行此操作。

In general, how do I pull .NET assemblies from the GAC so that I can reference them in our builds? 一般来说,如何从GAC中提取.NET程序集以便我可以在构建中引用它们?

Make sure you put "copy local", in order to avoid deploy problems. 确保放置“copy local”,以避免部署问题。 (right click on the reference, properties, copy local, true). (右键单击引用,属性,复制本地,true)。

Hope it helps 希望能帮助到你

In your references, click each of the Dlls in question and set their "Copy Local" property to True. 在您的参考文献中,单击相关的每个Dll并将其“Copy Local”属性设置为True。 This should mean that when you build they get copied into the bin folder of the application. 这应该意味着在构建时,它们会被复制到应用程序的bin文件夹中。

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

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