Copy dll to GAC from Visual Studio

24/04/2014 15:32

- Create Class library project in Visual Studio

- Write your classes


In project properties add post build command to copy it to GAC


"c:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\x64\gacutil.exe" /i "C:\yourdllpath\bin\Debug\yourdllname.dll"


or more generic

"c:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\x64\gacutil.exe" /i $(ProjectDir)$(OutDir)yourdllname.dll


more tokens for build command on https://msdn.microsoft.com/en-us/library/42x5kfw4.aspx