Improve missing targeting pack error handling
See original GitHub issueToday, in the implementation so far, we have: GenerateErrorForMissingTargetingPacks
that is set to false for all design-time builds:
But we want an error in design-time builds when restore has happened. Should this instead be conditioned on the presence of an assets file + !design-time like other targets?
We also discussed special handling to surface errors from packagedownload of targeting pack to project system.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Targeting pack for .NET 4.5.2 not installed
NET 4.6.2 (VS2017) - I downloaded the Developer pack from the link provided by the error message and installed, but it didn't help....
Read more >NETSDK1145: Targeting or apphost pack missing - .NET CLI
NET SDK issues error NETSDK1145, the targeting or apphost pack is not installed and NuGet package restore is not supported.
Read more >Troubleshoot .NET Framework targeting errors
This article provides resolutions for MSBuild errors that might occur because of reference issues.
Read more >Building a project that target .NET Framework 4.5 in Visual ...
So, the fix is simple: just copy the files from that package to C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4 ...
Read more >Cannot load project with target .Net Framework 4.6.2
I am using a Windows 10 with Visual Studio 2017. I have .Net Framework 4.6.1 and 4.7.2 installed but not 4.6.2. I tried...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
IMHO, It’s critical that we have a high-ranked error in the error list when the targeting pack could not be found.
Indeed, let’s sync up on this. 😃