forked from codebude/QRCoder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MyGet.bat
31 lines (21 loc) · 1.3 KB
/
MyGet.bat
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
@echo Off
set config=%1
if "%config%" == "" (
set config=Release
)
echo Working dir: %cd%
dotnet clean -c %config%
dotnet build -c %config% || EXIT /B 1
echo Assembly information
powershell -Command "[Reflection.Assembly]::ReflectionOnlyLoadFrom(\"%cd%\QRCoder\bin\%config%\net35\QRCoder.dll\").ImageRuntimeVersion"
certUtil -hashfile "QRCoder\bin\%config%\net35\QRCoder.dll" md5
powershell -Command "[Reflection.Assembly]::ReflectionOnlyLoadFrom(\"%cd%\QRCoder\bin\%config%\net40\QRCoder.dll\").ImageRuntimeVersion"
certUtil -hashfile "QRCoder\bin\%config%\net40\QRCoder.dll" md5
powershell -Command "[Reflection.Assembly]::ReflectionOnlyLoadFrom(\"%cd%\QRCoder\bin\%config%\netstandard1.1\QRCoder.dll\").ImageRuntimeVersion"
certUtil -hashfile "QRCoder\bin\%config%\netstandard1.1\QRCoder.dll" md5
powershell -Command "[Reflection.Assembly]::ReflectionOnlyLoadFrom(\"%cd%\QRCoder\bin\%config%\netstandard2.0\QRCoder.dll\").ImageRuntimeVersion"
certUtil -hashfile "QRCoder\bin\%config%\netstandard2.0\QRCoder.dll" md5
dotnet test QRCoderTests\QRCoderTests.csproj --framework net452 || EXIT /B 1
dotnet test QRCoderTests\QRCoderTests.csproj --framework netcoreapp1.1 || EXIT /B 1
dotnet test QRCoderTests\QRCoderTests.csproj --framework netcoreapp2.0 || EXIT /B 1
dotnet pack QRCoder\QRCoder.csproj -c %config% --no-build