Azure devops not running xunit tests - azure-devops

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.

Related

Why doesn't VSTS Build "Visual Studio Test" step find my NUnit tests?

I've configured a VSTS build job to build my MockingFrameworkExamples .NET 4.7.1 (C#) solution from GitHub. This solution includes five assemblies with NUnit v3.10 unit tests.
I included a Visual Studio Test step in the build definition, but when it runs, the console output says no tests were available in the test assemblies:
No test is available in D:\a\1\s\MSFakesExamples\bin\Release\MSFakesExamples.dll D:\a\1\s\MoqExamples\bin\Release\MoqExamples.dll D:\a\1\s\NSubstituteExamples\bin\Release\NSubstituteExamples.dll D:\a\1\s\RhinoMocksExamples\bin\Release\RhinoMocksExamples.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.
What do I need to change to have the test runner to find and run my tests?
My local Visual Studio 2017 instance has no trouble finding and running the tests. The documentation for the Visual Studio Test step says it will run NUnit tests:
Test frameworks that have a Visual Studio test adapter such as xUnit, NUnit, Chutzpah, etc. can also be run.
I've made sure the assemblies are actually building and I've also utilized the Typemock SmartRunner build step to run the tests, which finds and executes them (though, it fails with the MS Fakes assembly, so I can't just use it).
Below are the full build step configuration and the console output from the "Visual Studio Test" step. The build process is configured to run on a "Hosted VS2017" agent.
2018-07-19T18:28:28.1197107Z ##[section]Starting: VsTest - testAssemblies
2018-07-19T18:28:28.1205564Z ==============================================================================
2018-07-19T18:28:28.1205798Z Task : Visual Studio Test
2018-07-19T18:28:28.1206209Z 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-07-19T18:28:28.1206596Z Version : 2.136.10
2018-07-19T18:28:28.1206775Z Author : Microsoft Corporation
2018-07-19T18:28:28.1207003Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkId=835764)
2018-07-19T18:28:28.1207231Z ==============================================================================
2018-07-19T18:28:28.6970694Z Run the tests locally using vstest.console.exe
2018-07-19T18:28:28.6971006Z ========================================================
2018-07-19T18:28:28.6971725Z Test selector : Test assemblies
2018-07-19T18:28:28.6972103Z Test assemblies : **\release\*examples*.dll,!**\release\typemock*examples*.dll,!**\obj\**
2018-07-19T18:28:28.6972430Z Test filter criteria : null
2018-07-19T18:28:28.6972706Z Search folder : D:\a\1\s
2018-07-19T18:28:28.6972990Z Run settings file : D:\a\1\s
2018-07-19T18:28:28.6973481Z Run in parallel : false
2018-07-19T18:28:28.6973748Z Run in isolation : false
2018-07-19T18:28:28.6975710Z Path to custom adapters : null
2018-07-19T18:28:28.6975982Z Other console options : null
2018-07-19T18:28:28.6976254Z Code coverage enabled : true
2018-07-19T18:28:28.6976788Z Rerun failed tests: false
2018-07-19T18:28:28.6977166Z VisualStudio version selected for test execution : latest
2018-07-19T18:28:29.7035629Z ========================================================
2018-07-19T18:28:30.0191054Z [command]"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" #D:\a\_temp\88c64f61-8b81-11e8-a282-258e7155540f.txt
2018-07-19T18:28:33.5193511Z Microsoft (R) Test Execution Command Line Tool Version 15.7.2
2018-07-19T18:28:33.5198868Z Copyright (c) Microsoft Corporation. All rights reserved.
2018-07-19T18:28:33.5199025Z
2018-07-19T18:28:33.5440200Z vstest.console.exe
2018-07-19T18:28:33.5441525Z "D:\a\1\s\MSFakesExamples\bin\Release\MSFakesExamples.dll"
2018-07-19T18:28:33.5442179Z "D:\a\1\s\MoqExamples\bin\Release\MoqExamples.dll"
2018-07-19T18:28:33.5442549Z "D:\a\1\s\NSubstituteExamples\bin\Release\NSubstituteExamples.dll"
2018-07-19T18:28:33.5442909Z "D:\a\1\s\RhinoMocksExamples\bin\Release\RhinoMocksExamples.dll"
2018-07-19T18:28:33.5443312Z /EnableCodeCoverage
2018-07-19T18:28:33.5443575Z /logger:"trx"
2018-07-19T18:28:35.6891585Z Starting test execution, please wait...
2018-07-19T18:28:42.3946126Z Microsoft (R) Coverage Collection Tool Version 15.0.30319.1
2018-07-19T18:28:42.3947458Z
2018-07-19T18:28:42.3947721Z
2018-07-19T18:28:42.3948539Z Copyright (c) Microsoft Corporation. All rights reserved.
2018-07-19T18:28:42.3949162Z
2018-07-19T18:28:42.3949300Z
2018-07-19T18:28:42.3949487Z
2018-07-19T18:28:42.3949624Z
2018-07-19T18:28:42.6811429Z 2.7184
2018-07-19T18:28:53.8206723Z No test is available in D:\a\1\s\MSFakesExamples\bin\Release\MSFakesExamples.dll D:\a\1\s\MoqExamples\bin\Release\MoqExamples.dll D:\a\1\s\NSubstituteExamples\bin\Release\NSubstituteExamples.dll D:\a\1\s\RhinoMocksExamples\bin\Release\RhinoMocksExamples.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.
2018-07-19T18:28:53.9442220Z Microsoft (R) Coverage Collection Tool Version 15.0.30319.1
2018-07-19T18:28:53.9443798Z
2018-07-19T18:28:53.9445199Z
2018-07-19T18:28:53.9465185Z Copyright (c) Microsoft Corporation. All rights reserved.
2018-07-19T18:28:53.9465983Z
2018-07-19T18:28:53.9466184Z
2018-07-19T18:28:53.9466360Z
2018-07-19T18:28:53.9466554Z
2018-07-19T18:28:54.6483114Z
2018-07-19T18:28:54.6491201Z Attachments:
2018-07-19T18:28:54.6491635Z D:\a\1\s\TestResults\324c9712-62bd-4959-b3b6-40bebf7c05ec\VssAdministrator_factoryvm-az243 2018-07-19 18_28_41.coverage
2018-07-19T18:28:54.6491944Z
2018-07-19T18:28:54.6574103Z Additionally, path to test adapters can be specified using /TestAdapterPath command. Example /TestAdapterPath:<pathToCustomAdapters>.
2018-07-19T18:28:54.6717566Z ##[warning]No results found to publish.
2018-07-19T18:28:54.7119869Z ##[section]Finishing: VsTest - testAssemblies
It turns out I had to add a NuGet reference to each of the unit test assemblies to the NUnit3TestAdapter NuGet package for this to work. No other config changes were needed.
You need to specify the path to the NUnit adapter using /TestAdapterPath.

How to build Nunit test with NUnit.ConsoleRunner in VSTS

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.

I'm having issues using postsharp 5.0.31 and .net core 1.1 on macOS Sierra, I'm getting a build error

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).

Build Windows IoT Core application based on .netcore.app 1.1.2

I'm testing the possibilities of a raspberry pi2 and .NET Core 1.1.
If I create an application with .NET Core 1.1 and try to build it to RID "Win10-arm", I receive following error:
Unable to resolve 'runtime.win8-arm.Microsoft.NETCore.Jit (>= 1.1.2)'
for '.NETCoreApp,Version=v1.1 (win10-arm)'.
Is this something that is not supported yet?
I think this issue is similar to https://github.com/dotnet/coreclr/issues/9694 but I couldn't find any reference which stated that.
Thank you for your answer!
can you try this?
I created an .NET Core Console App and published successfully with win10-arm
Get this Nuget Package:
Install-Package runtime.win8-arm.Microsoft.NETCore.Jit -Version 2.0.0-preview1-25301-02 -Pre
then you can build and publish.
:\Users\x\Documents\Visual Studio 2017\Projects\TestArm\TestArm>dotnet publish -c Release -r win10-arm
Microsoft (R) Build Engine version 15.3.117.23532
Copyright (C) Microsoft Corporation. All rights reserved.
TestArm -> C:\Users\x\Documents\Visual Studio 2017\Projects\TestArm\TestArm\bin\Release\netcoreapp1.1\win10-arm\TestArm.dll
TestArm -> C:\Users\x\Documents\Visual Studio 2017\Projects\TestArm\TestArm\bin\Release\netcoreapp1.1\win10-arm\publish\

Teamcity NUnit fails when using JetBrains dotCover

My build fails with this log:
[12:13:40]: Checking for changes
[12:13:41]: Clearing temporary directory: C:\TeamCity\buildAgent\temp\buildTmp
[12:13:41]: Checkout directory: C:\TeamCity\buildAgent\work\9fecf8ffe0e03cce
[12:13:41]: Updating sources: server side checkout...
[12:13:41]: Publishing internal artifacts (4s)
[12:13:41]: Step 1/3: Visual Studio (sln) (17s)
[12:13:58]: Step 2/3: NUnit (19s)
[12:13:58]: Starting: C:\TeamCity\buildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe #TeamCityImplicit
[12:13:58]: in directory: C:\TeamCity\buildAgent\work\9fecf8ffe0e03cce
[12:14:02]: JetBrains dotCover Console Runner v1.1.252.2. Copyright (c) 2009-2011 JetBrains s.r.o. All rights reserved.
[12:14:05]: Coverage session started [18.8.2011 12:14:05]
[12:14:09]: Start TeamCity NUnit Test Runner
[12:14:09]: Running NUnit-2.5.10 tests under .NET Framework v2.0 x86
[12:14:10]: MySolution.Communication.Tests.dll
[12:14:10]: MySolution.Communication.Tests.TestClass.CanUseGetRequestPacket
[12:14:18]: Coverage session finished [18.8.2011 12:14:18]
[12:14:18]: Analysed application exited with code '255'
[12:14:18]: Coverage session finished but no snapshots were created.
[12:14:18]: Process exited with code -2
[12:14:18]: Step NUnit failed
[12:14:18]: Build step Duplicates finder (.NET) skipped because of previous step failure
[12:14:18]: Publishing internal artifacts
[12:14:18]: Build finished
I am using Teamcity Professional 6.5.2, NUnit-2.5.10 v2.0 MSIL and build-in JetBrains dotCover. Without JetBrains dotCover all is ok. At another project I am using same configuration and all is ok as well. Could be here some problem with my tests assembly?
dotCover fails with obfuscated assemblies.