Skip to content

Microsoft.Windows.SDK.BuildTools is missing buildTransitive #3251

@mattleibow

Description

@mattleibow

Describe the bug

When including Microsoft.Windows.SDK.BuildTools transitively - for example you have a reference to the WASDK - it does not bring in the Microsoft.Windows.SDK.BuildTools targets. This is because the NuGet only has a build folder and is missing the buildTransitive folder.

This is why the package needs to be explicitly referenced in the WASDK templates:

<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="$WindowsSDKBuildToolsNupkgVersion$" />

Steps to reproduce the bug

  1. File | New | WinUI app
  2. File | New | WinUI library
  3. Add a reference from the app to the librry
  4. Remove the package reference to Microsoft.Windows.SDK.BuildTools AND Microspft.WindowsAppSDK from the app project
  5. dotnet build
  6. Observe the build fails if you do not have VS installed :)

App19.zip

Expected behavior

No response

Screenshots

No response

NuGet package version

None

Packaging type

No response

Windows version

No response

IDE

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

area-DeveloperToolsIssues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integrationbugSomething isn't workingmaui-7.xBugs targeted for maui-7.x

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions