Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Set $(LangVersion) to latest to more closely match .NET 6
Browse files Browse the repository at this point in the history
Context: dotnet/android#6118

Running into issues with C# 10 global usings, because Xamarin.Legacy.Sdk is building with C# 8.0 by default.
  • Loading branch information
jonathanpeppers committed Jul 26, 2021
1 parent f78e04e commit 3c6d0df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Xamarin.Legacy.Sdk/Sdk/Xamarin.Legacy.Android.targets
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
</PropertyGroup>
<PropertyGroup>
<DefineConstants>$(DefineConstants);ANDROID</DefineConstants>
<LangVersion Condition=" '$(LangVersion)' == '' ">latest</LangVersion>
<OutputPath Condition=" '$(OutputPath)' == '' ">$(BaseOutputPath)$(Configuration)</OutputPath>
<EnableDefaultAndroidItems Condition=" '$(EnableDefaultAndroidItems)' == '' ">true</EnableDefaultAndroidItems>
<AndroidUseIntermediateDesignerFile Condition=" '$(AndroidUseIntermediateDesignerFile)' == '' ">true</AndroidUseIntermediateDesignerFile>
Expand Down
1 change: 1 addition & 0 deletions src/Xamarin.Legacy.Sdk/Sdk/Xamarin.Legacy.iOS.targets
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
</PropertyGroup>
<PropertyGroup>
<DefineConstants>$(DefineConstants);IOS</DefineConstants>
<LangVersion Condition=" '$(LangVersion)' == '' ">latest</LangVersion>
</PropertyGroup>
<Import Project="$(_LegacyExtensionsPath)/Xamarin/iOS/Xamarin.iOS.CSharp.targets" Condition=" '$(_FixupsNeeded)' == 'true' " />
<Import Project="$(MSBuildExtensionsPath)/Xamarin/iOS/Xamarin.iOS.CSharp.targets" Condition=" '$(_FixupsNeeded)' != 'true' " />
Expand Down

0 comments on commit 3c6d0df

Please sign in to comment.