CsWinRT icon indicating copy to clipboard operation
CsWinRT copied to clipboard

Referencing C#/WinRT NuGet package from C# UWP apps gives MSBuildProjectExtensionsPath compile error

Open Psychlist1972 opened this issue 1 year ago • 1 comments

Trying to reference a local C#/WinRT nuget package from a C#/UWP app.

Error: Severity Code Description Project File Line Suppression State Error The MSBuildProjectExtensionsPath MSBuild property could not be found for project 'D:\peteb\Documents\GitHub\microsoft\midi\get-started\samples\csharp-uwp\VerifyServiceIsRunningCsUwp'.

This same NuGet package was able to be referenced from C++/WinRT once I fixed the targets names there (see my previous bug). Not sure if this is related.

This error makes it impossible to load the project.

Psychlist1972 avatar Jul 30 '22 01:07 Psychlist1972

This is unsupported. You cannot mix net5 and uwp netnative.

@j0shuams - is there a better error message we can provide?

AdamBraden avatar Aug 10 '22 16:08 AdamBraden