Skip to content

Commit 4b1c9e7

Browse files
committed
C#: Explicitly set language version
1 parent a1149de commit 4b1c9e7

15 files changed

+35
-0
lines changed

src/Numerics/Numerics-Net35.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
<WarningLevel>4</WarningLevel>
4545
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
4646
<NoWarn>1591</NoWarn>
47+
<LangVersion>5</LangVersion>
4748
</PropertyGroup>
4849
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
4950
<OutputPath>..\..\out\lib-debug\Net35\</OutputPath>
@@ -57,6 +58,7 @@
5758
<ErrorReport>prompt</ErrorReport>
5859
<WarningLevel>4</WarningLevel>
5960
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
61+
<LangVersion>5</LangVersion>
6062
</PropertyGroup>
6163
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release-Signed|AnyCPU'">
6264
<OutputPath>..\..\out\lib-signed\Net35\</OutputPath>
@@ -73,6 +75,7 @@
7375
<WarningLevel>4</WarningLevel>
7476
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
7577
<NoWarn>1591</NoWarn>
78+
<LangVersion>5</LangVersion>
7679
</PropertyGroup>
7780
<ItemGroup>
7881
<Reference Include="System" />

src/Numerics/Numerics-Portable259.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<WarningLevel>4</WarningLevel>
2929
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
3030
<NoWarn>1591</NoWarn>
31+
<LangVersion>5</LangVersion>
3132
</PropertyGroup>
3233
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
3334
<DefineConstants>TRACE;DEBUG;PORTABLE;NOSYSNUMERICS;NET45REFLECTION</DefineConstants>
@@ -40,6 +41,7 @@
4041
<ErrorReport>prompt</ErrorReport>
4142
<WarningLevel>4</WarningLevel>
4243
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
44+
<LangVersion>5</LangVersion>
4345
</PropertyGroup>
4446
<ItemGroup>
4547
<EmbeddedResource Include="Properties\Resources.resx">

src/Numerics/Numerics-Portable328.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<WarningLevel>4</WarningLevel>
2929
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
3030
<NoWarn>1591</NoWarn>
31+
<LangVersion>5</LangVersion>
3132
</PropertyGroup>
3233
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
3334
<DefineConstants>TRACE;DEBUG;PORTABLE;NOSYSNUMERICS</DefineConstants>
@@ -40,6 +41,7 @@
4041
<ErrorReport>prompt</ErrorReport>
4142
<WarningLevel>4</WarningLevel>
4243
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
44+
<LangVersion>5</LangVersion>
4345
</PropertyGroup>
4446
<ItemGroup>
4547
<EmbeddedResource Include="Properties\Resources.resx">

src/Numerics/Numerics-Portable47.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<WarningLevel>4</WarningLevel>
2929
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
3030
<NoWarn>1591</NoWarn>
31+
<LangVersion>5</LangVersion>
3132
</PropertyGroup>
3233
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
3334
<DefineConstants>TRACE;DEBUG;PORTABLE</DefineConstants>
@@ -40,6 +41,7 @@
4041
<ErrorReport>prompt</ErrorReport>
4142
<WarningLevel>4</WarningLevel>
4243
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
44+
<LangVersion>5</LangVersion>
4345
</PropertyGroup>
4446
<ItemGroup>
4547
<EmbeddedResource Include="Properties\Resources.resx">

src/Numerics/Numerics-Portable7.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<WarningLevel>4</WarningLevel>
2929
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
3030
<NoWarn>1591</NoWarn>
31+
<LangVersion>5</LangVersion>
3132
</PropertyGroup>
3233
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
3334
<DefineConstants>TRACE;DEBUG;PORTABLE;NET45REFLECTION</DefineConstants>
@@ -40,6 +41,7 @@
4041
<ErrorReport>prompt</ErrorReport>
4142
<WarningLevel>4</WarningLevel>
4243
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
44+
<LangVersion>5</LangVersion>
4345
</PropertyGroup>
4446
<ItemGroup>
4547
<EmbeddedResource Include="Properties\Resources.resx">

src/Numerics/Numerics-Portable78.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<WarningLevel>4</WarningLevel>
2929
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
3030
<NoWarn>1591</NoWarn>
31+
<LangVersion>5</LangVersion>
3132
</PropertyGroup>
3233
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
3334
<DefineConstants>TRACE;DEBUG;PORTABLE;NOSYSNUMERICS;NET45REFLECTION</DefineConstants>
@@ -40,6 +41,7 @@
4041
<ErrorReport>prompt</ErrorReport>
4142
<WarningLevel>4</WarningLevel>
4243
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
44+
<LangVersion>5</LangVersion>
4345
</PropertyGroup>
4446
<ItemGroup>
4547
<EmbeddedResource Include="Properties\Resources.resx">

src/Numerics/Numerics.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
<WarningLevel>4</WarningLevel>
4545
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
4646
<NoWarn>1591</NoWarn>
47+
<LangVersion>5</LangVersion>
4748
</PropertyGroup>
4849
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
4950
<OutputPath>..\..\out\lib-debug\Net40\</OutputPath>
@@ -57,6 +58,7 @@
5758
<ErrorReport>prompt</ErrorReport>
5859
<WarningLevel>4</WarningLevel>
5960
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
61+
<LangVersion>5</LangVersion>
6062
</PropertyGroup>
6163
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release-Signed|AnyCPU'">
6264
<OutputPath>..\..\out\lib-signed\Net40\</OutputPath>
@@ -73,6 +75,7 @@
7375
<WarningLevel>4</WarningLevel>
7476
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
7577
<NoWarn>1591</NoWarn>
78+
<LangVersion>5</LangVersion>
7679
</PropertyGroup>
7780
<ItemGroup>
7881
<Reference Include="System" />

src/TestData/TestData.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
2727
<NoWarn>1591</NoWarn>
2828
<Prefer32Bit>false</Prefer32Bit>
29+
<LangVersion>5</LangVersion>
2930
</PropertyGroup>
3031
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
3132
<DefineConstants>DEBUG;TRACE</DefineConstants>
@@ -40,6 +41,7 @@
4041
<PlatformTarget>AnyCPU</PlatformTarget>
4142
<NoWarn>1591</NoWarn>
4243
<Prefer32Bit>false</Prefer32Bit>
44+
<LangVersion>5</LangVersion>
4345
</PropertyGroup>
4446
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release-Signed|AnyCPU'">
4547
<OutputPath>..\..\out\test-signed\Net35\</OutputPath>
@@ -55,6 +57,7 @@
5557
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
5658
<NoWarn>1591</NoWarn>
5759
<Prefer32Bit>false</Prefer32Bit>
60+
<LangVersion>5</LangVersion>
5861
</PropertyGroup>
5962
<ItemGroup>
6063
<Reference Include="System" />

src/UnitTests/UnitTests-Net35.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<NoWarn>1591</NoWarn>
2727
<Prefer32Bit>false</Prefer32Bit>
2828
<WarningLevel>4</WarningLevel>
29+
<LangVersion>5</LangVersion>
2930
</PropertyGroup>
3031
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
3132
<DefineConstants>TRACE;DEBUG;NET35;NOSYSNUMERICS</DefineConstants>
@@ -39,6 +40,7 @@
3940
<WarningLevel>4</WarningLevel>
4041
<NoWarn>1591</NoWarn>
4142
<Prefer32Bit>false</Prefer32Bit>
43+
<LangVersion>5</LangVersion>
4244
</PropertyGroup>
4345
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release-Signed|AnyCPU' ">
4446
<DefineConstants>TRACE;NET35;NOSYSNUMERICS</DefineConstants>
@@ -52,6 +54,7 @@
5254
<NoWarn>1591</NoWarn>
5355
<Prefer32Bit>false</Prefer32Bit>
5456
<WarningLevel>4</WarningLevel>
57+
<LangVersion>5</LangVersion>
5558
</PropertyGroup>
5659
<ItemGroup>
5760
<Reference Include="System" />

src/UnitTests/UnitTests-Portable259.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
2525
<NoWarn>1591</NoWarn>
2626
<WarningLevel>4</WarningLevel>
27+
<LangVersion>5</LangVersion>
2728
</PropertyGroup>
2829
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2930
<DefineConstants>TRACE;DEBUG;PORTABLE;NOSYSNUMERICS;NET45REFLECTION</DefineConstants>
@@ -36,6 +37,7 @@
3637
<ErrorReport>prompt</ErrorReport>
3738
<WarningLevel>4</WarningLevel>
3839
<NoWarn>1591</NoWarn>
40+
<LangVersion>5</LangVersion>
3941
</PropertyGroup>
4042
<ItemGroup>
4143
<Reference Include="System" />

0 commit comments

Comments
 (0)