question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DOTNET1011 when building/running net451 project on a machine with NET 4.6.1 only installed

See original GitHub issue

Steps to reproduce

Create/Clone a project targeting net451 on a machine that has only .NET 4.6.1 installed (including dev pack) dotnet build/run fails with:

error DOTNET1011: Framework not installed: .NETFramework,Version=v4.5.1 in…

Expected behavior

Since .NET Frameworks are in place updates these days and APIs are backwards compatible I would expect the project to build fine if I have all the required bits (i.e. runtime and ref assemblies) of a newer version of .NET that the one that the app is targetting.

Actual behavior

error DOTNET1011: Framework not installed: .NETFramework,Version=v4.5.1 in…

Environment data

dotnet --info output:

PS C:\Users\XXXX\source\cli-samples\HelloMvc> dotnet --info
.NET Command Line Tools (1.0.0-preview2-003118)

Product Information:
 Version:            1.0.0-preview2-003118
 Commit SHA-1 hash:  7ada53d523

Runtime Environment:
 OS Name:     Windows
 OS Version:  6.1.7601
 OS Platform: Windows
 RID:         win7-x86

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
blackdwarfcommented, Dec 20, 2016

Actrually, since we are moving to MSBuild now, the error on build is much cleaner and specified very clearly that reference assemblies are missing and that they should be installed. With that, I will close this issue. If this resurfaces or additional info is needed, please reopen.

1reaction
weshaggardcommented, Jun 22, 2016

I will let @blackdwarf @cartermp decide what to do with this issue as they are they should be the ones driving this experience.

Read more comments on GitHub >

github_iconTop Results From Across the Web

msbuild - Issue with building .NET Framework 4.6.1 project
I have bamboo build server. And I try to build there our old project with Target Framework .Net Framework 4.6.1.
Read more >
The .NET Framework 4.6.1 offline installer for Windows
Describes the .NET Framework 4.6.1 offline installer for Windows 7 SP1, Windows 8, Windows 8.1, Windows 10, Windows Server 2008 R2 SP1, Windows...
Read more >
VB.NET application compiled to target 4.6.1 framework ...
I expected to only compile it to .exe and let it run on other computers. I develop the application using VS2019 community with...
Read more >
Install the .NET Framework developer pack or redistributable
This article provides links for installing all versions of .NET Framework from .NET Framework 4.5 to .NET Framework 4.8.1 on your computer.
Read more >
Project Target Framework Not Installed Problem
Open C# project in VS 2019 (16.1.6) that targets .NET 4.6.1 (or 4.6.2, 4.6.3) that is not installed on the computer; Project Target...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found