소스 검색

Proper configuration to pick up C# 8.0.

Bart De Smet 7 년 전
부모
커밋
e86510b734
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      Ix.NET/Source/Directory.build.props

+ 6 - 1
Ix.NET/Source/Directory.build.props

@@ -24,7 +24,12 @@
   <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
     <DebugType>full</DebugType>
   </PropertyGroup>
-    
+
+  <!-- While in beta, we need to set 8.0 manually (rather than latest). -->
+  <PropertyGroup Condition="'$(BuildForCSharp8)' == 'true'">
+    <LangVersion>8.0</LangVersion>
+  </PropertyGroup>
+
   <ItemGroup>
     <PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-18618-05" PrivateAssets="All"/>
     <PackageReference Include="Nerdbank.GitVersioning" Version="2.3.38" PrivateAssets="all" />