Gac Multiple Projects from Visual Studio

We currently have "gacutil / i $ (TargetPath)" as an external tool in visual studio, and it works great for one project.

I want to be able to select multiple projects and gac, so I put together a script package for testing.

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 connect it as "MultiGac.bat $ (TargetPath)" and select multiple projects and try not to work it.

Has anyone written any execution tools like AddIn or external tool? How about using regsvcs?

thank

+1


source to share


2 answers


I had to write Add In, which checked all gac'd projects and wrote them down.



+1


source


Environment variables inside batch files must use double% as a prefix:



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


source







All Articles