novotnyllc / MSBuildSdkExtras

Extra properties for MSBuild SDK projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SDK folder for UAP not found

sjb-sjb opened this issue · comments

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.

commented

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.

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