Skip to content

Add .NET 9 target for WinRT.Runtime.dll - #1843

Merged
Sergio Pedri (Sergio0694) merged 16 commits into
staging/2.3from
user/sergiopedri/cswinrt-net9
Mar 12, 2025
Merged

Sergio Pedri (Sergio0694) merged 16 commits into
staging/2.3from
user/sergiopedri/cswinrt-net9

Conversation

@Sergio0694

@Sergio0694 Sergio Pedri (Sergio0694) commented Oct 24, 2024 •

Copy link
Copy Markdown
Member

This PR includes the following changes:

  • Enables building CsWinRT with .NET 9 locally
  • Fixes some new trim warnings
  • Makes MarshalNonBlittable work on AOT

Comment thread build/AzurePipelineTemplates/CsWinRT-PublishToNuget-Stage.yml Outdated
Comment thread src/Directory.Build.props Outdated
Comment thread src/Directory.Build.props
Comment thread src/WinRT.Runtime/Marshalers.cs
Comment thread build/AzurePipelineTemplates/CsWinRT-Variables.yml Outdated
Comment thread build/AzurePipelineTemplates/CsWinRT-Variables.yml Outdated
Co-authored-by: Manodasan Wignarajah <mawign@microsoft.com>
Comment thread src/build.cmd Outdated
@Sergio0694
Sergio Pedri (Sergio0694) merged commit 8003cbd into staging/2.3 Mar 12, 2025
@Sergio0694
Sergio Pedri (Sergio0694) deleted the user/sergiopedri/cswinrt-net9 branch March 12, 2025 16:13
Sergio Pedri (Sergio0694) added a commit that referenced this pull request Mar 12, 2025
Squashed commit of the following:

commit 8003cbd
Author: Sergio Pedri <sergio0694@live.com>
Date:   Wed Mar 12 09:13:10 2025 -0700

    Add .NET 9 target for WinRT.Runtime.dll (#1843)

    * Build CsWinRT with .NET 9 locally

    * Suppress all 'IL2081' warnings

    * Update 'MarshalNonBlittable' for AOT support

    * Update build steps for .NET 9

    * Update .nuspec file for .NET 9

    * Fix duplicate 'global.json' creation

    * Remove new framework references

    * Update CsWinRT-PublishToNuget-Stage.yml

    * Build .NET 9 in CI as well

    * Fix new IL analyzer warnings

    * Add missing nullable annotation

    * Remove double lookup in 'FindRcwTypeByNameCached'

    * Delete leftover API compat files

    * Fix build

    * Bump .NET SDK to 9.0.201

    Co-authored-by: Manodasan Wignarajah <mawign@microsoft.com>

    * Update src/build.cmd

    ---------

    Co-authored-by: Manodasan Wignarajah <mawign@microsoft.com>

commit ede00cc
Author: Sergio Pedri <sergio0694@live.com>
Date:   Tue Mar 11 09:11:39 2025 -0700

    Remove unused internal 'IPropertyValue' and IDIC support (#1937)

    * Remove 'IPropertyValue' IDIC interface

    * Add tests

    ---------

    Co-authored-by: Manodasan Wignarajah <mawign@microsoft.com>

commit 2abc88e
Author: Sergio Pedri <sergio0694@live.com>
Date:   Fri Mar 7 11:19:00 2025 -0800

    Remove unnecessary overload use (#1945)

commit 7cf8b53
Author: Sergio Pedri <sergio0694@live.com>
Date:   Fri Feb 28 13:33:42 2025 -0800

    Add and use 'AttachFreeThreadedUnsafe' (#1938)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AOT performance Related to performance work trimming

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants