I have the following repository https://github.com/Mech0z/Foosball Where I have the following project file I would like the test step in pipelines to run
https://github.com/Mech0z/Foosball/blob/master/Integrationstest/Integrationstest.csproj
It has the following packages
<PackageReference Include="nunit" Version="3.12.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.15.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
And my yaml file is like this
- task: VSTest@2
inputs:
projects: '**/*/Integrationstest.csproj'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
But when it runs I get
Test run will use DLL(s) built for framework .NETFramework,Version=v4.0 and platform X86. Following DLL(s) do not match framework/platform settings. Integrationstest.dll is built for Framework .NETCoreApp,Version=v3.0 and Platform AnyCPU.
How do I change the .NET framework in my yaml file?