My story is that I'm trying to setup VSTS build step to run couple of NUnit test that are attached to test plan on .Net Core 2.0. And there absolutely no info how to do it correctly (though I managed to run tests but without the test plan which I need). I'm trying different solutions and combinations (I managed to get it working but on .net full framework, using infor from this post Error while executing Run Functional Test task in VSTS ). I have read that one way to fix for .Net core it is to use vstest.console.exe from C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\IDE\\Extensions\\TestPlatform\\vstest.console.exe but I receive this weird error now.
"Could not load type 'Microsoft.VisualStudio.TestPlatform.Common.FilterExpressionWrapper' from assembly 'Microsoft.VisualStudio.TestPlatform.Common, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.":
I found this recipe to use the Visual Studio Test Task against .Net Core 2 (forgot the source).
C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\IDE\\Extensions\\TestPlatform
as the Specific Location for the Test Platform /Framework:FrameworkCore10
for Other console options
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.