From f693bff9380c9c57c1cae9fbb93e073d9932adbb Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Wed, 5 Apr 2017 19:09:49 +0100 Subject: [PATCH] use dotnet instead of msbuild --- Jenkinsfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fd015f6..83f01e7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,10 +12,13 @@ node { bat "\"${tool 'MSBuild'}\" Facepunch.Steamworks/Facepunch.Steamworks.csproj /p:Configuration=Debug /p:ProductVersion=1.0.0.${env.BUILD_NUMBER}" stage 'Build Release NetCore' - bat "\"${tool 'MSBuild'}\" Facepunch.Steamworks/Facepunch.Steamworks.NetCore.csproj /p:Configuration=Release /p:ProductVersion=1.0.0.${env.BUILD_NUMBER}" + bat "dotnet restore Facepunch.Steamworks/Facepunch.Steamworks.NetCore.csproj" + + stage 'Build Release NetCore' + bat "dotnet build Facepunch.Steamworks/Facepunch.Steamworks.NetCore.csproj --configuration Release" stage 'Build Debug NetCore' - bat "\"${tool 'MSBuild'}\" Facepunch.Steamworks/Facepunch.Steamworks.NetCore.csproj /p:Configuration=Debug /p:ProductVersion=1.0.0.${env.BUILD_NUMBER}" + bat "dotnet build Facepunch.Steamworks/Facepunch.Steamworks.NetCore.csproj --configuration Debug" stage 'Archive' archiveArtifacts artifacts: 'Facepunch.Steamworks/bin/**/*'