Files
Patrick GrawehrandDanielku15 2ca2ce2a6c Upgrade framework to 4.8 (#1)
* Remove distribution output from repo

* Update to .NET 4.8, change to new project format

* Remove NLog from C++, causes dependency nightmares

Squash this

* Project files updated to new format, removed obsolete properties

* Changes due to NUnit update

* Temporarily empty implementation

* Fix unit tests: Improve path handling

Use paths relative to bin folder, not to
current folder, as this may not be the same.

* Update build script

* Add back default logging

* Clean csprojs further, switch to mstest

* Restored master branch state on upgraded framework

Co-authored-by: Danielku15 <danielku15@coderline.net>
2020-07-13 21:46:36 +02:00

35 lines
810 B
Batchfile

@echo OFF
where msbuild >nul 2>&1
if %errorlevel% equ 0 (
goto compile
)
echo Looking for VS2019 Professional
SET VS="C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\Tools\VsDevCmd.bat"
if EXIST %VS% (
echo Found VS2019 Professional
call %VS%
goto compile
)
echo Looking for VS2019 Community
SET VS="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\VsDevCmd.bat"
if EXIST %VS% (
echo Found VS2019 Community
call %VS%
goto compile
)
echo "Could not detect Visual Studio 2019"
exit 1
:compile
echo "Building x64 (Debug)"
msbuild SigningServer.sln -t:Rebuild -p:Configuration=Debug -p:Platform=x64 -p:CopyToDist=true
echo "Building x64 (Release)"
msbuild SigningServer.sln -t:Rebuild -p:Configuration=Release -p:Platform=x64 -p:CopyToDist=true