问题
I am seeing this error when I try to run unit tests:
Testhost process exited with error: It was not possible to find any compatible framework version The specified framework 'Microsoft.NETCore.App', version '1.1.2' was not found. - Check application dependencies and target a framework version installed at: \ - Alternatively, install the framework version '1.1.2'.
How to fix it?
回答1:
Installing DotNetCore.1.0.5_1.1.2-WindowsHosting solved the problem for me and my collegues.
回答2:
The error tells you that you need to download Microsoft.NETCore.App, version 1.1.2
you can install it through this link.
回答3:
for me the solution was to install dotnet core 1.1.2.. I had to install the mac version.
https://github.com/dotnet/core/blob/master/release-notes/download-archives/1.1.2-download.md
来源:https://stackoverflow.com/questions/47349608/how-to-fix-microsoft-netcore-app-version-1-1-2-was-not-found