来自 Visual Studio 的 Gac 多个项目
目前,我们有“gacutil /i $(TargetPath)”作为 Visual Studio 中的外部工具,它对于 gac'n 单个项目运行良好。
我希望能够选择多个项目并对其进行 gac,因此我编写了一个批处理脚本来进行测试。
set randomfile=%random%
echo %1 %2 %3 > %randomfile%
gacutil.exe /f /il %randomfile%
当我从命令行测试它时,它看起来应该可以工作。 然后,当我将其连接为“MultiGac.bat $(TargetPath)”并选择多个项目并尝试它不起作用时。
有没有人编写过任何工具来使用插件或外部工具来完成诸如tast之类的任务? 也使用 regsvcs 怎么样?
谢谢
We currently have "gacutil /i $(TargetPath)" as an external tool in visual studio and it works fine for gac'n a single project.
I want to be able to select multiple projects and gac them so I put together a batch script to test.
set randomfile=%random%
echo %1 %2 %3 > %randomfile%
gacutil.exe /f /il %randomfile%
When I test it from the command line it looks like it should work. Then when I hook it up as "MultiGac.bat $(TargetPath)" and select multiple projects and try it don't work.
Has anybody written any tools to accomplish such as tast either with a AddIn or external tool? How about using regsvcs as well?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
必须编写一个加载项来扫描所有项目,并进行 gac 和 reg 注册。
Had to write an Add In that scanned all projects an gac'd and reg'd them.
批处理文件内的环境变量应使用双%作为前缀:
Environment variables inside batch files should use double % as prefix: