Skip to content

Fix Windows SDK package feature naming conflict and DevCheck VS 2026 support - #6951

Merged
Scott Jones (Scottj1s) merged 3 commits into
mainfrom
Scottj1s/fix-package-feature-sdk-conflict
Nov 16, 2026
Merged

Scott Jones (Scottj1s) merged 3 commits into
mainfrom
Scottj1s/fix-package-feature-sdk-conflict

Conversation

@Scottj1s

Copy link
Copy Markdown
Member

Summary

  • Rename the runtime's native feature query to WindowsAppRuntime_IsPackageFeatureSupported so it can coexist with the Windows SDK's IsPackageFeatureSupported declaration.
  • Preserve existing binary imports through a PRIVATE export alias, without exposing the conflicting legacy symbol in new import libraries. The public WinRT API is unchanged.
  • Fix DevCheck to discover Visual Studio 2022 and 2026, validate components in the selected installation, and report missing components through its exit status. Add a VS 2026 configuration and regression coverage.

Validation

  • Passed x64 Debug builds of the runtime DLL and Package API test project on the freshly fetched main base.
  • Passed powershell -NoProfile -File tools\DevCheck\Test-VisualStudio.ps1 and DevCheck.cmd -CheckVisualStudio -NoInteractive -Offline.
  • Passed header-coexistence and compatibility-export/import-library probes for x64, x86, and ARM64 in Debug and Release before transferring the same changes to main; x64/x86 probe clients executed successfully.
  • Verified the built runtime exports the legacy and prefixed names at the same address, while its import library exposes only the prefixed name.
  • Passed git diff --cached --check.

Full TAEF execution and the full SDK build matrix have not been run locally. Native builds retain existing unrelated MSB4011 and C4090 warnings.

Main-branch CI validation requires an authorized Microsoft employee to run /azp run TransportPackage-Foundation-PR.

Prefix the native runtime feature query while preserving its binary export alias. Validate components in the selected VS installation and report missing prerequisites as failures.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c52dd12d-c300-4d6c-ba0a-8269985be6af
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@Scottj1s

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.

The build image omits .NET 6/7 runtimes, Live Unit Testing, Live Share, and IntelliCode. Remove these non-build prerequisites so strict DevCheck failures do not reject the CI image. Cover this image configuration and retain failure coverage for missing MSBuild.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c52dd12d-c300-4d6c-ba0a-8269985be6af
@Scottj1s

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.

Run missing-component, split-installation, and no-installation checks for both VS2022 and VS2026. Keep the VS2022 pipeline-image regression specific to its configuration and verify discovery clears stale installation state.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c52dd12d-c300-4d6c-ba0a-8269985be6af
@Scottj1s

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'd swear I ran into this during some other work and have a fix. Let me check; will update PR once I do

@Scottj1s

Copy link
Copy Markdown
Member Author

Howard Kapustein (@DrusTheAxe) - ping, this is blocking some folks - any objections?

@guimafelipe

Copy link
Copy Markdown
Contributor

Can we split the Dev Check change from the name conflict change? Dev Check might me approved faster.

@DrusTheAxe

Copy link
Copy Markdown
Member

Howard Kapustein (Howard Kapustein (@DrusTheAxe)) - ping, this is blocking some folks - any objections?

Yes. This is part of the public API, so the name matters.

I ran into this recently and have a fix (and good rename)
GetPackageFile .h/.winmd not published #6896
but it's choking on something in the ARM64EC build. Following up with you offline to get that unblocked.

Next steps

  1. Howard+Scott resolve the ARM64EC problem
  2. Get GetPackageFile .h/.winmd not published #6896 checked into main
  3. Change this PR removing the Package API changes from this PR
  4. Merge latest from main into this PR
  5. Profit! :P

@DrusTheAxe

Copy link
Copy Markdown
Member

Howard Kapustein (Howard Kapustein (Howard Kapustein (@DrusTheAxe))) - ping, this is blocking some folks - any objections?

Yes. This is part of the public API, so the name matters.

I ran into this recently and have a fix (and good rename) GetPackageFile .h/.winmd not published #6896 but it's choking on something in the ARM64EC build. Following up with you offline to get that unblocked.

Next steps

  1. Howard+Scott resolve the ARM64EC problem
  2. Get GetPackageFile .h/.winmd not published #6896 checked into main
  3. Change this PR removing the Package API changes from this PR
  4. Merge latest from main into this PR
  5. Profit! :P

Confirmed, the Release/ARM64EC definitions in WindowsAppRuntime.sln is broadly wrong. Fixing in #6896 to unblock the sausage-making conveyor belt.

Manodasan Wignarajah (manodasanW) added a commit that referenced this pull request Nov 13, 2026
…ck VS 2026 support

Squashed from #6951 (Scottj1s/fix-package-feature-sdk-conflict,
commits 98adb6a, 04b8413, caa166f) so the VS 2026 / Windows SDK 28000 build works.
Revert this commit once #6951 merges into main.

- Rename the native IsPackageFeatureSupported to WindowsAppRuntime_IsPackageFeatureSupported
  to avoid colliding with the Windows SDK appmodel.h declaration (keeps a PRIVATE alias export).
- DevCheck detects VS 2022 and VS 2026 and validates components per version (supersedes the
  VS 2026-only check from b4ae86f).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Scottj1s
Scott Jones (Scottj1s) enabled auto-merge (squash) November 16, 2026 19:03
@Scottj1s
Scott Jones (Scottj1s) dismissed Howard Kapustein (DrusTheAxe)’s stale review November 16, 2026 19:04

unblocking foundation builds, can revisit later to add arm64ec and other improvements

@Scottj1s
Scott Jones (Scottj1s) merged commit ecb1c60 into main Nov 16, 2026
51 checks passed
@Scottj1s
Scott Jones (Scottj1s) deleted the Scottj1s/fix-package-feature-sdk-conflict branch November 16, 2026 19:05
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.

5 participants