Skip to content

Commit

Permalink
Enable use of C# 9 across all projects
Browse files Browse the repository at this point in the history
  • Loading branch information
atifaziz committed Dec 31, 2020
1 parent 55744f2 commit 4f05254
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ trim_trailing_whitespace = true
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
indent_size = 2

[*.Build.{props,targets}]
indent_size = 2

[*.{sln}]
indent_style = tab

Expand Down
5 changes: 5 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>
<PropertyGroup>
<LangVersion>9</LangVersion>
</PropertyGroup>
</Project>
5 changes: 4 additions & 1 deletion MoreLinq.Test/MoreLinq.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<ApplicationIcon />
<OutputTypeEx>library</OutputTypeEx>
<StartupObject>MoreLinq.Test.Program</StartupObject>
<LangVersion>8</LangVersion>
<WarningsNotAsErrors>618</WarningsNotAsErrors>
</PropertyGroup>

Expand All @@ -27,6 +26,10 @@
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Delegating" Version="1.3.1" />
<PackageReference Include="IsExternalInit" Version="1.0.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
Expand Down
1 change: 1 addition & 0 deletions MoreLinq.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
build.sh = build.sh
builddocs.cmd = builddocs.cmd
COPYING.txt = COPYING.txt
Directory.Build.props = Directory.Build.props
global.json = global.json
msbuild.cmd = msbuild.cmd
pack.cmd = pack.cmd
Expand Down
1 change: 0 additions & 1 deletion MoreLinq/MoreLinq.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@
<VersionPrefix>3.3.2</VersionPrefix>
<Authors>MoreLINQ Developers.</Authors>
<TargetFrameworks>net451;netstandard1.0;netstandard2.0</TargetFrameworks>
<LangVersion>9</LangVersion>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!-- Parallel build is disabled to avoid file locking issues during T4 code generation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<LangVersion>8</LangVersion>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
Expand Down

0 comments on commit 4f05254

Please sign in to comment.