Curtis
Curtis

Reputation: 5892

What is causing this error: (Could not find SDK "windowsIoT, Version=10.0.10240.0")?

I am buiding a Universal Windows app that will run on a Raspberry Pi 2 that is running Windows IoT. For some strange reason, I cannot build the project because I keep getting the following build error:

Could not find SDK "windowsIoT, Version=10.0.10240.0"

I am using version 10.0.10586.0 of all the Windows references. Why is it even looking for version 10.0.10240.0 in the first place?

Any ideas on how to fix this problem would be greatly appreciated.

Upvotes: 3

Views: 4715

Answers (2)

ChArcoiris
ChArcoiris

Reputation: 11

There's a separate "knob" in the .vcxproj for the WindowsIoT Extension SDK version (i.e. separate from the "TargetPlatformVersion" that shows up in project properties.)

So, observe folder names under %ProgramFiles(x86)%\Windows Kits\10\Extension SDKs\WindowsIoT: and then hand edit the .vcxproj to point at one the does exist (or expand References in Solution Explorer and modify Properties of the Windows IoT Extensions for the UWP entry):

<SDKReference Include="WindowsIoT, Version=10.0.17134.0">
    <Name>Windows IoT Extensions for the UWP</Name>
</SDKReference>

Upvotes: 1

Curtis
Curtis

Reputation: 5892

After much consternation, I discovered that I had unnecessarily added References to the following unneeded NuGet Packages:

Microsoft.IoT.DeviceCore
Microsoft.IoT.Devices

When I removed the above 2 unnecessary NuGetPackages from my projects, they build just fine.

Upvotes: 0

Related Questions