forked from re-motion/IO
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGenerate-Snk.cmd
More file actions
42 lines (25 loc) · 795 Bytes
/
Copy pathGenerate-Snk.cmd
File metadata and controls
42 lines (25 loc) · 795 Bytes
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
35
36
37
38
39
40
41
42
@echo off
set keyfile=remotion.snk
echo Current directory: %CD%
echo Checking whether %keyfile% needs to be created...
echo.
if not exist %keyfile% goto notfound
echo %keyfile% already exists.
goto end
:notfound
echo %keyfile% does not exist, generating...
echo.
sn.exe -k %keyfile%
echo.
if %ERRORLEVEL%==9009 goto nosn
if not %ERRORLEVEL%==0 goto snerror
echo Note that this newly generated key file will not match the original key used by rubicon to sign re-motion assemblies.
goto end
:nosn
echo 'sn.exe', which is a part of the .NET/Windows SDK, could not be found in the PATH. Please set the PATH to include the .NET/Windows SDK or run this script from a Visual Studio command prompt.
exit /b 1
:snerror
echo There was an error executing 'sn.exe'.
exit /b 2
:end
exit /b 0