Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn when enabling Windows.UI.Xaml profile for Windows SDK projections #43039

Conversation

Sergio0694
Copy link
Contributor

@Sergio0694 Sergio0694 commented Aug 27, 2024

Follow up to #41936

Summary

Enabling the Windows.UI.Xaml profile is only supported by the .NET 9 SDK (#41936). This PR adds a warning on the .NET 8 SDK to make it clear that that configuration is not supported there. I didn't make it an error because it felt unnecessary to go out of our way to always fail builds in this scenario. People that really wanted to use that can still make it work by manually setting the right value for WindowsSdkPackageVersion, and the .NET 8 SDK will pull all available profiles by default. The important part is that the new warning calls out clearly that this configuration is not actually supported.

Customer Impact

No impact whatsoever for anyone not explicitly setting UseUwp in their projects. If they do set it, they will not get a useful warning, rather than things not working at all. That would've been a very confusing experience if anyone had tried building a UWP for .NET project targeting .NET 8 with the .NET 8 SDK, whereas it would've worked for people with the .NET 9 SDK.

Regression?

No, this is to support a new feature in the .NET 9 SDK.

Testing

Tested this locally with a dogfooding build and checking the warning in the output.

Risk

Low. This is just a warning in a new target, that is only enabled when UseUwp is explicitly set (and that's a new feature).

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-NetSDK untriaged Request triage from a team member labels Aug 27, 2024
@Sergio0694 Sergio0694 force-pushed the user/sergiopedri/windows-xaml-warning branch from f989057 to 1fb795e Compare August 27, 2024 20:05
@Sergio0694 Sergio0694 force-pushed the user/sergiopedri/windows-xaml-warning branch from 1fb795e to 8016bcb Compare August 31, 2024 02:13
@marcpopMSFT
Copy link
Member

Approved in email.

@marcpopMSFT marcpopMSFT merged commit 5dbd586 into dotnet:release/8.0.4xx Sep 5, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-NetSDK Servicing-approved untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants