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.

[MSBuildExtras] Using msbuild extras under linux fails with missing Microsoft.WinFX.props

See original GitHub issue

MSBuild 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:open
  • Created 3 years ago
  • Reactions:2
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
Nirmal4Gcommented, Aug 6, 2020

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.

4reactions
mfklcommented, Apr 9, 2020

just a limitation of the fact that building projects targeting UAP isn’t supported on Linux.

That’s not it, you can reproduce with just

<Project Sdk="MSBuild.Sdk.Extras">
    <PropertyGroup>
        <TargetFramework>netstandard2.0</TargetFramework>
    </PropertyGroup>
</Project>
Read more comments on GitHub >

github_iconTop 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 >

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