I'm trying to Build a Nunit Test using NUnit.ConsoleRunner in VSTS. I have provided path to custom testAdapter(See screenshot). But it seems like No test was executed.
[2018-04-08T18:41:54.0612737Z ##\[section\]Starting: VsTest - testAssemblies
2018-04-08T18:41:54.0619175Z ==============================================================================
2018-04-08T18:41:54.0619365Z Task : Visual Studio Test
2018-04-08T18:41:54.0619652Z Description : Run unit and functional tests (Selenium, Appium, Coded UI test, etc.) using the Visual Studio Test runner. Test frameworks that have a Visual Studio test adapter such as xUnit, NUnit, Chutzpah, etc. can also be run. Tests can be distributed on multiple agents using this task (version 2).
2018-04-08T18:41:54.0619877Z Version : 2.3.28
2018-04-08T18:41:54.0619996Z Author : Microsoft Corporation
2018-04-08T18:41:54.0620167Z Help : \[More Information\](https://go.microsoft.com/fwlink/?LinkId=835764)
2018-04-08T18:41:54.0620311Z ==============================================================================
2018-04-08T18:41:54.8812472Z Run the tests locally using vstest.console.exe
2018-04-08T18:41:54.8812753Z ========================================================
2018-04-08T18:41:54.8813319Z Test selector : Test assemblies
2018-04-08T18:41:54.8813511Z Test assemblies : **\*Test*.dll
2018-04-08T18:41:54.8813672Z Test filter criteria : null
2018-04-08T18:41:54.8813829Z Search folder : D:\a\1\s
2018-04-08T18:41:54.8813996Z Run settings file : D:\a\1\s
2018-04-08T18:41:54.8814208Z Run in parallel : false
2018-04-08T18:41:54.8814365Z Run in isolation : false
2018-04-08T18:41:54.8815225Z Path to custom adapters : D:\a\1\s\packages\NUnit.ConsoleRunner.3.8.0\tools
2018-04-08T18:41:54.8815399Z Other console options : null
2018-04-08T18:41:54.8815674Z Code coverage enabled : true
2018-04-08T18:41:54.8816110Z Rerun failed tests: false
2018-04-08T18:41:54.8816314Z VisualStudio version selected for test execution : 15.0
2018-04-08T18:41:55.9616722Z ========================================================
2018-04-08T18:41:56.3694859Z \[command\]"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" #C:\Users\VSSADM~1\AppData\Local\Temp\83279701-3b5c-11e8-9819-d7c3479be946.txt
2018-04-08T18:42:01.0080893Z Microsoft (R) Test Execution Command Line Tool Version 15.6.0
2018-04-08T18:42:01.0085729Z Copyright (c) Microsoft Corporation. All rights reserved.
2018-04-08T18:42:01.0085868Z
2018-04-08T18:42:01.2058417Z vstest.console.exe
2018-04-08T18:42:01.2058820Z "D:\a\1\s\UnitTestProject1\bin\Debug\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll"
2018-04-08T18:42:01.2059138Z "D:\a\1\s\UnitTestProject1\bin\Debug\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.dll"
2018-04-08T18:42:01.2059736Z "D:\a\1\s\UnitTestProject1\bin\Debug\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll"
2018-04-08T18:42:01.2060603Z "D:\a\1\s\UnitTestProject1\bin\Debug\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll"
2018-04-08T18:42:01.2061575Z "D:\a\1\s\UnitTestProject1\bin\Debug\Microsoft.VisualStudio.TestPlatform.TestFramework.dll"
2018-04-08T18:42:01.2062254Z "D:\a\1\s\UnitTestProject1\bin\Debug\NUnit3.TestAdapter.dll"
2018-04-08T18:42:01.2062955Z "D:\a\1\s\UnitTestProject1\bin\Debug\UnitTestProject1.dll"
2018-04-08T18:42:01.2063475Z "D:\a\1\s\UnitTestProject1\obj\Debug\UnitTestProject1.dll"
2018-04-08T18:42:01.2064146Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll"
2018-04-08T18:42:01.2064715Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.dll"
2018-04-08T18:42:01.2065487Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll"
2018-04-08T18:42:01.2066106Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\Microsoft.VisualStudio.TestPlatform.TestFramework.dll"
2018-04-08T18:42:01.2066819Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\cs\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll"
2018-04-08T18:42:01.2069097Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\cs\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll"
2018-04-08T18:42:01.2069646Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\cs\Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll"
2018-04-08T18:42:01.2070538Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\de\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll"
2018-04-08T18:42:01.2072720Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\de\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll"
2018-04-08T18:42:01.2073885Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\de\Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll"
2018-04-08T18:42:01.2074629Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\es\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll"
2018-04-08T18:42:01.2074992Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\es\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll"
2018-04-08T18:42:01.2075215Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\es\Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll"
2018-04-08T18:42:01.2075446Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\fr\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll"
2018-04-08T18:42:01.2075900Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\fr\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll"
2018-04-08T18:42:01.2076316Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\fr\Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll"
2018-04-08T18:42:01.2076700Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\it\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll"
2018-04-08T18:42:01.2076992Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\it\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll"
2018-04-08T18:42:01.2077185Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\it\Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll"
2018-04-08T18:42:01.2077385Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\ja\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll"
2018-04-08T18:42:01.2077572Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\ja\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll"
2018-04-08T18:42:01.2077877Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\ja\Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll"
2018-04-08T18:42:01.2078228Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\ko\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll"
2018-04-08T18:42:01.2078396Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\ko\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll"
2018-04-08T18:42:01.2078569Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\ko\Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll"
2018-04-08T18:42:01.2078744Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\pl\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll"
2018-04-08T18:42:01.2079025Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\pl\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll"
2018-04-08T18:42:01.2079209Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\pl\Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll"
2018-04-08T18:42:01.2079380Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\pt\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll"
2018-04-08T18:42:01.2079547Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\pt\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll"
2018-04-08T18:42:01.2080177Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\pt\Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll"
2018-04-08T18:42:01.2080340Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\ru\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll"
2018-04-08T18:42:01.2080532Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\ru\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll"
2018-04-08T18:42:01.2080696Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\ru\Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll"
2018-04-08T18:42:01.2080872Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\tr\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll"
2018-04-08T18:42:01.2081056Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\tr\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll"
2018-04-08T18:42:01.2081228Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\tr\Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll"
2018-04-08T18:42:01.2081409Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\zh-Hans\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll"
2018-04-08T18:42:01.2081581Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\zh-Hans\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll"
2018-04-08T18:42:01.2081927Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\zh-Hans\Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll"
2018-04-08T18:42:01.2082129Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\zh-Hant\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.resources.dll"
2018-04-08T18:42:01.2082299Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\zh-Hant\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.resources.dll"
2018-04-08T18:42:01.2082473Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\_common\zh-Hant\Microsoft.VisualStudio.TestPlatform.TestFramework.resources.dll"
2018-04-08T18:42:01.2082657Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\netcoreapp1.0\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll"
2018-04-08T18:42:01.2082820Z "D:\a\1\s\packages\MSTest.TestAdapter.1.2.0\build\uap10.0\Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll"
2018-04-08T18:42:01.2082999Z "D:\a\1\s\packages\MSTest.TestFramework.1.2.0\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll"
2018-04-08T18:42:01.2083191Z "D:\a\1\s\packages\MSTest.TestFramework.1.2.0\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll"
2018-04-08T18:42:01.2083456Z "D:\a\1\s\packages\MSTest.TestFramework.1.2.0\lib\netstandard1.0\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll"
2018-04-08T18:42:01.2083635Z "D:\a\1\s\packages\MSTest.TestFramework.1.2.0\lib\netstandard1.0\Microsoft.VisualStudio.TestPlatform.TestFramework.dll"
2018-04-08T18:42:01.2083803Z "D:\a\1\s\packages\MSTest.TestFramework.1.2.0\lib\uap10.0\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll"
2018-04-08T18:42:01.2083961Z "D:\a\1\s\packages\MSTest.TestFramework.1.2.0\lib\uap10.0\Microsoft.VisualStudio.TestPlatform.TestFramework.dll"
2018-04-08T18:42:01.2084123Z "D:\a\1\s\packages\NUnit3TestAdapter.3.10.0\build\net35\NUnit3.TestAdapter.dll"
2018-04-08T18:42:01.2084262Z "D:\a\1\s\packages\NUnit3TestAdapter.3.10.0\build\netcoreapp1.0\NUnit3.TestAdapter.dll"
2018-04-08T18:42:01.2084380Z /EnableCodeCoverage
2018-04-08T18:42:01.2084494Z /logger:"trx"
2018-04-08T18:42:01.2084617Z /TestAdapterPath:"D:\a\1\s\packages\NUnit.ConsoleRunner.3.8.0\tools"
2018-04-08T18:42:05.3127054Z Starting test execution, please wait...
Message: "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."
2018-04-08T18:42:05.8696418Z 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.
2018-04-08T18:42:05.8697240Z Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll is built for Framework 4.5 and Platform AnyCPU.
2018-04-08T18:42:05.8697506Z Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.dll is built for Framework 4.5 and Platform AnyCPU.
2018-04-08T18:42:05.8697806Z Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll is built for Framework 4.5 and Platform AnyCPU.
2018-04-08T18:42:05.8698031Z Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll is built for Framework 4.5 and Platform AnyCPU.
2018-04-08T18:42:05.8698378Z Microsoft.VisualStudio.TestPlatform.TestFramework.dll is built for Framework 4.5 and Platform AnyCPU.
2018-04-08T18:42:05.8698717Z UnitTestProject1.dll is built for Framework 4.6.1 and Platform AnyCPU.
2018-04-08T18:42:05.8698916Z UnitTestProject1.dll is built for Framework 4.6.1 and Platform AnyCPU.
2018-04-08T18:42:05.8699148Z Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll is built for Framework 4.5 and Platform AnyCPU.
2018-04-08T18:42:05.8699439Z Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.dll is built for Framework 4.5 and Platform AnyCPU.
2018-04-08T18:42:05.8699690Z Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll is built for Framework 4.5 and Platform AnyCPU.
2018-04-08T18:42:05.8699910Z Microsoft.VisualStudio.TestPlatform.TestFramework.dll is built for Framework 4.5 and Platform AnyCPU.
2018-04-08T18:42:05.8700130Z Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll is built for Framework 1.5 and Platform AnyCPU.
2018-04-08T18:42:05.8700371Z Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll is built for Framework 5.0 and Platform AnyCPU.
2018-04-08T18:42:05.8700606Z Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll is built for Framework 4.5 and Platform AnyCPU.
2018-04-08T18:42:05.8700842Z Microsoft.VisualStudio.TestPlatform.TestFramework.dll is built for Framework 4.5 and Platform AnyCPU.
2018-04-08T18:42:05.8701071Z Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll is built for Framework 4.5 and Platform AnyCPU.
2018-04-08T18:42:05.8701289Z Microsoft.VisualStudio.TestPlatform.TestFramework.dll is built for Framework 4.5 and Platform AnyCPU.
2018-04-08T18:42:05.8701521Z Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll is built for Framework 5.0 and Platform AnyCPU.
2018-04-08T18:42:05.8701737Z Microsoft.VisualStudio.TestPlatform.TestFramework.dll is built for Framework 4.5 and Platform AnyCPU.
2018-04-08T18:42:05.8701957Z NUnit3.TestAdapter.dll is built for Framework 1.0 and Platform AnyCPU.
2018-04-08T18:42:05.8702323Z Go to http://go.microsoft.com/fwlink/?LinkID=236877&clcid=0x409 for more details on managing these settings.
2018-04-08T18:42:05.8702484Z
2018-04-08T18:42:14.1988661Z M][1]
You are telling vstest-console that the adapter to use is the NUnit.ConsoleRunner. However, NUnit.ConsoleRunner is not an adapter for vstest. It's a standalone program for running tests - just like vstest-console.
In order to use vstest-console, you have to point to an installation of the NUnit 3 VS Test Adapter, which you can find on nuget.org.
Related
I'm stuck in a rut with this proble. After converting some solution projects in .netstandard 2.0 the pipeline doesn't compile. Other are .NET Framework 4.8 projects.
Here the errors
Installed SDKs: No .NET SDKs were found.
Install the [6.0.400] .NET SDK or update
[E:\myApplicationFolder\global.json] to match an installed SDK.
Download a .NET SDK: https://aka.ms/dotnet-download
I tried the following steps:
installed VS 2022 and tells to the pipeline to use VS 2022 msbuild
installed the .NET sdk
created the global.json choerent with the solution
checked the environment variables (they point to C:\Program Files\dotnet)
checked the version of .NET SDK
This is the global.json
{
"sdk": {
"version": "6.0.400"
}
}
There are the configuration on the pipeline
I don't have any troubles building the solution with msbuild from powershell.
Any other suggestions? Thanks
Many problems, Azure DevOps isn't updated to the latest version and can't manage .NET 6.0 solutions. I had to specify the msbuild of VS 2022 also to restore nuget packages
In test run log I have Run UnitTests step, which uses Visual Studio Test. However I see log message:
No test is available in C:\stuff\Debug\x64\bin\x86\ilc\MyApp.Test.dll some_other_dlls Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.
Test are visible in visual studio, and I can run all of them (I have over 50 tests).
I have xunit.runner.visualstudio package installed. What I am missing, why Azure ignores my tests?
**************** Starting test execution *********************
\vstest.console.exe "#C:\path\fadisfjla.tmp"
Microsoft (R) Test Execution Command Line Tool Version 16.4.0
Copyright (c) Microsoft Corporation. All rights reserved.
vstest.console.exe "C:\dir\Release\x64\bin\arm\MyApp.Test\testhost.dll"
"C:\dir\Release\x64\bin\arm\MyApp.Test\xunit.runner.visualstudio.uwp.testadapter.dll"
"C:\dir\Release\x64\bin\arm\ilc\MyApp.Test.dll"
"C:\dir\Release\x64\bin\x86\MyApp.Test\testhost.dll"
"C:\dir\Release\x64\bin\x86\MyApp.Test\xunit.runner.visualstudio.uwp.testadapter.dll"
"C:\dir\Release\x64\bin\x86\ilc\MyApp.Test.dll"
/Settings:"C:\tmp\fadslfj.tmp.runsettings"
/EnableCodeCoverage
/Logger:"trx"
/TestAdapterPath:"C:\dir\Release\x64"
Starting test execution, please wait...
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.
testhost.dll is built for Framework .NETStandard,Version=v1.4 and Platform AnyCPU.
xunit.runner.visualstudio.uwp.testadapter.dll is built for Framework .NETCore,Version=v5.0 and Platform AnyCPU.
MyApp.Test.dll is built for Framework .NETFramework,Version=v4.0 and Platform ARM.
testhost.dll is built for Framework .NETStandard,Version=v1.4 and Platform AnyCPU.
xunit.runner.visualstudio.uwp.testadapter.dll is built for Framework .NETCore,Version=v5.0 and Platform AnyCPU.
Go to more details on managing these settings.
Microsoft (R) Coverage Collection Tool Version 16.0.30319.200
Copyright (c) Microsoft Corporation. All rights reserved.
1.5873
A total of 6 test files matched the specified pattern.
No test is available in C:\dir\Release\x64\bin\arm\MyApp.Test\testhost.dll C:\dir\Release\x64\bin\arm\MyApp.Test\xunit.runner.visualstudio.uwp.testadapter.dll C:\dir\Release\x64\bin\arm\ilc\MyApp.Test.dll C:\dir\Release\x64\bin\x86\MyApp.Test\testhost.dll C:\dir\Release\x64\bin\x86\MyApp.Test\xunit.runner.visualstudio.uwp.testadapter.dll C:\dir\Release\x64\bin\x86\ilc\MyApp.Test.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.
Microsoft (R) Coverage Collection Tool Version 16.0.30319.200
Copyright (c) Microsoft Corporation. All rights reserved.
Results File: C:\path\fdsfdsfd.trx
Attachments:
C:\path\file-dfsfdsfe.coverage
Vstest.console.exe exited with code 0.
In my project file
<PackageReference Include="xunit.runner.visualstudio">
<Version>2.4.1</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
First, make sure you have added the xunit.runner.visualstudio package. And then make sure you have pointed to your generated test assemblies under Test selection/Test filesin Visual Studio Test task, for example:
**\bin\$(BuildConfiguration)\**\*test*.dll
!**\obj\**
!**\xunit.runner.visualstudio.testadapter.dll
!**\xunit.runner.visualstudio.dotnetcore.testadapter.dll
Check the following link:
https://xunit.net/docs/getting-test-results-in-azure-devops
It turns out that if You have UWP project for Windows version 1803, and refrence it from test project in this version it ignores all tests in test project. I think this is issue in xunit or windows sdk. If just test project is updated to 1903 it works flawlessly.
EdmGen.exe is not supporting targetversion 4.7.2.
Exception thrown as "error 7025: Only .NET Framework version 4 and 4.5 are supported. To use another version use the tools that shipped with that version."
To the best of my knowledge there is latest version of EdmGen.exe. Is there any way that I can generate edmx with target .net framework version 4.7.2 ...?
I'm trying to build a .netcore 1.1 console project using postsharp 5.0.31 on macOS Sierra, but when I run the command line:
dotnet build
The build fail and show the next output;
MacBook-Pro:PostsharpSample userx$ dotnet build
Microsoft (R) Build Engine version 15.1.548.43366
Copyright (C) Microsoft Corporation. All rights reserved.
PostsharpSample -> /Users/userx/Documents/VSCode/netcore/PostsharpSample/bin/Debug/netcoreapp1.1/PostsharpSample.dll/Users/userx/.nuget/packages/postsharp/5.0.31/build/PostSharp.targets(564,5): error MSB4062:
The "PostSharp.MSBuild.PostSharp30ChangeAppConfig" task could not be loaded from the assembly /Users/userx/.nuget/packages/postsharp/5.0.31/build/PostSharp.MSBuild.v5.0.31.Release.dll.
Could not load file or assembly 'Microsoft.Build.Utilities.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
The system cannot find the file specified. [/Users/userx/Documents/VSCode/netcore/PostsharpSample/PostsharpSample.csproj]/Users/userx/.nuget/packages/postsharp/5.0.31/build/PostSharp.targets(564,5):
error MSB4062: Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [/Users/userx/Documents/VSCode/netcore/PostsharpSample/PostsharpSample.csproj]
It is possible to use .netcore and Postsharp on macOS Sierra?
I need specific configuration?
As of version 5.0, PostSharp does not support building under any OS other the Windows. .NET Core is supported only as a target framework for your projects.
Please refer to http://doc.postsharp.net/requirements for latest information on compatibility.
You can also vote for adding support for .NET Core as a build platform on this UserVoice page: Support for CoreCLR as a build platform (including Linux, iOS).
I'm trying to setup a build definition for a new ASPNET Core webapp.
The setup of the build definition is exactly this:
Official Docs
The build fails at building the solution with this error:
Issues
Build
File name doesn't indicate a full path to a executable file.
GETSDKTOOLINGINFO (0, 0)
The project is configured to use .NET Core SDK version 1.0.0-preview2-003131 which is not installed or cannot be found under the path C:\Program Files\dotnet. These components are required to build and run this project. Download the version of .NET Core SDK specified in global.json or update the SDK version in global.json to the version that is installed.
Process 'msbuild.exe' exited with code '1'.
Any guess on how to solve this?
Thanks
Francesco
You need to install the corresponding version of .Net SDK to build agent machine.
You can refer to this article to download .Net Core 1.0.0-preview2-003131 and install it on your build machine.
Assuming you are using hosted build agent. According to Software on the hosted build server, the hosted build server is deployed with the following .NET Framework:
.NET 4.6
.NET 4.5.2
.NET 4.5.1
.NET 4.5
.NET 3.5 SP1
.NET Core 1.0 with Preview 2 Tooling
You may try to deploy an on-premises build agent and install .NET Core 1.0.1 SDK 1.0.0-preview2-003131 to work with VSTS: https://www.visualstudio.com/en-us/docs/build/admin/index#deploy_agent.
If you insist on using hosted build agent, then you need to use version of Microsoft.NETCore.App that is installed in VSTS, for example:
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.0.0-rc2-3002702",
"type": "platform"
},
In my case, it was just a change in global.config:
{
"projects": [ "src", "test" ],
"sdk": {
"version": "1.0.0-preview2-003121"
}
}
As long as 1.0.0-preview2-003131 is not available on VSO build hosts