Reputation: 19820
Officially, C# 9 only supports .NET 5. What about Xamarin? Is there an unofficial way to use C# 9 in Xamarin? What about libraries? Does it mean that any library that wants to support Xamarin cannot use C# 9?
EDIT:
Upvotes: 3
Views: 2349
Reputation: 49
Yes, we can do it by using latest Visual studio (which supports .NET 5.0) and changing language version of project.
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>9.0</LangVersion>
</PropertyGroup>
.....
.....
</Project>
Upvotes: 5