简体   繁体   中英

.NET Framework / Visual Studio 2013 update 5 issue

Background: Windows 8.1 .NET Framework up to v4.6.1 Visual Studio 2013 Update 5 VS Solution targeting .NET Framework 4.0 (due to environment limitations, can't be upgraded currently)

The solution was opening fine yesterday, I was able to work in it without issues. However, today when I open the solution I get a message saying The C# project .... is targeting ".NETFramework,Version=v4.0" which is not installed on this machine and it gives me options to 1 - Change the target to .NET Framework 4.5 (Not an option) 2 - Download the targeting pack for ".NETFramework,Version=v4.0". 3 - Do not load the project

Since I'm running Windows 8, downloading .NETFramework 4 won't do any good because it won't let me install it, it says to use the add features option (which I removed/readded this feature already today).

I have downloaded the .NET Repair Tool, the NETFX Setup Verifier (which verifies .NET 4 is installed correctly), and the .NET Cleanup Tool. None of these fix the issue.

Any ideas? It's a work laptop so upgrading to Windows 10 isn't a timely solution either.

Thanks in advance for the help.

可以通过在Visual Studio 2013上运行“修复”来解决此问题。此后,它找到了目标包。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM