From a0f39ec6a409f2483e536db311c34763990dd6c6 Mon Sep 17 00:00:00 2001 From: Martin-Molinero Date: Thu, 11 Feb 2021 09:31:37 -0300 Subject: [PATCH] Remove Microsoft.Net.Compilers (#5282) * Remove Microsoft.Net.Compilers * Remove deprecated analyzer packages - Replace deprecated analyzer packages * Travis will use dotnet for building --- .travis.yml | 4 +- .../QuantConnect.Algorithm.CSharp.csproj | 12 +- .../QuantConnect.Algorithm.Framework.csproj | 12 +- .../QuantConnect.Algorithm.Python.csproj | 11 +- Algorithm/QuantConnect.Algorithm.csproj | 12 +- .../QuantConnect.AlgorithmFactory.csproj | 12 +- Api/QuantConnect.Api.csproj | 11 +- Brokerages/QuantConnect.Brokerages.csproj | 12 +- Common/QuantConnect.csproj | 13 +- Compression/QuantConnect.Compression.csproj | 11 +- .../QuantConnect.Configuration.csproj | 11 +- Engine/QuantConnect.Lean.Engine.csproj | 11 +- Indicators/QuantConnect.Indicators.csproj | 12 +- Launcher/QuantConnect.Lean.Launcher.csproj | 12 +- Logging/QuantConnect.Logging.csproj | 11 +- Messaging/QuantConnect.Messaging.csproj | 12 +- .../QuantConnect.Optimizer.Launcher.csproj | 5 +- Optimizer/QuantConnect.Optimizer.csproj | 5 +- QuantConnect.ruleset | 263 ------------------ Queues/QuantConnect.Queues.csproj | 12 +- Report/QuantConnect.Report.csproj | 5 +- Research/QuantConnect.Research.csproj | 12 +- Tests/QuantConnect.Tests.csproj | 12 +- ToolBox/QuantConnect.ToolBox.csproj | 14 +- 24 files changed, 70 insertions(+), 437 deletions(-) delete mode 100644 QuantConnect.ruleset diff --git a/.travis.yml b/.travis.yml index 3b7c1daa47a7..c6f6e57dda03 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ sudo: required language: csharp +dotnet: 5.0 mono: - 5.12.0 solution: QuantConnect.Lean.sln @@ -17,10 +18,9 @@ before_install: - conda install -y scipy=1.4.1 - conda install -y wrapt=1.12.1 install: - - nuget restore QuantConnect.Lean.sln -v quiet - nuget install NUnit.Runners -Version 3.11.1 -OutputDirectory testrunner script: - - msbuild /p:Configuration=Release /p:VbcToolExe=vbnc.exe /v:quiet /p:WarningLevel=1 QuantConnect.Lean.sln + - dotnet build /p:Configuration=Release /p:VbcToolExe=vbnc.exe /v:quiet /p:WarningLevel=1 QuantConnect.Lean.sln - mono ./testrunner/NUnit.ConsoleRunner.3.11.1/tools/nunit3-console.exe ./Tests/bin/Release/QuantConnect.Tests.dll --where "cat != TravisExclude" --labels=Off --params:log-handler=ConsoleErrorLogHandler - chmod +x ci_build_stubs.sh - sudo -E ./ci_build_stubs.sh -d -t -g -p diff --git a/Algorithm.CSharp/QuantConnect.Algorithm.CSharp.csproj b/Algorithm.CSharp/QuantConnect.Algorithm.CSharp.csproj index 23520adcba7d..dc513abcaacc 100644 --- a/Algorithm.CSharp/QuantConnect.Algorithm.CSharp.csproj +++ b/Algorithm.CSharp/QuantConnect.Algorithm.CSharp.csproj @@ -6,10 +6,9 @@ QuantConnect.Algorithm.CSharp net462 6 - ..\QuantConnect.ruleset false bin\$(Configuration)\ - ..\QuantConnect.ruleset + AllEnabledByDefault false true true @@ -75,15 +74,10 @@ - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive - - diff --git a/Algorithm.Framework/QuantConnect.Algorithm.Framework.csproj b/Algorithm.Framework/QuantConnect.Algorithm.Framework.csproj index f3ed70609c5e..8aeae853cfdd 100644 --- a/Algorithm.Framework/QuantConnect.Algorithm.Framework.csproj +++ b/Algorithm.Framework/QuantConnect.Algorithm.Framework.csproj @@ -5,11 +5,10 @@ QuantConnect.Algorithm.Framework QuantConnect.Algorithm.Framework net462 - ..\QuantConnect.ruleset false bin\$(Configuration)\ + AllEnabledByDefault bin\$(Configuration)\QuantConnect.Algorithm.Framework.xml - ..\QuantConnect.ruleset Library 6 false @@ -46,15 +45,10 @@ - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive - - diff --git a/Algorithm.Python/QuantConnect.Algorithm.Python.csproj b/Algorithm.Python/QuantConnect.Algorithm.Python.csproj index 1e74db9edaab..3988184d5fbf 100644 --- a/Algorithm.Python/QuantConnect.Algorithm.Python.csproj +++ b/Algorithm.Python/QuantConnect.Algorithm.Python.csproj @@ -6,7 +6,7 @@ QuantConnect.Algorithm.Python net462 6 - ..\QuantConnect.ruleset + AllEnabledByDefault bin\$(Configuration)\ false false @@ -47,15 +47,10 @@ - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive - - diff --git a/Algorithm/QuantConnect.Algorithm.csproj b/Algorithm/QuantConnect.Algorithm.csproj index 5023d84964c1..e6ea12100aec 100644 --- a/Algorithm/QuantConnect.Algorithm.csproj +++ b/Algorithm/QuantConnect.Algorithm.csproj @@ -8,9 +8,8 @@ net462 ..\ 6 - ..\QuantConnect.ruleset false - ..\QuantConnect.ruleset + AllEnabledByDefault bin\$(Configuration)\ bin\$(Configuration)\QuantConnect.Algorithm.xml false @@ -79,15 +78,10 @@ - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive - - diff --git a/AlgorithmFactory/QuantConnect.AlgorithmFactory.csproj b/AlgorithmFactory/QuantConnect.AlgorithmFactory.csproj index dd3e93ce88b9..90ebf5f507e7 100644 --- a/AlgorithmFactory/QuantConnect.AlgorithmFactory.csproj +++ b/AlgorithmFactory/QuantConnect.AlgorithmFactory.csproj @@ -6,11 +6,10 @@ QuantConnect.AlgorithmFactory net462 6 - ..\QuantConnect.ruleset false bin\$(Configuration)\ + AllEnabledByDefault bin\$(Configuration)\QuantConnect.AlgorithmFactory.xml - ..\QuantConnect.ruleset false false @@ -40,15 +39,10 @@ - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive - - diff --git a/Api/QuantConnect.Api.csproj b/Api/QuantConnect.Api.csproj index ea9a321d910a..dd9aab89179d 100644 --- a/Api/QuantConnect.Api.csproj +++ b/Api/QuantConnect.Api.csproj @@ -9,7 +9,7 @@ ..\ true 6 - ..\QuantConnect.ruleset + AllEnabledByDefault false bin\$(Configuration)\ bin\$(Configuration)\QuantConnect.Api.xml @@ -49,15 +49,10 @@ - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive - - diff --git a/Brokerages/QuantConnect.Brokerages.csproj b/Brokerages/QuantConnect.Brokerages.csproj index b191534a5a1b..129c7e155cd4 100644 --- a/Brokerages/QuantConnect.Brokerages.csproj +++ b/Brokerages/QuantConnect.Brokerages.csproj @@ -6,12 +6,11 @@ QuantConnect.Brokerages net462 6 - ..\QuantConnect.ruleset + AllEnabledByDefault NET45 false bin\$(Configuration)\ bin\$(Configuration)\QuantConnect.Brokerages.xml - ..\QuantConnect.ruleset false false @@ -31,15 +30,10 @@ - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive - - diff --git a/Common/QuantConnect.csproj b/Common/QuantConnect.csproj index 7821bc2db0cb..4fa13415f63d 100644 --- a/Common/QuantConnect.csproj +++ b/Common/QuantConnect.csproj @@ -8,7 +8,7 @@ ..\ true 6 - ..\QuantConnect.ruleset + AllEnabledByDefault false bin\$(Configuration)\ bin\$(Configuration)\QuantConnect.Common.xml @@ -77,16 +77,11 @@ - - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive - - + diff --git a/Compression/QuantConnect.Compression.csproj b/Compression/QuantConnect.Compression.csproj index 51200833073e..46bb32e62086 100644 --- a/Compression/QuantConnect.Compression.csproj +++ b/Compression/QuantConnect.Compression.csproj @@ -6,7 +6,7 @@ QuantConnect.Compression net462 6 - ..\QuantConnect.ruleset + AllEnabledByDefault false bin\$(Configuration)\ bin\$(Configuration)\QuantConnect.Compression.xml @@ -29,15 +29,10 @@ - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive - - diff --git a/Configuration/QuantConnect.Configuration.csproj b/Configuration/QuantConnect.Configuration.csproj index f98524480c73..1fec720a3bb7 100644 --- a/Configuration/QuantConnect.Configuration.csproj +++ b/Configuration/QuantConnect.Configuration.csproj @@ -8,7 +8,7 @@ ..\ true 6 - ..\QuantConnect.ruleset + AllEnabledByDefault false bin\$(Configuration)\ bin\$(Configuration)\QuantConnect.Configuration.xml @@ -30,15 +30,10 @@ - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive - - diff --git a/Engine/QuantConnect.Lean.Engine.csproj b/Engine/QuantConnect.Lean.Engine.csproj index 5db7c3b242fc..1b6b99839697 100644 --- a/Engine/QuantConnect.Lean.Engine.csproj +++ b/Engine/QuantConnect.Lean.Engine.csproj @@ -24,7 +24,7 @@ false true 6 - ..\QuantConnect.ruleset + AllEnabledByDefault false bin\$(Configuration)\QuantConnect.Lean.Engine.xml bin\$(Configuration)\ @@ -113,15 +113,10 @@ - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive - - diff --git a/Indicators/QuantConnect.Indicators.csproj b/Indicators/QuantConnect.Indicators.csproj index e5b4aa04fb03..d6dfb855ec5d 100644 --- a/Indicators/QuantConnect.Indicators.csproj +++ b/Indicators/QuantConnect.Indicators.csproj @@ -6,11 +6,10 @@ QuantConnect.Indicators net462 6 - ..\QuantConnect.ruleset + AllEnabledByDefault false bin\$(Configuration)\ bin\$(Configuration)\QuantConnect.Indicators.xml - ..\QuantConnect.ruleset false false @@ -42,15 +41,10 @@ - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive - - diff --git a/Launcher/QuantConnect.Lean.Launcher.csproj b/Launcher/QuantConnect.Lean.Launcher.csproj index 6c9a5a76a7b5..88b1325580b5 100644 --- a/Launcher/QuantConnect.Lean.Launcher.csproj +++ b/Launcher/QuantConnect.Lean.Launcher.csproj @@ -7,10 +7,9 @@ QuantConnect.Lean.Launcher net462 6 - ..\QuantConnect.ruleset + AllEnabledByDefault false bin\$(Configuration)\ - ..\QuantConnect.ruleset false true @@ -36,15 +35,10 @@ - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive - - diff --git a/Logging/QuantConnect.Logging.csproj b/Logging/QuantConnect.Logging.csproj index 320d3298646d..3f90d358d7b9 100644 --- a/Logging/QuantConnect.Logging.csproj +++ b/Logging/QuantConnect.Logging.csproj @@ -9,7 +9,7 @@ ..\ true 6 - ..\QuantConnect.ruleset + AllEnabledByDefault false bin\$(Configuration)\ bin\$(Configuration)\QuantConnect.Logging.xml @@ -51,15 +51,10 @@ - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive - - diff --git a/Messaging/QuantConnect.Messaging.csproj b/Messaging/QuantConnect.Messaging.csproj index 6b6d1fdcdab5..5ba981fed838 100644 --- a/Messaging/QuantConnect.Messaging.csproj +++ b/Messaging/QuantConnect.Messaging.csproj @@ -6,11 +6,10 @@ QuantConnect.Messaging net462 6 - ..\QuantConnect.ruleset + AllEnabledByDefault false bin\$(Configuration)\ bin\$(Configuration)\QuantConnect.Messaging.xml - ..\QuantConnect.ruleset false true true @@ -31,15 +30,10 @@ - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive - - diff --git a/Optimizer.Launcher/QuantConnect.Optimizer.Launcher.csproj b/Optimizer.Launcher/QuantConnect.Optimizer.Launcher.csproj index 8ce7eb89a59c..ee370b984c99 100644 --- a/Optimizer.Launcher/QuantConnect.Optimizer.Launcher.csproj +++ b/Optimizer.Launcher/QuantConnect.Optimizer.Launcher.csproj @@ -9,6 +9,7 @@ true false bin\$(Configuration)\ + AllEnabledByDefault false true @@ -29,9 +30,9 @@ flow-analysis - - runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Optimizer/QuantConnect.Optimizer.csproj b/Optimizer/QuantConnect.Optimizer.csproj index 59679893f564..a185d5288bac 100644 --- a/Optimizer/QuantConnect.Optimizer.csproj +++ b/Optimizer/QuantConnect.Optimizer.csproj @@ -9,6 +9,7 @@ false 6 bin\$(Configuration)\ + AllEnabledByDefault false true true @@ -31,9 +32,9 @@ flow-analysis - - runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/QuantConnect.ruleset b/QuantConnect.ruleset deleted file mode 100644 index b9531f686522..000000000000 --- a/QuantConnect.ruleset +++ /dev/null @@ -1,263 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Queues/QuantConnect.Queues.csproj b/Queues/QuantConnect.Queues.csproj index 98c095e1d054..a6ab71be2716 100644 --- a/Queues/QuantConnect.Queues.csproj +++ b/Queues/QuantConnect.Queues.csproj @@ -6,11 +6,10 @@ QuantConnect.Queues net462 6 - ..\QuantConnect.ruleset false bin\$(Configuration)\ bin\$(Configuration)\QuantConnect.Queues.xml - ..\QuantConnect.ruleset + AllEnabledByDefault false false @@ -29,15 +28,10 @@ - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive - - diff --git a/Report/QuantConnect.Report.csproj b/Report/QuantConnect.Report.csproj index 82731749e948..b9f2c19117f9 100644 --- a/Report/QuantConnect.Report.csproj +++ b/Report/QuantConnect.Report.csproj @@ -10,6 +10,7 @@ false bin\$(Configuration)\ bin\$(Configuration)\QuantConnect.Report.xml + AllEnabledByDefault false true @@ -75,9 +76,9 @@ - - runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Research/QuantConnect.Research.csproj b/Research/QuantConnect.Research.csproj index 31c887fa7025..37ef00579e97 100644 --- a/Research/QuantConnect.Research.csproj +++ b/Research/QuantConnect.Research.csproj @@ -6,9 +6,8 @@ QuantConnect.Research net462 6 - ..\QuantConnect.ruleset + AllEnabledByDefault bin\$(Configuration)\ - ..\QuantConnect.ruleset false false false @@ -83,15 +82,10 @@ - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive - - diff --git a/Tests/QuantConnect.Tests.csproj b/Tests/QuantConnect.Tests.csproj index c01d65577b72..9df0f59520ae 100644 --- a/Tests/QuantConnect.Tests.csproj +++ b/Tests/QuantConnect.Tests.csproj @@ -7,10 +7,9 @@ net462 ..\ 6 - ..\QuantConnect.ruleset + AllEnabledByDefault false bin\$(Configuration)\ - ..\QuantConnect.ruleset false true true @@ -55,16 +54,11 @@ - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive - - diff --git a/ToolBox/QuantConnect.ToolBox.csproj b/ToolBox/QuantConnect.ToolBox.csproj index ea2d4fe7896e..ffe0a552c69a 100644 --- a/ToolBox/QuantConnect.ToolBox.csproj +++ b/ToolBox/QuantConnect.ToolBox.csproj @@ -7,11 +7,10 @@ QuantConnect.ToolBox net462 6 - ..\QuantConnect.ruleset + AllEnabledByDefault false bin\$(Configuration)\ true - ..\QuantConnect.ruleset false true @@ -79,16 +78,11 @@ - - - - - - runtime; build; native; contentfiles; analyzers; buildtransitive + all + runtime; build; native; contentfiles; analyzers; buildtransitive - - +