Use C# latest language in proj files (#6559)

Address #6547

We begin using C# 7.2 features (Span) but .Net Core doesn't seem use "Latest" as default for a language.
So we explicitly set the value.
This commit is contained in:
Ilya 2018-04-06 04:39:20 +04:00 committed by Travis Plunk
parent 2a45b48ae2
commit 31085d5737
2 changed files with 1 additions and 1 deletions

View file

@ -95,6 +95,7 @@
<TargetFramework>netcoreapp2.0</TargetFramework>
<RuntimeFrameworkVersion>2.0.6</RuntimeFrameworkVersion>
<LangVersion>Latest</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

View file

@ -4,7 +4,6 @@
<Description>PowerShell Core's System.Management.Automation project</Description>
<NoWarn>$(NoWarn);CS1570;CS1734</NoWarn>
<AssemblyName>System.Management.Automation</AssemblyName>
<LangVersion>7.2</LangVersion>
</PropertyGroup>
<ItemGroup>