0

I updated VisualStudio from 2015 to 2017. When i try to launch UWP unit tests, it seems that Microsoft.VisualStudio.TestPlatform.UnitTestFramework does not exists (it gives me an error). I tried with Microsoft.VisualStudio.TestTools.UnitTesting and project builds and run but it does not execute my tests. How can I fix it?

Thanks

  • https://learn.microsoft.com/en-us/visualstudio/test/using-microsoft-visualstudio-testtools-unittesting-members-in-unit-tests – karann - MSFT Jul 05 '17 at 22:27
  • What are the errors that are produced when the reference is Microsoft.VisualStudio.TestPlatform.UnitTestFramework? Can you enable diagnostic build output by going to Tools -> Options -> Projects and Solutions -> Build and Run and set "MSBuild project build output verbosity:" to "Diagnostic". When you do that, if you can copy and share the output (to some cloud storage) what will help me out. – Daniel Jacobson Jul 18 '17 at 15:51

2 Answers2

0

@scriptfx: What version of VS 2017 are you on? Would be great if we can see what error you are hitting. The sdk MSTestFramework.Universal should be pointing to a 15.0 version in the build logs.

On a side note you could also upgrade to the new default framework in VS 2017 - MSTest V2. More details here: https://blogs.msdn.microsoft.com/devops/2016/06/17/taking-the-mstest-framework-forward-with-mstest-v2/

Abhitej
  • 76
  • 2
  • I'm sorry to answer just now... I resolved it with a complete reinstall of visualstudio. –  Jan 16 '18 at 14:39
0

I resolved it with a complete reinstall of visualstudio.