Scenario:
You want to automate few things in your developemt environment and one common thing you want to do is to push binaries to GAC easily.
Solution:
You can use GACUtil.exe , but where is it.
Look at following places
1. C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\
2. C:\Program Files\Microsoft Visual Studio 9.0\SDK\v3.5\Bin\
3. C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin
4. C:\Windows\Microsoft.NET\Framework\v1.1.4322
5. More google
Code(PushToGAc.bat):
@SET GACUTIL="C:\Windows\Microsoft.NET\Framework\v1.1.4322\gacutil.exe"Article:
%GACUTIL% /u "MyDllName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=53f6ae95f6ddsa1"
%GACUTIL% -I bin\debug\MyDLLName.dll
cscript c:\windows\system32\iisapp.vbs /a "[App_Pool_Name]" /r
0 comments:
Post a Comment