-
Notifications
You must be signed in to change notification settings - Fork 455
Expand file tree
/
Copy pathbuild.cmd
More file actions
18 lines (13 loc) · 796 Bytes
/
build.cmd
File metadata and controls
18 lines (13 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@ECHO OFF
SET msbuild="%windir%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe"
IF '%1'=='' (SET configuration=Debug) ELSE (SET configuration=%1)
IF '%2'=='' (SET platform="x86") ELSE (SET platform=%2)
:: Because of some really annoying NuGet issues with CefSharp after restoring
:: I'm going to pre-emptively restore the packages and see if that addresses
:: the issue
.\src\.nuget\nuget.exe restore src/MarkPad.sln
:: Build the solution. Override the platform to account for running
:: from Visual Studio Tools command prompt (x64). Log quietly to the
:: console and verbosely to a file.
%msbuild% src/MarkPad.sln /t:Rebuild /nologo /property:Platform=%platform% /property:Configuration=%configuration% /verbosity:minimal /flp:verbosity=diagnostic
IF NOT ERRORLEVEL 0 EXIT /B %ERRORLEVEL%