Skip to content

Commit

Permalink
Update azure-pipelines.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
Removed task to get VSTest nuget package and instead added target framework for VSTest task which is required for .NET Core test projects.
  • Loading branch information
robert-shattock committed Jun 5, 2020
1 parent 6eede6d commit 865865f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@ steps:
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:DesktopBuildPackageLocation="$(build.artifactStagingDirectory)\WebApp.zip" /p:DeployIisAppPath="Default Web Site"'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
- task: VisualStudioTestPlatformInstaller@1
inputs:
packageFeedSelector: 'nugetOrg'
versionSelector: 'latestPreRelease'

- task: VSTest@2
inputs:
testSelector: 'testAssemblies'
testAssemblyVer2: |
**\*test*.dll
!**\*TestAdapter.dll
!**\obj\**
searchFolder: '$(System.DefaultWorkingDirectory)'
otherConsoleOptions: '/framework:".NETCoreApp,Version=v3.1"'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'

Expand Down

0 comments on commit 865865f

Please sign in to comment.