Skip to content

Accessing Windows.Storage - #894

Merged
clairernovotny merged 2 commits into
NuGetPackageExplorer:masterfrom
rtigithub:master
Feb 5, 2020
Merged

clairernovotny merged 2 commits into
NuGetPackageExplorer:masterfrom
rtigithub:master

Conversation

@rtigithub

Copy link
Copy Markdown
Contributor

The code would not build on my system due to an inability to access Windows.Storage, because my WindSDK folders are not on the default drive. The following lines in Directory.Build.targets do not correctly resolve to the WinSDK folders.
<PropertyGroup> <WindowsWinmdFile Condition="Exists('$(MSBuildProgramFiles32)\Windows Kits\10\UnionMetadata\$(TargetPlatformVersion)\Windows.winmd')">$(MSBuildProgramFiles32)\Windows Kits\10\UnionMetadata\$(TargetPlatformVersion)\Windows.winmd</WindowsWinmdFile> </PropertyGroup> <ItemGroup> <Reference Update="Windows" Private="false" HintPath="$(WindowsWinmdFile)" /> </ItemGroup>

Adding a package reference to Microsoft.Windows.SDK.Contracts provides a simple fix that does not rely on a default folder hierarchy for VS and SDKs.

@dnfclas

dnfclas commented Jan 22, 2020 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@clairernovotny
clairernovotny merged commit 60bfd8c into NuGetPackageExplorer:master Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants