0

I have an ADO build that keeps failing with,

Error APPX3217: SDK folder containing 'UAP.props' for 'UAP 10.0.20348.0' cannot be located.

That helped me locate the missing 2104 SDK. Earlier in the build, I attempt to remedy this with chocolatey by installing a 2104 SDK, which as far as I can tell is the only 2104 option available with choco:

- task: CmdLine@2
  inputs:
    script: 'choco install windows-sdk-10-version-2104-all -y'

It installs fine. The build breaks at the same point on multiple re-runs across multiple build nodes. All the similar questions I've run across with the same kind of error seems to automatically resolve after installing the correct SDK.

I wasn't sure if it would help, but I also installed the Microsoft.Windows.SDK.BuildTools NuGet package for the faulting project, and it also did not resolve the issue.

I've also tried both the MSBuild and VSBuild tasks. Any idea why it may not be detecting the installation at build-time?

kayleeFrye_onDeck
  • 6,648
  • 5
  • 69
  • 80
  • Hi kaylee are you running your pipeline with self hosted agent or microsoft hosted agent? **1**If you are running via selfhosted agent, have you tried to enable the `developer mode` [setting](https://github.com/microsoft/terminal/issues/489#:~:text=solution%20in%20VS.-,Open%20Windows%20Settings%20%2D%20Upgrade%20%26%20Security%20%2D%20For%20Developers%2C%20switch%20App%20sources%20to%20Developer%20mode,-.)? **2**If you are running with the microsoft hosted agent, have tried to set the `env:MSBuildSDKsPath` to `C:\\Program Files (x86)\\Windows Kits\\10\\Extension SDKs\\WindowsDesktop`? – Ceeno Qi-MSFT Dec 14 '22 at 05:36

0 Answers0