12 lines
320 B
Batchfile
12 lines
320 B
Batchfile
@echo off
|
|
set FROM=%1
|
|
set TO=%2
|
|
set PDB=%FROM:~0,-4%.pdb
|
|
set ASSEMBLY=%TO:~0,-4%
|
|
if exist %2 regasm /nologo /silent /u %2
|
|
if exist %2 gacutil /silent /nologo /uf "%ASSEMBLY%" /r FILEPATH %2 "%ASSEMBLY%"
|
|
copy /y %1 > nul
|
|
if exist %PDB% copy /y %PDB% > nul
|
|
gacutil /nologo /i %2
|
|
regasm /nologo /codebase %2
|