summary refs log tree commit diff
diff options
context:
space:
mode:
authorOren Novotny <oren@novotny.org>2018-05-19 18:41:59 -0400
committerOren Novotny <oren@novotny.org>2018-05-19 18:41:59 -0400
commit419ee88073fdbb45ae962ab92d198817db7f5b32 (patch)
treefe04c160e3522f3fab9f23fee0565e86a1566c94
parentremove legacy PCL (diff)
downloadBouncyCastle.NET-ed25519-419ee88073fdbb45ae962ab92d198817db7f5b32.tar.xz
use dotnet build
-rw-r--r--.vsts-shared.yml21
1 files changed, 7 insertions, 14 deletions
diff --git a/.vsts-shared.yml b/.vsts-shared.yml
index 46cbb5ee9..b9e13c03f 100644
--- a/.vsts-shared.yml
+++ b/.vsts-shared.yml
@@ -2,13 +2,6 @@ parameters:
   signSteps: []
   
 steps:
-- task: BatchScript@1
-  inputs:
-    filename: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\Tools\\VsDevCmd.bat"
-    arguments: -no_logo
-    modifyEnvironment: true
-  displayName: Setup Environment Variables
-
 - task: NuGetToolInstaller@0
   displayName: Use NuGet 4.7.0
   inputs:
@@ -22,18 +15,18 @@ steps:
   displayName: Set Version
   condition: eq(variables['system.pullrequest.isfork'], false)
 
-- powershell: |        
-    mkdir $(Build.ArtifactStagingDirectory)\Packages
-    msbuild .\BouncyCastle.sln /restore /p:Configuration=$(BuildConfiguration) 
-    msbuild .\crypto\src\crypto.csproj /m /t:pack /p:Configuration=$(BuildConfiguration) /p:PackageId="Portable.BouncyCastle" /p:PackageOutputPath=$(Build.ArtifactStagingDirectory)\Packages
-  
-  displayName: Build
+- task: DotNetCoreCLI@2
+  inputs:
+    command: pack
+    projects: .\crypto\src\crypto.csproj 
+    arguments: -c $(BuildConfiguration) /p:PackageId="Portable.BouncyCastle" /p:PackageOutputPath=$(Build.ArtifactStagingDirectory)\Packages
+  displayName: Build  
   
 - task: DotNetCoreCLI@2
   inputs:
     command: test
     projects: .\crypto\test\crypto.test.csproj
-    arguments: -c $(BuildConfiguration) --no-build --no-restore
+    arguments: -c $(BuildConfiguration)
   displayName: Run Tests
   
 - ${{ parameters.signSteps }}