开发者

Best way to deploy an assembly to the GAC on a build machine

开发者 https://www.devze.com 2023-04-04 08:02 出处:网络
Our unit tests expect to find a certain assembly in the GAC. I am wondering what is the best way to put the assembly in the GAC on the build server that is part of TFS201开发者_如何学Python0 automated

Our unit tests expect to find a certain assembly in the GAC. I am wondering what is the best way to put the assembly in the GAC on the build server that is part of TFS201开发者_如何学Python0 automated build? Is it a good idea to use a post build event with gacutil /i? Are there better alternatives?


Do your unit tests expect the DLL in the GAC or just available to .NET assembly probing? If it's actually the latter, why don't you use [DeploymentItem()] attributes and have the assembly copied to the test folder and then found by .NET via probing? Another option would be to use a HintPath in your test DLL's config file.

0

精彩评论

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