You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@reef.apache.org by mo...@apache.org on 2018/01/05 00:09:43 UTC

reef git commit: [REEF-1968] Allow the use of C#7.2

Repository: reef
Updated Branches:
  refs/heads/master 8c1fbf1fe -> b0b9cb1dd


[REEF-1968] Allow the use of C#7.2

This adds a directiive to both `build.props` and `build.DotNet.props` to
allow for C# 7.2 code.

This also adds the `.vscode` folder to `.gitignore`.

JIRA:
  [REEF-1968](https://issues.apache.org/jira/browse/REEF-1968)

Pull Request:
  This closes #1422


Project: http://git-wip-us.apache.org/repos/asf/reef/repo
Commit: http://git-wip-us.apache.org/repos/asf/reef/commit/b0b9cb1d
Tree: http://git-wip-us.apache.org/repos/asf/reef/tree/b0b9cb1d
Diff: http://git-wip-us.apache.org/repos/asf/reef/diff/b0b9cb1d

Branch: refs/heads/master
Commit: b0b9cb1dd5048da7429cf2fd3143de7a6ebdea75
Parents: 8c1fbf1
Author: Markus Weimer <we...@apache.org>
Authored: Thu Dec 21 11:53:58 2017 -0800
Committer: Sergiy Matusevych <mo...@apache.com>
Committed: Thu Jan 4 11:48:39 2018 -0800

----------------------------------------------------------------------
 .gitignore                 | 1 +
 lang/cs/build.DotNet.props | 5 +++++
 lang/cs/build.props        | 5 +++++
 3 files changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/reef/blob/b0b9cb1d/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index dcb1de0..b4032c4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -29,6 +29,7 @@ atlassian-ide-plugin.xml
 *.VC.db
 *.vcxproj.user
 .vs
+.vscode
 #
 # ----------------------------------------------------------------------
 # OS Files

http://git-wip-us.apache.org/repos/asf/reef/blob/b0b9cb1d/lang/cs/build.DotNet.props
----------------------------------------------------------------------
diff --git a/lang/cs/build.DotNet.props b/lang/cs/build.DotNet.props
index a202355..1635d52 100644
--- a/lang/cs/build.DotNet.props
+++ b/lang/cs/build.DotNet.props
@@ -33,6 +33,11 @@ under the License.
     <DefaultItemExcludes>$(DefaultItemExcludes);**/AssemblyInfo.cs;packages.config;*.nuspec</DefaultItemExcludes>
   </PropertyGroup>
 
+  <!-- Allow for C# 7.2 language constructs -->
+  <PropertyGroup>
+    <LangVersion>7.2</LangVersion>
+  </PropertyGroup>
+  
   <PropertyGroup>
     <Platforms>x64</Platforms>
     <PlatformTarget>x64</PlatformTarget>

http://git-wip-us.apache.org/repos/asf/reef/blob/b0b9cb1d/lang/cs/build.props
----------------------------------------------------------------------
diff --git a/lang/cs/build.props b/lang/cs/build.props
index f2f6020..63f62eb 100644
--- a/lang/cs/build.props
+++ b/lang/cs/build.props
@@ -56,6 +56,11 @@ under the License.
     <WarningsNotAsErrors>612,618</WarningsNotAsErrors>
   </PropertyGroup>
 
+  <!-- Allow for C# 7.2 language constructs -->
+  <PropertyGroup>
+    <LangVersion>7.2</LangVersion>
+  </PropertyGroup>
+
   <!-- REEF NuGet properties -->
   <PropertyGroup>
     <IsSnapshot>true</IsSnapshot>