From 41e6722c437f8664cc1d0305fb9b837264414367 Mon Sep 17 00:00:00 2001 From: Asriel Camora Date: Fri, 15 Mar 2024 00:54:43 -0700 Subject: [PATCH] Actual update to .net 8 --- .editorconfig | 22 ++++++++++++++++++++-- Benchmark/Craftimizer.Benchmark.csproj | 2 +- Simulator/Craftimizer.Simulator.csproj | 2 +- Solver/Craftimizer.Solver.csproj | 2 +- Test/Craftimizer.Test.csproj | 2 +- 5 files changed, 24 insertions(+), 6 deletions(-) diff --git a/.editorconfig b/.editorconfig index 0d8e909..2e37080 100644 --- a/.editorconfig +++ b/.editorconfig @@ -154,8 +154,8 @@ dotnet_diagnostic.MA0016.severity = suggestion dotnet_diagnostic.MA0008.severity = suggestion dotnet_diagnostic.CA1805.severity = warning dotnet_diagnostic.CA1825.severity = warning -dotnet_diagnostic.CA1841.severity = suggestion -dotnet_diagnostic.CA1845.severity = suggestion +dotnet_diagnostic.CA1841.severity = warning +dotnet_diagnostic.CA1845.severity = warning dotnet_diagnostic.MA0011.severity = silent dotnet_diagnostic.MA0076.severity = silent dotnet_diagnostic.MA0046.severity = silent @@ -166,6 +166,13 @@ csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion csharp_style_pattern_matching_over_as_with_null_check = true:suggestion csharp_style_prefer_not_pattern = true:suggestion csharp_style_prefer_extended_property_pattern = true:suggestion +csharp_style_prefer_primary_constructors = true:suggestion +dotnet_diagnostic.CA1855.severity = warning +dotnet_diagnostic.CA1866.severity = warning +dotnet_diagnostic.CA1865.severity = warning +dotnet_diagnostic.MA0112.severity = none +dotnet_diagnostic.MA0038.severity = none +dotnet_diagnostic.MA0041.severity = none [*.{appxmanifest,asax,ascx,aspx,axaml,axml,build,c,c++,cc,cginc,compute,config,cp,cpp,cs,cshtml,csproj,css,cu,cuh,cxx,dbml,discomap,dtd,h,hh,hlsl,hlsli,hlslinc,hpp,htm,html,hxx,inc,inl,ino,ipp,js,json,jsproj,jsx,lsproj,master,mpp,mq4,mq5,mqh,njsproj,nuspec,paml,proj,props,proto,razor,resjson,resw,resx,skin,StyleCop,targets,tasks,tpp,ts,tsx,usf,ush,vb,vbproj,xaml,xamlx,xml,xoml,xsd}] indent_style = space @@ -180,3 +187,14 @@ dotnet_style_operator_placement_when_wrapping = beginning_of_line dotnet_style_collection_initializer = true:suggestion dotnet_diagnostic.CA1852.severity = warning dotnet_style_namespace_match_folder = true:suggestion +dotnet_style_prefer_collection_expression = true:suggestion +dotnet_style_prefer_simplified_boolean_expressions = true:suggestion +dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion +dotnet_style_prefer_conditional_expression_over_return = true:suggestion +dotnet_style_explicit_tuple_names = true:suggestion +dotnet_style_prefer_inferred_tuple_names = true:suggestion +dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion +dotnet_style_prefer_compound_assignment = true:suggestion +dotnet_style_prefer_simplified_interpolation = true:suggestion +dotnet_analyzer_diagnostic.category-performance.severity = warning +dotnet_diagnostic.CA1829.severity = error diff --git a/Benchmark/Craftimizer.Benchmark.csproj b/Benchmark/Craftimizer.Benchmark.csproj index dfbe8c3..09dc5e0 100644 --- a/Benchmark/Craftimizer.Benchmark.csproj +++ b/Benchmark/Craftimizer.Benchmark.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 Exe enable enable diff --git a/Simulator/Craftimizer.Simulator.csproj b/Simulator/Craftimizer.Simulator.csproj index 1f2f063..902747a 100644 --- a/Simulator/Craftimizer.Simulator.csproj +++ b/Simulator/Craftimizer.Simulator.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 enable enable x64 diff --git a/Solver/Craftimizer.Solver.csproj b/Solver/Craftimizer.Solver.csproj index eaea55b..d57c49a 100644 --- a/Solver/Craftimizer.Solver.csproj +++ b/Solver/Craftimizer.Solver.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 enable enable True diff --git a/Test/Craftimizer.Test.csproj b/Test/Craftimizer.Test.csproj index 7154d9c..e9d833d 100644 --- a/Test/Craftimizer.Test.csproj +++ b/Test/Craftimizer.Test.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 enable enable false