-
Notifications
You must be signed in to change notification settings - Fork 421
Closed
Labels
area-DeveloperToolsIssues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integrationIssues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integrationbugSomething isn't workingSomething isn't workingmaui-7.xBugs targeted for maui-7.xBugs targeted for maui-7.x
Description
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:
WindowsAppSDK/dev/VSIX/ProjectTemplates/Desktop/CSharp/ClassLibrary/ProjectTemplate.csproj
Line 12 in 4272e38
| <PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="$WindowsSDKBuildToolsNupkgVersion$" /> |
Steps to reproduce the bug
- File | New | WinUI app
- File | New | WinUI library
- Add a reference from the app to the librry
- Remove the package reference to
Microsoft.Windows.SDK.BuildToolsANDMicrospft.WindowsAppSDKfrom the app project dotnet build- Observe the build fails if you do not have VS installed :)
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-DeveloperToolsIssues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integrationIssues related to authoring (source and IDL), debugging, HotReload, LiveVisualTree, VS integrationbugSomething isn't workingSomething isn't workingmaui-7.xBugs targeted for maui-7.xBugs targeted for maui-7.x