开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜