missing UnitTestFramework in visualstudio2017

449 Views Asked by At

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

2

There are 2 best solutions below

0
On BEST ANSWER

I resolved it with a complete reinstall of visualstudio.

1
On

@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/