19

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
  • 3
    I see that you've solved the issue now, but for folks who might find this question in the future could you elaborate on what your set up was before installing the package that you mentioned? The error message is making me think that you didn't have the correct version of .NET Core installed. Commented Nov 17, 2017 at 20:58

3 Answers 3

38

Installing DotNetCore.1.0.5_1.1.2-WindowsHosting solved the problem for me and my collegues.

1
  • What do you suggest we do if it's a Ubuntu system?
    – Harsha
    Commented Mar 4, 2020 at 12:28
7

The error tells you that you need to download Microsoft.NETCore.App, version 1.1.2 you can install it through this link.

1
  • IIS feature should be already enabled on the target machine before running the installer. Availability of IIS feature is a prerequisite for the sub-part of the installer which installs Microsoft .NET core Windows Server hosting.
    – RBT
    Commented Apr 17, 2018 at 23:24
1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.