Skip to content

Commit 456294a

Browse files
[build] Unify $(LangVersion) to use defaults across projects (#10766)
In general, we should only need to set `$(LangVersion)` in a `netstandard2.0` project to `latest`. Any project that is `net10.0`, `net11.0`, etc. should use the default C# version that the .NET SDK recommends. Co-authored-by: simonrozsival <374616+simonrozsival@users.noreply.github.com>
1 parent 40dcdcb commit 456294a

File tree

4 files changed

+0
-4
lines changed

4 files changed

+0
-4
lines changed

build-tools/xaprepare/xaprepare/xaprepare.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<PropertyGroup>
55
<TargetFramework>$(DotNetStableTargetFramework)</TargetFramework>
66
<OutputType>Exe</OutputType>
7-
<LangVersion>$(LangVersion)</LangVersion>
87
<RootNamespace>Xamarin.Android.Prepare</RootNamespace>
98
<AssemblyName>xaprepare</AssemblyName>
109
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

src/Microsoft.Android.Sdk.Analysis/Microsoft.Android.Sdk.Analysis.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
66
<OutputPath>$(MicrosoftAndroidSdkAnalysisOutDir)</OutputPath>
77
<IsRoslynComponent>true</IsRoslynComponent>
8-
<LangVersion>latest</LangVersion>
98
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
109
<AssemblyOriginatorKeyFile>..\..\product.snk</AssemblyOriginatorKeyFile>
1110
</PropertyGroup>

src/Microsoft.Android.Sdk.Analysis/Tests/Microsoft.Android.Sdk.Analysis.Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<Import Project="..\..\..\Configuration.props" />
33
<PropertyGroup>
44
<TargetFramework>$(DotNetStableTargetFramework)</TargetFramework>
5-
<LangVersion>latest</LangVersion>
65
<OutputPath>..\..\..\bin\Test$(Configuration)</OutputPath>
76
</PropertyGroup>
87
<ItemGroup>

src/Mono.Android.Runtime/Mono.Android.Runtime.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
<EnableSingleFileAnalyzer>true</EnableSingleFileAnalyzer>
1414
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
1515
<ImplicitlyExpandDesignTimeFacades>false</ImplicitlyExpandDesignTimeFacades>
16-
<LangVersion>10</LangVersion>
1716
<NoStdLib>true</NoStdLib>
1817
<Nullable>enable</Nullable>
1918
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>

0 commit comments

Comments
 (0)