开发者

msbuild: how to register different versions of the same dll?

开发者 https://www.devze.com 2023-04-06 11:42 出处:网络
I have the following dll registration within my ms build now using the code below although we work with different code bases which might开发者_StackOverflow need different versions of the dll register

I have the following dll registration within my ms build now using the code below although we work with different code bases which might开发者_StackOverflow need different versions of the dll registered, i.e. MyLib.dll that represents the development version and another MyLib.dll that's for a production equivalent. Is it possible to register a DLL this way? I.e. potentially multiple MyLib.dlls but with some unique key or something..(?) In the example code below it seems to correctly remove any existing dll called MyLib and then to register the newest version.

Thanks, James

<Target Name="MyLib">
<Exec Command="%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe ..\..\Library\MyLib.dll /unregister"></Exec>        
<Exec Command="%WinDir%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe ..\..\Library\MyLib.dll"></Exec>
</Target>
0

精彩评论

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

关注公众号