Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix 'Microsoft.NETCore.App', version '1.1.2' was not found?

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?

like image 576
ferit Avatar asked Nov 17 '17 11:11

ferit


People also ask

How do I install Microsoft NET Core app?

NET Core can be installed in two ways: By installing Visual Studio 2017/2019 or by installing . NET Core Runtime or SDK. . NET Core installer already contains ASP.NET Core libraries, so there is no separate installer for ASP.NET Core.

How do I open .NET Core?

NET Core Application. In the middle pane on the New Project dialog box, select Console Application (. NET Core) and name it "FirstApp", then click OK. Visual Studio will open the newly created project, and you will see in the Solution Explorer window all of the files that are in this project.

What is NET Core app?

ASP.NET Core is a cross-platform, high-performance, open-source framework for building modern, cloud-enabled, Internet-connected apps. With ASP.NET Core, you can: Build web apps and services, Internet of Things (IoT) apps, and mobile backends. Use your favorite development tools on Windows, macOS, and Linux.

What is latest .NET Core?

Latest release: 3.0.3. Last updated on 2020-02-18. EOL: 2020-03-03.


2 Answers

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

like image 68
ferit Avatar answered Oct 04 '22 17:10

ferit


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

like image 26
abdallah mahmoud Avatar answered Oct 04 '22 17:10

abdallah mahmoud