Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DOTNET1011: Framework not installed: .NETFramework

I'm adding this here because it caused me a headache this morning while fixing our build server:

Executing dotnet build would show me the following errors:

DOTNET1011: Framework not installed: .NETFramework,Version=v4.6.1
error NU1001: The dependency mscorlib could not be resolved.

The error is confusing, as I DO have the .NETFramework,Version=v4.6.1 installed.

like image 989
ciriarte Avatar asked May 26 '16 17:05

ciriarte


1 Answers

It turns out that I needed the following developer pack (targeting pack):

https://www.microsoft.com/en-us/download/details.aspx?id=49978

like image 163
ciriarte Avatar answered Oct 21 '22 06:10

ciriarte