Skip to content

Update versions for successful build in WinUI repo - #2127

Merged
Marcel W. (marcelwgn) merged 11 commits into
microsoft:mainfrom
marcelwgn:versions-upgrade
Feb 20, 2026
Merged

Marcel W. (marcelwgn) merged 11 commits into
microsoft:mainfrom
marcelwgn:versions-upgrade

Conversation

@marcelwgn

Copy link
Copy Markdown
Contributor

Updating versions so we can be successfully integrated into their repo.

Marcel W. (marcelwgn) and others added 10 commits February 18, 2026 14:05
…al package management

The MUXC repo uses central package management (Packages.props) which
does not allow inline Version attributes on PackageReference items.
Move the versions to the standalone ItemGroup (IsInWinUIRepo != true)
so they are only applied for standalone builds.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…rops

- Move IsAotCompatible and CsWinRTAotWarningLevel to standalone.props so they
  only apply to standalone builds (not WinUI repo builds)
- Add TFM condition (net8.0+) to avoid NETSDK1210 warning on netstandard2.1
- Remove PublishAot from source generator (default is already false)
- Downgrade Microsoft.CodeAnalysis.CSharp from 5.0.0 to 4.3.1 to fix CS9057
  analyzer version mismatch with WinUI repo compiler (4.14.0.0)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Target netstandard2.0 instead of 2.1 (.NET Framework only supports ≤2.0)
- Downgrade System.Text.Json to 8.0.5 (clean netstandard2.0 support)
- Add CopyLocalLockFileAssemblies for dependency resolution
- Downgrade Microsoft.CodeAnalysis.CSharp to 4.3.1 (compat with older compilers)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add _GetDependencyTargetPaths target to pass System.Text.Json and its
transitive dependencies to the compiler as analyzer files. This fixes
the FileNotFoundException on .NET Framework MSBuild hosts where Roslyn
cannot resolve analyzer dependencies from the DLL directory.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add TreatAsLocalProperty to allow the project's PublishAot=false to
override the command-line /p:PublishAot=True passed by the pipeline.
netstandard2.0 does not support AOT (NETSDK1207).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@marcelwgn
Marcel W. (marcelwgn) enabled auto-merge (squash) February 20, 2026 18:19
@marcelwgn

Copy link
Copy Markdown
Contributor Author

/azp run

@marcelwgn

Copy link
Copy Markdown
Contributor Author

/azp run

@marcelwgn
Marcel W. (marcelwgn) merged commit af95b34 into microsoft:main Feb 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants