LangVersion设置为13.0解决编译错误

This commit is contained in:
nilaoda 2025-03-11 23:37:14 +08:00
parent 0dc75fc1af
commit 5ed7b23713
3 changed files with 7 additions and 3 deletions

View File

@ -5,7 +5,7 @@
<TargetFramework>net9.0</TargetFramework>
<RootNamespace>N_m3u8DL_RE.Common</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>preview</LangVersion>
<LangVersion>13.0</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>

View File

@ -5,7 +5,7 @@
<TargetFramework>net9.0</TargetFramework>
<RootNamespace>N_m3u8DL_RE.Parser</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>preview</LangVersion>
<LangVersion>13.0</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>

View File

@ -5,7 +5,11 @@
<TargetFramework>net9.0</TargetFramework>
<RootNamespace>N_m3u8DL_RE</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>preview</LangVersion>
<!--
When enabling LangVersion preview, that enables first class span's which then prefers MemoryExtensions.Contains over Enumerable.Contains
See details: https://github.com/dotnet/runtime/issues/109757
-->
<LangVersion>13.0</LangVersion>
<Nullable>enable</Nullable>
<Version>0.3.0</Version>
<Platforms>AnyCPU;x64</Platforms>