Skip to content

Commit

Permalink
[build] Target net9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jpobst committed Nov 22, 2024
1 parent 14f94a5 commit 02786d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ProduceReferenceAssemblyInOutDir>true</ProduceReferenceAssemblyInOutDir>
<!-- Disables the transitive restore of packages like Microsoft.AspNetCore.App.Ref, Microsoft.WindowsDesktop.App.Ref -->
<DisableTransitiveFrameworkReferenceDownloads>true</DisableTransitiveFrameworkReferenceDownloads>
<DotNetTargetFrameworkVersion>8.0</DotNetTargetFrameworkVersion>
<DotNetTargetFrameworkVersion>9.0</DotNetTargetFrameworkVersion>
<DotNetTargetFramework>net$(DotNetTargetFrameworkVersion)</DotNetTargetFramework>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions build-tools/automation/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ parameters:
variables:
RunningOnCI: true
Build.Configuration: Release
DotNetCoreVersion: 8.0.303
DotNetTargetFramework: net8.0
DotNetCoreVersion: 9.0.100
DotNetTargetFramework: net9.0
NetCoreTargetFrameworkPathSuffix: -$(DotNetTargetFramework)
1ESWindowsPool: AzurePipelines-EO
1ESWindowsImage: AzurePipelinesWindows2022compliant
Expand Down
1 change: 1 addition & 0 deletions src/Java.Interop/Java.Interop/JniValueMarshaler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ Expression CreateSelf (JniValueMarshalerContext context, ParameterExpression sou
return self;
}

[UnconditionalSuppressMessage ("Trimming", "IL2073", ExpressionRequiresUnreferencedCode)]

Check failure on line 180 in src/Java.Interop/Java.Interop/JniValueMarshaler.cs

View check run for this annotation

Azure Pipelines / Java.Interop (Mac - .NET)

src/Java.Interop/Java.Interop/JniValueMarshaler.cs#L180

src/Java.Interop/Java.Interop/JniValueMarshaler.cs(180,4): Error CS1729: 'UnconditionalSuppressMessageAttribute' does not contain a constructor that takes 3 arguments

Check failure on line 180 in src/Java.Interop/Java.Interop/JniValueMarshaler.cs

View check run for this annotation

Azure Pipelines / Java.Interop (Mac - .NET)

src/Java.Interop/Java.Interop/JniValueMarshaler.cs#L180

src/Java.Interop/Java.Interop/JniValueMarshaler.cs(180,4): Error CS1729: 'UnconditionalSuppressMessageAttribute' does not contain a constructor that takes 3 arguments
[return: DynamicallyAccessedMembers (DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)]
Type _GetType () => GetType ();

Expand Down

0 comments on commit 02786d6

Please sign in to comment.