Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 10 commits into
base: staging/2.3
Choose a base branch
from

Conversation

Sergio0694
Copy link
Member

@Sergio0694 Sergio0694 commented Oct 24, 2024

This PR includes the following changes:

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

@Sergio0694 Sergio0694 added performance Related to performance work trimming AOT labels Oct 24, 2024
@Sergio0694 Sergio0694 requested a review from manodasanW October 24, 2024 04:10
@Sergio0694 Sergio0694 force-pushed the user/sergiopedri/cswinrt-net9 branch from 2ac8ec3 to 55e16a8 Compare November 25, 2024 07:15
@Sergio0694 Sergio0694 changed the base branch from staging/2.2 to staging/2.3 November 25, 2024 07:16
@Sergio0694 Sergio0694 marked this pull request as ready for review November 25, 2024 07:28
@Sergio0694 Sergio0694 force-pushed the user/sergiopedri/cswinrt-net9 branch from 6c5ab62 to 334136f Compare November 25, 2024 08:10
@Sergio0694 Sergio0694 force-pushed the user/sergiopedri/cswinrt-net9 branch from c2ef284 to fb7b997 Compare December 4, 2024 03:39
<LibBuildTFMs Condition="'$(CIBuildReason)' == 'CI'">netstandard2.0;net8.0</LibBuildTFMs>
<LibBuildTFMsNoNetStandard>net8.0</LibBuildTFMsNoNetStandard>
<LibBuildTFMsNoNetStandard>net8.0;net9.0</LibBuildTFMsNoNetStandard>
<LibBuildTFMsNoNetStandard Condition="'$(CIBuildReason)' == 'CI'">net8.0</LibBuildTFMsNoNetStandard>
<TestsBuildTFMs>net8.0-windows10.0.19041.0</TestsBuildTFMs>
<TestsBuildTFMs Condition="'$(CIBuildReason)' == 'CI'">net8.0-windows10.0.19041.0</TestsBuildTFMs>
Copy link
Member

Choose a reason for hiding this comment

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

We probably also want to run our object lifetime tests on .NET 9 too and functional?

@@ -1092,7 +1092,7 @@ public void Dispose()

public static new unsafe MarshalerArray CreateMarshalerArray(T[] array)
{
#if NET
#if NET && !NET9_0_OR_GREATER
Copy link
Member

Choose a reason for hiding this comment

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

We probably should add some non blittable array marshaling test in functional tests for when aot is enabled and are running for .NET 9.

And we should at least manually re-enable the below authoring tests we disabled and confirm it works now on .NET 9. Note vcxproj will need to be changed to build for .NET 9 which is why I am not sure if we want to do that change in the pipeline yet.

@Sergio0694 Sergio0694 force-pushed the user/sergiopedri/cswinrt-net9 branch from 4931a49 to 9e20452 Compare January 22, 2025 03:47
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