Skip to content

Commit 26ad37d

Browse files
committed
NumberExtensions.CS14: enable AoT compilation for net10.0
1 parent 73ba783 commit 26ad37d

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

UnitsNet.NumberExtensions.CS14/UnitsNet.NumberExtensions.CS14.csproj

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,14 @@
2323
<VersionNoSuffix>$([System.Text.RegularExpressions.Regex]::Match($(Version), '^[0-9.]+')).0</VersionNoSuffix>
2424
<AssemblyVersion>6.0.0.0</AssemblyVersion> <!-- Fixed to major version, for strong naming -->
2525
<FileVersion>$(VersionNoSuffix)</FileVersion> <!-- Match the NuGet version number, except any suffix in the semantic version. -->
26-
<LangVersion>preview</LangVersion>
26+
<LangVersion>latest</LangVersion>
2727
<Nullable>enable</Nullable>
2828
<RootNamespace>UnitsNet</RootNamespace>
2929
<TargetFrameworks>netstandard2.0;net8.0;net9.0;net10.0</TargetFrameworks>
3030

31-
<!-- TEMPORARY WORKAROUND UNTIL NET10 SDK IS STABLE
32-
Disable ILLink analyzers due to incompatibility with C# 14 extension members preview
31+
<!-- Disable ILLink analyzers due to incompatibility with C# 14 extension members preview
3332
"CSC : error AD0001: Analyzer 'ILLink.RoslynAnalyzer.DynamicallyAccessedMembersAnalyzer' threw an exception of type 'System.InvalidCastException' with message 'Unable to cast object of type 'Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.NonErrorNamedTypeSymbol' to type 'Microsoft.CodeAnalysis.IMethodSymbol'.'." -->
34-
<IsAotCompatible>false</IsAotCompatible>
35-
<!-- <IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible> -->
33+
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net10.0'))">true</IsAotCompatible>
3634
</PropertyGroup>
3735

3836
<ItemGroup>

0 commit comments

Comments
 (0)