Monday, 29 September 2014

Gac all assemblies in a directory


Installs all assemblies in a particular directory into the global assembly cache from batch file.


@SETLOCAL
@ECHO OFF
@CALL "%VS110COMNTOOLS%vsvars32.bat"

@SET BuildFolder=..\bin\Debug

@ECHO.
@ECHO GAC all project assemblies...


@for %%f in (%BuildFolder%\*.dll) do (

        @echo %%~nf.dll
@gacutil -if %BuildFolder%\%%~nf.dll
    )

@PAUSE
@EXIT
@ENDLOCAL

No comments:

Post a Comment