[MSBuildExtras] Using msbuild extras under linux fails with missing Microsoft.WinFX.props
See original GitHub issueMSBuild extras validates that projects can successfully build under a variety of .NET Runtimes and OSes, and a recent addition of validation of .NET Core 3.1 fails the build under Linux with the following error:
/__t/dotnet/sdk/3.1.201/Sdks/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.NET.Sdk.WindowsDesktop.props(208,3):
error MSB4019: The imported project "/__t/dotnet/sdk/3.1.201/Sdks/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.WinFX.props" was not found.
Confirm that the expression in the Import declaration "Microsoft.WinFX.props" is correct, and that the file exists on disk.
This error does not happen with .NET Core 3.0 and 2.2.
The error happens when building this project, with this script.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:9 (5 by maintainers)
Top Results From Across the Web
MSBuildSdkExtras
MSBuild.Sdk.Extras. Summary. This package contains a few extra extensions to the SDK-style projects that are currently not available in Microsoft.NET.
Read more >Reference an MSBuild Project SDK
Learn how to use MSBuild project SDKs to simplify using software development kits that require properties and targets to be imported.
Read more >NETSDK1005 and NETSDK1047: Asset file is missing target
NET SDK issues error NETSDK1005 or NETSDK1047, the project's assets file is missing information on one of your target frameworks.
Read more >Why is VS 2019 not loading MSBuild.Sdk.Extras project ...
1 Answer. You would better install Net Core 3.1. 101 sdk and higher versions of the Net Core SDK may fail to compile...
Read more >MSB4236: The SDK 'name' specified could not be found.
This error occurs when an MSBuild project SDK couldn't be loaded. An MSBuild project SDK is a packaged set of imported files that...
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 FreeTop 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
Top GitHub Comments
It seems the fix is not merged into SDK 3.1.302! So, I’ve asked whether it is possible for back porting the fix into 3.1.
That’s not it, you can reproduce with just