forked from FantasticFiasco/mvvm-dialogs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuild.bat
17 lines (13 loc) · 806 Bytes
/
Build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
set SOLUTION=src\MvvmDialogs.sln
set NUSPEC=src\MvvmDialogs.nuspec
set NETPROJECT=src\NET\MvvmDialogs\MvvmDialogs.csproj
set UNIVERSALPROJECT=src\Universal\MvvmDialogs\MvvmDialogs.csproj
set LOGGER=C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll
nuget restore %SOLUTION%
rem Build solution in default configuration
msbuild %SOLUTION% /t:Rebuild /p:Configuration=Release /m /logger:"%LOGGER%"
rem Build .NET project in additional versions
msbuild %NETPROJECT% /t:Rebuild /p:Configuration=Release;TargetFrameworkVersion=v4.0 /m /logger:"%LOGGER%"
msbuild %NETPROJECT% /t:Rebuild /p:Configuration=Release;TargetFrameworkVersion=v3.5 /m /logger:"%LOGGER%"
if not %APPVEYOR_REPO_BRANCH%==master set VERSION_SUFFIX=-beta
nuget pack %NUSPEC% -version %APPVEYOR_BUILD_VERSION%%VERSION_SUFFIX%