Skip to content

fix dup warning with workaround#6161

Merged
qiutongMS merged 4 commits intomainfrom
user/qiutongshen/fixDupMSBWaring
Feb 3, 2026
Merged

fix dup warning with workaround#6161
qiutongMS merged 4 commits intomainfrom
user/qiutongshen/fixDupMSBWaring

Conversation

@qiutongMS
Copy link
Contributor

A microsoft employee must use /azp run to validate using the pipelines below.

WARNING:
Comments made by azure-pipelines bot maybe inaccurate.
Please see pipeline link to verify that the build is being ran.

For status checks on the main branch, please use TransportPackage-Foundation-PR
(https://microsoft.visualstudio.com/ProjectReunion/_build?definitionId=81063&_a=summary)
and run the build against your PR branch with the default parameters.

@qiutongMS
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@qiutongMS
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses duplicate preprocessor definition warnings in MSBuild targets by refactoring how preprocessor definitions are applied. It also introduces an ARM64EC + LTCG Internal Compiler Error (ICE) workaround.

Changes:

  • Moved preprocessor definitions from Target-level ClCompile item metadata to ItemDefinitionGroup to apply globally and eliminate duplicates
  • Removed the WindowsAppSDKBootstrapAutoInitializeOptions_None preprocessor definition (appears intentional as "None" likely means no options should be set)
  • Added ARM64EC + LTCG ICE workaround that compiles WindowsAppRuntimeAutoInitializer.cpp twice with different object file names when specific conditions are met

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
WindowsAppSDK-Nuget-Native.UndockedRegFreeWinRT.targets Refactored preprocessor definitions to ItemDefinitionGroup; removed conditions that controlled when features are enabled
WindowsAppSDK-Nuget-Native.DeploymentManager.targets Moved preprocessor definitions to ItemDefinitionGroup
WindowsAppSDK-Nuget-Native.Bootstrap.targets Moved preprocessor definitions to ItemDefinitionGroup; removed Options_None definition
WindowsAppSDK-Nuget-Native.AutoInitializer.targets Moved preprocessor definitions to ItemDefinitionGroup; added ARM64EC compiler workaround with duplicate compilation

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@qiutongMS
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

@qiutongMS qiutongMS requested a review from Copilot January 29, 2026 03:36
@qiutongMS
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@qiutongMS qiutongMS merged commit 20ade45 into main Feb 3, 2026
48 checks passed
@qiutongMS qiutongMS deleted the user/qiutongshen/fixDupMSBWaring branch February 3, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants