novotnyllc / MSBuildSdkExtras

Extra properties for MSBuild SDK projects
MIT License
348 stars 42 forks source link

SDK folder for UAP not found #256

Open sjb-sjb opened 3 years ago

sjb-sjb commented 3 years ago

I'm new to MSBuildSdkExtras so please bear with me. I followed the instructions on the MSBuildSdkExtras page: created a .NET Standard project, changed the Sdk to MSBuild.Sdk.Extras, added the global.json, and then set my TargetFramework to uap10.0.19041.

On build I get "Error APPX3217: SDK folder containing 'UAP.props' for 'UAP 10.0.19041.0' cannot be located. See http://go.microsoft.com/fwlink/?LinkID=798187 for more information." The linked page didn't help me.

My end goal is to build a UWP + WinUI 3 app with C# 9.0 and .NET 5. Obviously it's not supported but according to this issue it should be do-able.

I am using VS 2019 preview and have WinUI 3 preview installed.

datoml commented 3 years ago

Hello,

could it be that the Windows 10 SDK v10.0.19041.0 is not installed on your system? Based on the error it could be the problem.

sjb-sjb commented 3 years ago

Lo and behold, it was not! After posting I found out the SDK's are optional to the UWP load. Feeling a bit dumb on this one ...