Skip to content

Commit 02786d6

Browse files
committed
[build] Target net9.0
1 parent 14f94a5 commit 02786d6

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<ProduceReferenceAssemblyInOutDir>true</ProduceReferenceAssemblyInOutDir>
1010
<!-- Disables the transitive restore of packages like Microsoft.AspNetCore.App.Ref, Microsoft.WindowsDesktop.App.Ref -->
1111
<DisableTransitiveFrameworkReferenceDownloads>true</DisableTransitiveFrameworkReferenceDownloads>
12-
<DotNetTargetFrameworkVersion>8.0</DotNetTargetFrameworkVersion>
12+
<DotNetTargetFrameworkVersion>9.0</DotNetTargetFrameworkVersion>
1313
<DotNetTargetFramework>net$(DotNetTargetFrameworkVersion)</DotNetTargetFramework>
1414
</PropertyGroup>
1515

build-tools/automation/azure-pipelines.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ parameters:
2525
variables:
2626
RunningOnCI: true
2727
Build.Configuration: Release
28-
DotNetCoreVersion: 8.0.303
29-
DotNetTargetFramework: net8.0
28+
DotNetCoreVersion: 9.0.100
29+
DotNetTargetFramework: net9.0
3030
NetCoreTargetFrameworkPathSuffix: -$(DotNetTargetFramework)
3131
1ESWindowsPool: AzurePipelines-EO
3232
1ESWindowsImage: AzurePipelinesWindows2022compliant

src/Java.Interop/Java.Interop/JniValueMarshaler.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ Expression CreateSelf (JniValueMarshalerContext context, ParameterExpression sou
177177
return self;
178178
}
179179

180+
[UnconditionalSuppressMessage ("Trimming", "IL2073", ExpressionRequiresUnreferencedCode)]
180181
[return: DynamicallyAccessedMembers (DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)]
181182
Type _GetType () => GetType ();
182183

0 commit comments

Comments
 (0)