forked from npgsql/npgsql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpolicyFileBuild.bat
More file actions
28 lines (21 loc) · 1.04 KB
/
policyFileBuild.bat
File metadata and controls
28 lines (21 loc) · 1.04 KB
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
@if "%WindowsSdkDir%"=="" goto NO_WIN_SDK
@setlocal
@set net20out=bin\policies\net20
@set net40out=bin\policies\net40
@if not exist %net20out% mkdir %net20out%
@if not exist %net40out% mkdir %net40out%
@set aldir=%WindowsSdkDir_35%
:: If dev env is VS2010, then another path should be used.
@if "%aldir%"=="" set aldir=%WindowsSDKDir%\Bin
@"%aldir%\al.exe" /nologo /link:policy.2.0.Npgsql.config /out:%net20out%\policy.2.0.Npgsql.dll /keyfile:Npgsql\Npgsql.snk
@"%aldir%\NETFX 4.0 Tools\al.exe" /nologo /link:policy.2.0.Npgsql.config /out:%net40out%\policy.2.0.Npgsql.dll /keyfile:Npgsql\Npgsql.snk
@goto :EOF
:NO_WIN_SDK
@echo ==========================================================
@echo ERROR:
@echo Please make sure that an environment variable WindowsSdkDir_35 is set.
@echo This variable should point to the SDK dir which contains al.exe for clr 2.0.
@echo You can set this variable with launching command shell via Windows SDK Comamnd
@echo Prompt or Visual Studio Command Prompt.
@echo ==========================================================
@pause