-
Notifications
You must be signed in to change notification settings - Fork 89
/
Reg-boot-4.0.cmd
34 lines (27 loc) · 1.1 KB
/
Reg-boot-4.0.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@echo off
IF "%Type%"=="" set Type=Debug
set NemerleBin=%~dp0bin\%Type%
set GacUtil="%VS100COMNTOOLS%..\..\SDK\v2.0\Bin\gacutil.exe"
set NemerleInstall=boot-4.0
IF NOT "%PROCESSOR_ARCHITECTURE%" == "x86" goto b64
IF NOT "%PROCESSOR_ARCHITEW6432%" == "" goto b64
set NGen="%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\ngen.exe"
goto b32
:b64
set NGen="%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\ngen.exe"
:b32
@echo NemerleInstall=%NemerleInstall%
@echo VS100COMNTOOLS=%VS100COMNTOOLS%
@echo GacUtil=%GacUtil%
@echo NGen=%NGen%
%NGen% uninstall "%NemerleInstall%\Nemerle.dll"
%NGen% uninstall "%NemerleInstall%\Nemerle.Compiler.dll"
%NGen% uninstall "%NemerleInstall%\Nemerle.Macros.dll"
%NGen% uninstall "%NemerleInstall%\Nemerle.MSBuild.Tasks.dll"
%NGen% uninstall "%NemerleInstall%\ncc.exe"
@echo errorlevel=%errorlevel%
%NGen% install "%NemerleInstall%\Nemerle.dll"
%NGen% install "%NemerleInstall%\Nemerle.Compiler.dll"
%NGen% install "%NemerleInstall%\Nemerle.Macros.dll"
%NGen% install "%NemerleInstall%\Nemerle.MSBuild.Tasks.dll"
%NGen% install "%NemerleInstall%\ncc.exe"