Since .net 4.0, an important change is the GAC location is moved to,
C:\Windows\Microsoft.NET\assembly\GAC_MSIL
and the gacutil program is in,
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin
For .net framework 4.5
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools
So in visual studio.net 2010 or later, in the post build event, you can put in the following codes to add them into the right gac location,
@CALL "%VS100COMNTOOLS%vsvars32.bat"
@gacutil -if $(TargetFileName)
No comments:
Post a Comment