来自 Visual Studio 的 Gac 多个项目

发布于 2024-07-11 18:00:22 字数 419 浏览 4 评论 0原文

目前,我们有“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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

雨夜星沙 2024-07-18 18:00:22

必须编写一个加载项来扫描所有项目,并进行 gac 和 reg 注册。

Had to write an Add In that scanned all projects an gac'd and reg'd them.

荒芜了季节 2024-07-18 18:00:22

批处理文件内的环境变量应使用双%作为前缀:

for %%i in (*.dll) do gacutil.exe /f /il %%i

Environment variables inside batch files should use double % as prefix:

for %%i in (*.dll) do gacutil.exe /f /il %%i
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文