Skip to content

Commit 32d3c1f

Browse files
更新polysharp版本
1 parent 34fbf33 commit 32d3c1f

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

src/Analyser/Analyser.csproj

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@
1414
<PackageTags>chinese;nlp;analysis;jieba;aot;GB18030</PackageTags>
1515
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net10.0'))">true</IsAotCompatible>
1616
<Nullable>enable</Nullable>
17-
<LangVersion>latest</LangVersion>
17+
<LangVersion>14.0</LangVersion>
18+
<ImplicitUsings>enable</ImplicitUsings>
19+
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
20+
<!-- PolySharp 配置:启用所有 C# 14 特性 -->
21+
<PolySharpIncludeRuntimeSupportedAttributes>true</PolySharpIncludeRuntimeSupportedAttributes>
22+
<PolySharpUseEmbeddedAttributeForGeneratedTypes>true</PolySharpUseEmbeddedAttributeForGeneratedTypes>
23+
<PolySharpUsePublicAccessibilityForGeneratedTypes>false</PolySharpUsePublicAccessibilityForGeneratedTypes>
24+
<PolySharpUseInteropServices2NamespaceForUnmanagedCallersOnlyAttribute>true</PolySharpUseInteropServices2NamespaceForUnmanagedCallersOnlyAttribute>
25+
<PolySharpExcludeTypeForwardedToDeclarations>false</PolySharpExcludeTypeForwardedToDeclarations>
1826
</PropertyGroup>
1927

2028
<PropertyGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net10.0'))">
@@ -25,7 +33,7 @@
2533
<!-- .NET Standard 2.1、.NET Standard 2.0 与 .NET Framework 4.8 配置 -->
2634
<!-- System.Text.Json会间接引用Microsoft.Bcl.AsyncInterfaces,所以不用单独引用 -->
2735
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.1' Or '$(TargetFramework)' == 'netstandard2.0' Or '$(TargetFramework)' == 'net48'">
28-
<PackageReference Include="PolySharp" Version="1.15.0">
36+
<PackageReference Include="PolySharp" Version="1.16.0">
2937
<PrivateAssets>all</PrivateAssets>
3038
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
3139
</PackageReference>

0 commit comments

Comments
 (0)