Skip to content

Conversation

manodasanW
Copy link
Contributor

@manodasanW manodasanW commented Aug 12, 2024

Summary

Our latest update to the Windows SDK projection package Microsoft.Windows.SDK.NET.Ref in the installer repo contains an analyzer that needs access to a couple MSBuild properties. To allow that, this PR sets the default for these properties and exposes them to the analyzer using CompilerVisibleProperty. This is only done in the scenarios when our package gets included as determined by IncludeWindowsSDKRefFrameworkReferences being set to true (i.e. someone targeting net8.0-windows10.0.22621.0 or similar Windows OS version TFM).

Customer Impact

The impact is without this PR, the analyzer will just use the defaults and prevent consumers from being able to configure the behavior without themselves adding CompilerVisibleProperty. And without the analyzer itself, they will not get the improvements that have been made for this scenario to be AOT compatible which the upcoming WindowsAppSDK release is relying on.

Regression

No, our package didn't include an analyzer in the past.

Testing

For the changes in this PR itself, these are only setting defaults on scenario specific properties when not set and just declaring them as exposed to an analyzer.

But for in general together with the projection package update, these changes have been in public preview for the last 2 months and have been exercised as part of public WindowsAppSDK 1.6 experimental and preview releases. In those preview releases, a reference to the Microsoft.Windows.CsWinRT package was required which set the equivalent but for the stable release we are putting those changes here as developers don't typically reference that package unless they are a component owner building a projection.

Risk

These changes are just exposing scenario specific properties, so are low risk. And overall, the projection package and these properties are only set when the Windows OS version specific TFM is used (i.e. net8.0-windows10.0.22621.0 or similar).

@marcpopMSFT marcpopMSFT merged commit 00f711e into dotnet:release/8.0.4xx Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-NetSDK Servicing-consider untriaged Request triage from a team member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants