Skip to content

Commit

Permalink
Merge pull request #1801 from MessagePack-CSharp/langversion12
Browse files Browse the repository at this point in the history
Use LangVersion=12 everywhere except code that Unity compiles
  • Loading branch information
AArnott committed Apr 22, 2024
2 parents c07dc04 + 3fc7cde commit dff76a1
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions Directory.Build.props
Expand Up @@ -6,8 +6,7 @@
<BaseIntermediateOutputPath>$(RepoRootPath)obj\$([MSBuild]::MakeRelative($(RepoRootPath), $(MSBuildProjectDirectory)))\</BaseIntermediateOutputPath>
<BaseOutputPath Condition=" '$(BaseOutputPath)' == '' ">$(RepoRootPath)bin\$(MSBuildProjectName)\</BaseOutputPath>
<PackageOutputPath>$(RepoRootPath)bin\Packages\$(Configuration)\</PackageOutputPath>
<LangVersion>10</LangVersion>
<LangVersion Condition=" '$(TargetFramework)' == 'net8.0' ">12</LangVersion>
<LangVersion>12</LangVersion>
<AnalysisLevel>latest</AnalysisLevel>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand Down
Expand Up @@ -5,7 +5,6 @@
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>Benchmark</RootNamespace>
<Nullable>enable</Nullable>
<LangVersion>12</LangVersion>
<ServerGarbageCollection>true</ServerGarbageCollection>

<TieredPGO>false</TieredPGO>
Expand Down
Expand Up @@ -7,7 +7,6 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<NoWarn>$(NoWarn);MSB3243</NoWarn>
<Nullable>enable</Nullable>
<LangVersion>12</LangVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>12</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsAnalyzerProject>true</IsAnalyzerProject>
Expand Down
Expand Up @@ -4,7 +4,6 @@
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>11</LangVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion tests/MessagePack.Tests/MessagePack.Tests.csproj
Expand Up @@ -3,7 +3,6 @@
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('Windows'))">$(TargetFrameworks);net472</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>10</LangVersion>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
<NoWarn>$(NoWarn);CS1701</NoWarn>
Expand Down

0 comments on commit dff76a1

Please sign in to comment.