Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7dba617

Browse files
committed
Set language version to 6
Prevent accidental introduction of csharp 7 features.
1 parent 5070db0 commit 7dba617

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/clrmodule/clrmodule.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
1616
<PythonBuildDir Condition=" '$(PythonBuildDir)' == '' ">$(SolutionDir)\bin\</PythonBuildDir>
1717
<AppDesignerFolder>Properties</AppDesignerFolder>
18-
<!--If need to freeze language version: <LangVersion>5</LangVersion> !-->
18+
<LangVersion>6</LangVersion>
1919
<RestorePackages>true</RestorePackages>
2020
<ErrorReport>prompt</ErrorReport>
2121
</PropertyGroup>

src/console/Console.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
1616
<PythonBuildDir Condition=" '$(PythonBuildDir)' == '' ">$(SolutionDir)\bin\</PythonBuildDir>
1717
<AppDesignerFolder>Properties</AppDesignerFolder>
18-
<!--If need to freeze language version: <LangVersion>5</LangVersion> !-->
18+
<LangVersion>6</LangVersion>
1919
<ApplicationIcon>python-clear.ico</ApplicationIcon>
2020
<ErrorReport>prompt</ErrorReport>
2121
</PropertyGroup>

src/embed_tests/Python.EmbeddingTest.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<NoWarn>1591</NoWarn>
1515
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
1616
<PythonBuildDir Condition=" '$(PythonBuildDir)' == '' ">$(SolutionDir)\bin\</PythonBuildDir>
17-
<!--If need to freeze language version: <LangVersion>5</LangVersion> !-->
17+
<LangVersion>6</LangVersion>
1818
<RestorePackages>true</RestorePackages>
1919
<ErrorReport>prompt</ErrorReport>
2020
</PropertyGroup>

src/runtime/Python.Runtime.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
1616
<PythonBuildDir Condition=" '$(PythonBuildDir)' == '' ">$(SolutionDir)\bin\</PythonBuildDir>
1717
<AppDesignerFolder>Properties</AppDesignerFolder>
18-
<!--If need to freeze language version: <LangVersion>5</LangVersion> !-->
18+
<LangVersion>6</LangVersion>
1919
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
2020
<SignAssembly>false</SignAssembly>
2121
<AssemblyOriginatorKeyFile>..\pythonnet.snk</AssemblyOriginatorKeyFile>

src/testing/Python.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<NoWarn>1591,0067</NoWarn>
1515
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir>
1616
<PythonBuildDir Condition=" '$(PythonBuildDir)' == '' ">$(SolutionDir)\bin\</PythonBuildDir>
17-
<!--If need to freeze language version: <LangVersion>5</LangVersion> !-->
17+
<LangVersion>6</LangVersion>
1818
<SignAssembly>false</SignAssembly>
1919
<AssemblyOriginatorKeyFile>..\pythonnet.snk</AssemblyOriginatorKeyFile>
2020
<ErrorReport>prompt</ErrorReport>

0 commit comments

Comments
 (0)