Closed shoter closed 3 years ago
I assume that by Roslynator.CLI
you mean Roslynator.DotNet.Cli
which is nuget that targets .NET Core. That means that --msbuild-path
must be a path to .NET Core SDK directory, something like C:\Program Files\dotnet\sdk\3.1.200
.
If you are on Windows I definitely recommend to use nuget Roslynator.CommandLine
that targets .NET Framework.
It would be nice to include that part in the readme.
It's hard to figure it out by yourself and only examples you can find is the one you have in /tools/_fix.cmd
I modified msbuild-path so it is pointing at: --msbuild-path "C:\Program Files\dotnet\sdk\3.1.401"
(I also tried 3.1.302
for sdk and it was also not working - same error)
But I have the following error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
And yes I am using Roslynator.DotNet.Cli
and I want to fix things in .NET Core
/.NET Standard
projects.
I would like to help you but I don't have enough information.
Can you tell me which OS are you on? Is this error thrown during loading of a solution or during code analysis? Could you provide full program output (a content of a console)?
Thanks.
I am using Windows 10
.
Full output:
Roslynator Command Line Tool version 0.1.0.5
Copyright (c) Josef Pihrt. All rights reserved.
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
'--analyzer-assemblies' is not recognized as an internal or external command,
operable program or batch file.
If i remove all parameters to fix
then last error is gone but this error is probably only here because of the first error.
Right now as I said I am using workaround of compiling Roslynator command line thingy by myself.
'--analyzer-assemblies' is not recognized as an internal or external command, operable program or batch file.
is not message from Roslynator it is system message and it implies that command is not properly formatted
Could you provide full command?
Actually with args there was an error as I forgot ^
at msbuild path - my bad.
But still it's only meaning that the last thingy is gone as it was starting to interpret analyzer assemblies as command.
C:\bin\roslynator\roslynator.exe fix "SOLUTIONFILE.sln" ^
--msbuild-path "C:\Program Files\dotnet\sdk\3.1.401"
Content of the 3.1.401 directory:
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 9/2/2020 11:35 AM AppHostTemplate
d----- 9/2/2020 11:35 AM cs
d----- 9/2/2020 11:35 AM Current
d----- 9/2/2020 11:35 AM de
d----- 9/2/2020 11:35 AM DotnetTools
d----- 9/2/2020 11:35 AM en
d----- 9/2/2020 11:35 AM es
d----- 9/2/2020 11:35 AM Extensions
d----- 9/2/2020 11:35 AM fr
d----- 9/2/2020 11:35 AM FSharp
d----- 9/2/2020 11:35 AM it
d----- 9/2/2020 11:35 AM ja
d----- 9/2/2020 11:35 AM ko
d----- 9/2/2020 11:35 AM Microsoft
d----- 9/2/2020 11:35 AM pl
d----- 9/2/2020 11:35 AM pt-BR
d----- 9/2/2020 11:35 AM ref
d----- 9/2/2020 11:35 AM Roslyn
d----- 9/2/2020 11:35 AM ru
d----- 9/2/2020 11:35 AM runtimes
d----- 9/2/2020 11:35 AM SdkResolvers
d----- 9/2/2020 11:35 AM Sdks
d----- 9/2/2020 11:35 AM TestHost
d----- 9/2/2020 11:35 AM tr
d----- 9/2/2020 11:35 AM zh-Hans
d----- 9/2/2020 11:35 AM zh-Hant
-a---- 7/27/2020 9:50 PM 78 .toolsetversion
-a---- 7/27/2020 11:09 PM 60 .version
-a---- 7/3/2020 9:19 AM 45427 datacollector.deps.json
-a---- 7/27/2020 11:11 PM 27008 datacollector.dll
-a---- 7/3/2020 9:19 AM 1121 datacollector.dll.config
-a---- 7/27/2020 11:09 PM 154 datacollector.runtimeconfig.json
-a---- 7/27/2020 9:50 PM 159722 dotnet.deps.json
-a---- 7/27/2020 11:11 PM 1179008 dotnet.dll
-a---- 7/27/2020 11:09 PM 154 dotnet.runtimeconfig.json
-a---- 7/27/2020 11:11 PM 354696 Microsoft.ApplicationInsights.dll
-a---- 7/27/2020 11:11 PM 80256 Microsoft.AspNetCore.DeveloperCertificates.XPlat.dll
-a---- 7/27/2020 11:12 PM 4361088 Microsoft.Build.dll
-a---- 7/27/2020 11:11 PM 148872 Microsoft.Build.Framework.dll
-a---- 7/27/2020 11:11 PM 61832 Microsoft.Build.NuGetSdkResolver.dll
-a---- 7/27/2020 11:11 PM 1710472 Microsoft.Build.Tasks.Core.dll
-a---- 7/27/2020 11:12 PM 744328 Microsoft.Build.Utilities.Core.dll
-a---- 7/27/2020 7:50 PM 10755 Microsoft.Common.CrossTargeting.targets
-a---- 7/27/2020 7:50 PM 332150 Microsoft.Common.CurrentVersion.targets
-a---- 7/27/2020 7:50 PM 6541 Microsoft.Common.overridetasks
-a---- 7/27/2020 7:50 PM 14155 Microsoft.Common.targets
-a---- 7/27/2020 7:50 PM 39043 Microsoft.Common.tasks
-a---- 7/27/2020 7:50 PM 1349 Microsoft.CSharp.CrossTargeting.targets
-a---- 7/27/2020 7:50 PM 21741 Microsoft.CSharp.CurrentVersion.targets
-a---- 7/27/2020 7:50 PM 18634 Microsoft.CSharp.targets
-a---- 7/27/2020 11:11 PM 162184 Microsoft.DotNet.Cli.CommandLine.dll
-a---- 7/27/2020 11:11 PM 82816 Microsoft.DotNet.Cli.Sln.Internal.dll
-a---- 7/27/2020 11:11 PM 207752 Microsoft.DotNet.Cli.Utils.dll
-a---- 7/27/2020 11:11 PM 38264 Microsoft.DotNet.Configurer.dll
-a---- 7/27/2020 11:11 PM 31112 Microsoft.DotNet.InternalAbstractions.dll
-a---- 7/27/2020 11:11 PM 32648 Microsoft.DotNet.PlatformAbstractions.dll
-a---- 7/27/2020 11:11 PM 52104 Microsoft.Extensions.CommandLineUtils.dll
-a---- 7/27/2020 11:11 PM 155016 Microsoft.Extensions.DependencyModel.dll
-a---- 7/27/2020 11:11 PM 83848 Microsoft.Extensions.FileSystemGlobbing.dll
-a---- 7/27/2020 7:50 PM 5644 Microsoft.Managed.After.targets
-a---- 7/27/2020 7:50 PM 1185 Microsoft.Managed.Before.targets
-a---- 7/27/2020 7:50 PM 978 Microsoft.Managed.targets
-a---- 7/27/2020 11:11 PM 77704 Microsoft.NET.HostModel.dll
-a---- 7/27/2020 7:50 PM 2216 Microsoft.NET.props
-a---- 7/27/2020 11:09 PM 615 Microsoft.NETCoreSdk.BundledCliTools.props
-a---- 7/27/2020 11:09 PM 12713 Microsoft.NETCoreSdk.BundledVersions.props
-a---- 7/27/2020 7:50 PM 11675 Microsoft.NETFramework.CurrentVersion.props
-a---- 7/27/2020 7:50 PM 9523 Microsoft.NETFramework.CurrentVersion.targets
-a---- 7/27/2020 7:50 PM 2400 Microsoft.NETFramework.props
-a---- 7/27/2020 7:50 PM 6521 Microsoft.NETFramework.targets
-a---- 7/27/2020 11:11 PM 30600 Microsoft.TemplateEngine.Abstractions.dll
-a---- 7/27/2020 11:11 PM 489848 Microsoft.TemplateEngine.Cli.dll
-a---- 7/27/2020 11:11 PM 23432 Microsoft.TemplateEngine.Core.Contracts.dll
-a---- 7/27/2020 11:11 PM 366472 Microsoft.TemplateEngine.Core.dll
-a---- 7/27/2020 11:11 PM 309120 Microsoft.TemplateEngine.Edge.dll
-a---- 7/27/2020 11:11 PM 398728 Microsoft.TemplateEngine.Orchestrator.RunnableProjects.dll
-a---- 7/27/2020 11:11 PM 146824 Microsoft.TemplateEngine.Utils.dll
-a---- 7/27/2020 11:11 PM 103816 Microsoft.TemplateSearch.Common.dll
-a---- 7/27/2020 11:11 PM 41864 Microsoft.TestPlatform.Build.dll
-a---- 7/27/2020 11:11 PM 170888 Microsoft.TestPlatform.CommunicationUtilities.dll
-a---- 7/27/2020 11:11 PM 82808 Microsoft.TestPlatform.CoreUtilities.dll
-a---- 7/27/2020 11:11 PM 396680 Microsoft.TestPlatform.CrossPlatEngine.dll
-a---- 7/3/2020 9:19 AM 16557 Microsoft.TestPlatform.PlatformAbstractions.deps.json
-a---- 7/27/2020 11:11 PM 56712 Microsoft.TestPlatform.PlatformAbstractions.dll
-a---- 7/3/2020 9:19 AM 6007 Microsoft.TestPlatform.targets
-a---- 7/27/2020 11:11 PM 87944 Microsoft.TestPlatform.Utilities.dll
-a---- 7/27/2020 11:11 PM 131960 Microsoft.TestPlatform.VsTestConsole.TranslationLayer.dll
-a---- 7/3/2020 9:19 AM 71654 Microsoft.TestPlatform.VsTestConsole.TranslationLayer.xml
-a---- 7/27/2020 7:50 PM 1389 Microsoft.VisualBasic.CrossTargeting.targets
-a---- 7/27/2020 7:50 PM 22364 Microsoft.VisualBasic.CurrentVersion.targets
-a---- 7/27/2020 7:50 PM 18798 Microsoft.VisualBasic.targets
-a---- 7/27/2020 11:11 PM 112000 Microsoft.VisualStudio.TestPlatform.Client.dll
-a---- 7/27/2020 11:11 PM 321928 Microsoft.VisualStudio.TestPlatform.Common.dll
-a---- 7/27/2020 11:11 PM 312712 Microsoft.VisualStudio.TestPlatform.ObjectModel.dll
-a---- 7/27/2020 7:50 PM 871 Microsoft.VisualStudioVersion.v11.Common.props
-a---- 7/27/2020 7:50 PM 871 Microsoft.VisualStudioVersion.v12.Common.props
-a---- 7/27/2020 7:50 PM 871 Microsoft.VisualStudioVersion.v14.Common.props
-a---- 7/27/2020 11:11 PM 29576 Microsoft.Win32.SystemEvents.dll
-a---- 7/27/2020 9:47 PM 8 minimumMSBuildVersion
-a---- 7/27/2020 9:50 PM 159724 MSBuild.deps.json
-a---- 7/27/2020 11:11 PM 739208 MSBuild.dll
-a---- 7/27/2020 11:09 PM 154 MSBuild.runtimeconfig.json
-a---- 7/27/2020 11:11 PM 1815960 Newtonsoft.Json.dll
-a---- 7/27/2020 11:11 PM 109448 NuGet.Build.Tasks.Console.dll
-a---- 7/27/2020 11:09 PM 221 NuGet.Build.Tasks.Console.runtimeconfig.json
-a---- 7/27/2020 11:11 PM 188288 NuGet.Build.Tasks.dll
-a---- 7/27/2020 9:50 PM 159756 NuGet.CommandLine.XPlat.deps.json
-a---- 7/27/2020 11:11 PM 376192 NuGet.CommandLine.XPlat.dll
-a---- 7/27/2020 11:09 PM 154 NuGet.CommandLine.XPlat.runtimeconfig.json
-a---- 7/27/2020 11:11 PM 728968 NuGet.Commands.dll
-a---- 7/27/2020 11:11 PM 137096 NuGet.Common.dll
-a---- 7/27/2020 11:11 PM 183168 NuGet.Configuration.dll
-a---- 7/27/2020 11:11 PM 107912 NuGet.Credentials.dll
-a---- 7/27/2020 11:11 PM 115080 NuGet.DependencyResolver.Core.dll
-a---- 7/27/2020 11:11 PM 170888 NuGet.Frameworks.dll
-a---- 7/27/2020 11:11 PM 60808 NuGet.LibraryModel.dll
-a---- 7/27/2020 11:11 PM 15240 NuGet.Packaging.Core.dll
-a---- 7/27/2020 11:11 PM 702344 NuGet.Packaging.dll
-a---- 7/27/2020 11:11 PM 293248 NuGet.ProjectModel.dll
-a---- 6/30/2020 5:31 PM 2003 NuGet.props
-a---- 7/27/2020 11:11 PM 924544 NuGet.Protocol.dll
-a---- 6/30/2020 5:31 PM 1308 NuGet.RestoreEx.targets
-a---- 6/30/2020 5:31 PM 59896 NuGet.targets
-a---- 7/27/2020 11:11 PM 69504 NuGet.Versioning.dll
-a---- 7/3/2020 9:19 AM 65339 package.deps.json
-a---- 7/27/2020 9:50 PM 180 redist.runtimeconfig.dev.json
-a---- 7/20/2020 9:10 PM 37598 RuntimeIdentifierGraph.json
-a---- 7/27/2020 11:11 PM 481144 System.CodeDom.dll
-a---- 7/27/2020 11:11 PM 302464 System.Drawing.Common.dll
-a---- 7/27/2020 11:11 PM 117640 System.Resources.Extensions.dll
-a---- 7/27/2020 11:11 PM 82816 System.Security.Cryptography.Cng.dll
-a---- 7/27/2020 11:11 PM 782216 System.Security.Cryptography.Pkcs.dll
-a---- 7/27/2020 11:11 PM 21888 System.Security.Cryptography.ProtectedData.dll
-a---- 7/27/2020 11:11 PM 159624 System.Security.Permissions.dll
-a---- 7/27/2020 11:11 PM 875904 System.Text.Encoding.CodePages.dll
-a---- 7/27/2020 11:11 PM 850312 System.Text.Json.dll
-a---- 7/27/2020 11:11 PM 37248 System.Windows.Extensions.dll
-a---- 7/3/2020 9:19 AM 50037 vstest.console.deps.json
-a---- 7/27/2020 11:11 PM 403328 vstest.console.dll
-a---- 7/3/2020 9:19 AM 2794 vstest.console.dll.config
-a---- 7/27/2020 11:09 PM 154 vstest.console.runtimeconfig.json
Can you run the command with --verbosity diag
to see if there will be some additional output?
Can you run the same command using nuget Roslynator.CommandLine? What is the output?
It does not print much more information with that verbosity:
Roslynator Command Line Tool version 0.1.0.5
Copyright (c) Josef Pihrt. All rights reserved.
MSBuild location is 'C:\Program Files\dotnet\sdk\3.1.401'
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
If you want you can create special build with more verbosity and I will use it to diagnose this problem.
More output would probably give you more insight into the problem.
Can you run the same command using nuget Roslynator.CommandLine? What is the output?
I think I'm running into the same problem.
This is the output from the NuGet build:
> ..\..\Roslynator-bin\tools\net48\Roslynator.exe fix .\CommandLine.sln -v diag
Roslynator Command Line Tool version 0.1.1.0
Copyright (c) Josef Pihrt. All rights reserved.
MSBuild location is 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin'
Load solution 'C:\Users\Bouke\Developer\Roslynator\src\CommandLine.sln'
Evaluate 00:00.71 Common.csproj
Build 00:00.57 Common.csproj
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\Common\Common.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task could not be instantiated from the assembly "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.Build.Tasks.dll". Please verify the task assembly has been built using the same version of the Microsoft.Build.Framework assembly as the one installed on your computer and that your host application is not missing a binding redirect for Microsoft.Build.Framework. Unable to cast object of type 'NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask' to type 'Microsoft.Build.Framework.ITask'.
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\Common\Common.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.
Evaluate 00:00.03 CSharp.csproj
Build 00:00.01 CSharp.csproj
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\CSharp\CSharp.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task could not be instantiated from the assembly "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.Build.Tasks.dll". Please verify the task assembly has been built using the same version of the Microsoft.Build.Framework assembly as the one installed on your computer and that your host application is not missing a binding redirect for Microsoft.Build.Framework. Unable to cast object of type 'NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask' to type 'Microsoft.Build.Framework.ITask'.
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\CSharp\CSharp.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.
Evaluate 00:00.03 Core.csproj
Build 00:00.29 Core.csproj
Resolve 00:00.08 Core.csproj (netstandard2.0)
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\Core\Core.csproj
Resolve 00:00.42 CSharp.csproj (netstandard2.0)
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\CSharp\CSharp.csproj
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\Core\Core.csproj
Resolve 00:00.68 Common.csproj (netstandard2.0)
Evaluate 00:00.03 Workspaces.Common.csproj
Build 00:00.06 Workspaces.Common.csproj
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\Workspaces.Common\Workspaces.Common.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task could not be instantiated from the assembly "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.Build.Tasks.dll". Please verify the task assembly has been built using the same version of the Microsoft.Build.Framework assembly as the one installed on your computer and that your host application is not missing a binding redirect for Microsoft.Build.Framework. Unable to cast object of type 'NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask' to type 'Microsoft.Build.Framework.ITask'.
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\Workspaces.Common\Workspaces.Common.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\Common\Common.csproj
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\CSharp\CSharp.csproj
Evaluate 00:00.02 CSharp.Workspaces.csproj
Build 00:00.00 CSharp.Workspaces.csproj
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\CSharp.Workspaces\CSharp.Workspaces.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task could not be instantiated from the assembly "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.Build.Tasks.dll". Please verify the task assembly has been built using the same version of the Microsoft.Build.Framework assembly as the one installed on your computer and that your host application is not missing a binding redirect for Microsoft.Build.Framework. Unable to cast object of type 'NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask' to type 'Microsoft.Build.Framework.ITask'.
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\CSharp.Workspaces\CSharp.Workspaces.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\CSharp\CSharp.csproj
Evaluate 00:00.03 Workspaces.Core.csproj
Build 00:00.00 Workspaces.Core.csproj
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\Workspaces.Core\Workspaces.Core.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task could not be instantiated from the assembly "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.Build.Tasks.dll". Please verify the task assembly has been built using the same version of the Microsoft.Build.Framework assembly as the one installed on your computer and that your host application is not missing a binding redirect for Microsoft.Build.Framework. Unable to cast object of type 'NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask' to type 'Microsoft.Build.Framework.ITask'.
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\Workspaces.Core\Workspaces.Core.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\Core\Core.csproj
Resolve 00:00.00 Workspaces.Core.csproj (netstandard2.0)
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\Workspaces.Core\Workspaces.Core.csproj
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\Core\Core.csproj
Resolve 00:00.04 CSharp.Workspaces.csproj (netstandard2.0)
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\CSharp.Workspaces\CSharp.Workspaces.csproj
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\Workspaces.Core\Workspaces.Core.csproj
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\Core\Core.csproj
Resolve 00:00.08 Workspaces.Common.csproj (netstandard2.0)
Evaluate 00:00.07 CommandLine.csproj
Build 00:00.43 CommandLine.csproj
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\CommandLine\CommandLine.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task could not be instantiated from the assembly "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.Build.Tasks.dll". Please verify the task assembly has been built using the same version of the Microsoft.Build.Framework assembly as the one installed on your computer and that your host application is not missing a binding redirect for Microsoft.Build.Framework. Unable to cast object of type 'NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask' to type 'Microsoft.Build.Framework.ITask'.
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\CommandLine\CommandLine.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\CommandLine\CommandLine.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task could not be instantiated from the assembly "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.Build.Tasks.dll". Please verify the task assembly has been built using the same version of the Microsoft.Build.Framework assembly as the one installed on your computer and that your host application is not missing a binding redirect for Microsoft.Build.Framework. Unable to cast object of type 'NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask' to type 'Microsoft.Build.Framework.ITask'.
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\CommandLine\CommandLine.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\CommandLine\CommandLine.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task could not be instantiated from the assembly "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.Build.Tasks.dll". Please verify the task assembly has been built using the same version of the Microsoft.Build.Framework assembly as the one installed on your computer and that your host application is not missing a binding redirect for Microsoft.Build.Framework. Unable to cast object of type 'NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask' to type 'Microsoft.Build.Framework.ITask'.
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\CommandLine\CommandLine.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\CommandLine\CommandLine.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task could not be instantiated from the assembly "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.Build.Tasks.dll". Please verify the task assembly has been built using the same version of the Microsoft.Build.Framework assembly as the one installed on your computer and that your host application is not missing a binding redirect for Microsoft.Build.Framework. Unable to cast object of type 'NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask' to type 'Microsoft.Build.Framework.ITask'.
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\CommandLine\CommandLine.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\CSharp.Workspaces\CSharp.Workspaces.csproj
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\CSharp\CSharp.csproj
Evaluate 00:00.02 VisualBasic.Workspaces.csproj
Build 00:00.01 VisualBasic.Workspaces.csproj
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\VisualBasic.Workspaces\VisualBasic.Workspaces.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task could not be instantiated from the assembly "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.Build.Tasks.dll". Please verify the task assembly has been built using the same version of the Microsoft.Build.Framework assembly as the one installed on your computer and that your host application is not missing a binding redirect for Microsoft.Build.Framework. Unable to cast object of type 'NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask' to type 'Microsoft.Build.Framework.ITask'.
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\VisualBasic.Workspaces\VisualBasic.Workspaces.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\Core\Core.csproj
Evaluate 00:00.02 VisualBasic.csproj
Build 00:00.00 VisualBasic.csproj
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\VisualBasic\VisualBasic.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task could not be instantiated from the assembly "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.Build.Tasks.dll". Please verify the task assembly has been built using the same version of the Microsoft.Build.Framework assembly as the one installed on your computer and that your host application is not missing a binding redirect for Microsoft.Build.Framework. Unable to cast object of type 'NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask' to type 'Microsoft.Build.Framework.ITask'.
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\VisualBasic\VisualBasic.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\Core\Core.csproj
Resolve 00:00.00 VisualBasic.csproj (netstandard2.0)
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\VisualBasic\VisualBasic.csproj
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\Workspaces.Core\Workspaces.Core.csproj
Resolve 00:00.03 VisualBasic.Workspaces.csproj (netstandard2.0)
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\VisualBasic.Workspaces\VisualBasic.Workspaces.csproj
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\VisualBasic\VisualBasic.csproj
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\Workspaces.Core\Workspaces.Core.csproj
Evaluate 00:00.03 Documentation.csproj
Build 00:00.00 Documentation.csproj
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\Documentation\Documentation.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task could not be instantiated from the assembly "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\NuGet\NuGet.Build.Tasks.dll". Please verify the task assembly has been built using the same version of the Microsoft.Build.Framework assembly as the one installed on your computer and that your host application is not missing a binding redirect for Microsoft.Build.Framework. Unable to cast object of type 'NuGet.Build.Tasks.GetReferenceNearestTargetFrameworkTask' to type 'Microsoft.Build.Framework.ITask'.
Msbuild failed when processing the file 'C:\Users\Bouke\Developer\Roslynator\src\Documentation\Documentation.csproj' with message: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1662, 5): The "GetReferenceNearestTargetFrameworkTask" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\CSharp\CSharp.csproj
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\Workspaces.Core\Workspaces.Core.csproj
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\Core\Core.csproj
Resolve 00:00.00 Documentation.csproj (netstandard2.0)
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\Documentation\Documentation.csproj
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\Core\Core.csproj
Resolve 00:00.11 CommandLine.csproj (net48)
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\CSharp.Workspaces\CSharp.Workspaces.csproj
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\CSharp\CSharp.csproj
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\VisualBasic.Workspaces\VisualBasic.Workspaces.csproj
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\VisualBasic\VisualBasic.csproj
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\Workspaces.Core\Workspaces.Core.csproj
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\Documentation\Documentation.csproj
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\Core\Core.csproj
Resolve 00:00.00 CommandLine.csproj (netcoreapp3.1)
Done loading solution 'C:\Users\Bouke\Developer\Roslynator\src\CommandLine.sln'
Fix 'Core' 1/11
Add analyzer assembly 'Microsoft.CodeAnalysis.Analyzers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
Add analyzer assembly 'Microsoft.CodeAnalysis.CSharp.Analyzers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
20 supported diagnostics with prefix 'RS' (RS1001 Warning, RS1004 Warning, RS1010 Warning, RS1011 Warning, RS1016 Warning, RS1017 Warning, RS1018 Warning, RS1019 Warning, RS1021 Warning, RS1024 Warning, RS1029 Warning, RS2000 Warning, RS2001 Warning, RS2002 Warning, RS2003 Warning, RS2004 Warning, RS2005 Warning, RS2006 Warning, RS2007 Warning, RS2008 Warning)
8 fixable diagnostics with prefix 'RS' (RS1001, RS1016, RS1024, RS1025, RS1026, RS2000, RS2001, RS2008)
Compile 'Core'
Analyze 'Core'
Done fixing 'Core' in 00:55.91
Fix 'CSharp' 2/11
22 supported diagnostics with prefix 'RS' (RS1001 Warning, RS1004 Warning, RS1010 Warning, RS1011 Warning, RS1016 Warning, RS1017 Warning, RS1018 Warning, RS1019 Warning, RS1021 Warning, RS1024 Warning, RS1025 Warning, RS1026 Warning, RS1029 Warning, RS2000 Warning, RS2001 Warning, RS2002 Warning, RS2003 Warning, RS2004 Warning, RS2005 Warning, RS2006 Warning, RS2007 Warning, RS2008 Warning)
8 fixable diagnostics with prefix 'RS' (RS1001, RS1016, RS1024, RS1025, RS1026, RS2000, RS2001, RS2008)
Compile 'CSharp'
Compilation errors:
GlobalSuppressions.cs(8,12): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
GlobalSuppressions.cs(9,12): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
GlobalSuppressions.cs(10,12): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
GlobalSuppressions.cs(11,12): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
GlobalSuppressions.cs(12,12): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
GlobalSuppressions.cs(13,12): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
GlobalSuppressions.cs(14,12): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
GlobalSuppressions.cs(15,12): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
GlobalSuppressions.cs(16,12): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
GlobalSuppressions.cs(17,12): error CS0246: The type or namespace name 'System' could not be found (are you missing a using directive or an assembly reference?)
and 1000+ more errors
Done fixing solution 'C:\Users\Bouke\Developer\Roslynator\src\CommandLine.sln' in 01:03.01
0 diagnostics fixed
This is the output from the local build (a3b8ab9ab35499eb80d556b29ee8c88e19312a23):
> &.\CommandLine\bin\Debug\net48\Roslynator.exe fix .\CommandLine.sln -v diag
Roslynator Command Line Tool version 0.1.1.0
Copyright (c) Josef Pihrt. All rights reserved.
MSBuild location is 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin'
Load solution 'C:\Users\Bouke\Developer\Roslynator\src\CommandLine.sln'
Evaluate 00:00.77 Common.csproj
Build 00:00.98 Common.csproj
Evaluate 00:00.03 CSharp.csproj
Build 00:00.03 CSharp.csproj
Evaluate 00:00.03 Core.csproj
Build 00:00.04 Core.csproj
Resolve 00:00.02 Core.csproj (netstandard2.0)
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\Core\Core.csproj
Resolve 00:00.12 CSharp.csproj (netstandard2.0)
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\CSharp\CSharp.csproj
Resolve 00:00.49 Common.csproj (netstandard2.0)
Evaluate 00:00.02 Workspaces.Common.csproj
Build 00:00.11 Workspaces.Common.csproj
Evaluate 00:00.02 CSharp.Workspaces.csproj
Build 00:00.05 CSharp.Workspaces.csproj
Evaluate 00:00.02 Workspaces.Core.csproj
Build 00:00.04 Workspaces.Core.csproj
Resolve 00:00.00 Workspaces.Core.csproj (netstandard2.0)
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\Workspaces.Core\Workspaces.Core.csproj
Resolve 00:00.08 CSharp.Workspaces.csproj (netstandard2.0)
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\CSharp.Workspaces\CSharp.Workspaces.csproj
Resolve 00:00.17 Workspaces.Common.csproj (netstandard2.0)
Evaluate 00:00.06 CommandLine.csproj
Build 00:02.65 CommandLine.csproj
Evaluate 00:00.02 VisualBasic.Workspaces.csproj
Build 00:00.19 VisualBasic.Workspaces.csproj
Evaluate 00:00.02 VisualBasic.csproj
Build 00:00.05 VisualBasic.csproj
Resolve 00:00.00 VisualBasic.csproj (netstandard2.0)
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\VisualBasic\VisualBasic.csproj
Resolve 00:00.15 VisualBasic.Workspaces.csproj (netstandard2.0)
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\VisualBasic.Workspaces\VisualBasic.Workspaces.csproj
Evaluate 00:00.03 Documentation.csproj
Build 00:00.09 Documentation.csproj
Resolve 00:00.05 Documentation.csproj (netstandard2.0)
Found project reference without a matching metadata reference: C:\Users\Bouke\Developer\Roslynator\src\Documentation\Documentation.csproj
Resolve 00:01.55 CommandLine.csproj (net48)
Resolve 00:00.68 CommandLine.csproj (netcoreapp3.1)
Done loading solution 'C:\Users\Bouke\Developer\Roslynator\src\CommandLine.sln'
Fix 'Core' 1/11
Add analyzer assembly 'Microsoft.CodeAnalysis.Analyzers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
Add analyzer assembly 'Microsoft.CodeAnalysis.CSharp.Analyzers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
20 supported diagnostics with prefix 'RS' (RS1001 Warning, RS1004 Warning, RS1010 Warning, RS1011 Warning, RS1016 Warning, RS1017 Warning, RS1018 Warning, RS1019 Warning, RS1021 Warning, RS1024 Warning, RS1029 Warning, RS2000 Warning, RS2001 Warning, RS2002 Warning, RS2003 Warning, RS2004 Warning, RS2005 Warning, RS2006 Warning, RS2007 Warning, RS2008 Warning)
8 fixable diagnostics with prefix 'RS' (RS1001, RS1016, RS1024, RS1025, RS1026, RS2000, RS2001, RS2008)
Compile 'Core'
Analyze 'Core'
Done fixing 'Core' in 00:53.42
Fix 'Workspaces.Core' 2/11
20 supported diagnostics with prefix 'RS' (RS1001 Warning, RS1004 Warning, RS1010 Warning, RS1011 Warning, RS1016 Warning, RS1017 Warning, RS1018 Warning, RS1019 Warning, RS1021 Warning, RS1024 Warning, RS1029 Warning, RS2000 Warning, RS2001 Warning, RS2002 Warning, RS2003 Warning, RS2004 Warning, RS2005 Warning, RS2006 Warning, RS2007 Warning, RS2008 Warning)
8 fixable diagnostics with prefix 'RS' (RS1001, RS1016, RS1024, RS1025, RS1026, RS2000, RS2001, RS2008)
Compile 'Workspaces.Core'
Analyze 'Workspaces.Core'
Done fixing 'Workspaces.Core' in 00:05.92
Fix 'CSharp' 3/11
20 supported diagnostics with prefix 'RS' (RS1001 Warning, RS1004 Warning, RS1010 Warning, RS1011 Warning, RS1016 Warning, RS1017 Warning, RS1018 Warning, RS1019 Warning, RS1021 Warning, RS1024 Warning, RS1029 Warning, RS2000 Warning, RS2001 Warning, RS2002 Warning, RS2003 Warning, RS2004 Warning, RS2005 Warning, RS2006 Warning, RS2007 Warning, RS2008 Warning)
8 fixable diagnostics with prefix 'RS' (RS1001, RS1016, RS1024, RS1025, RS1026, RS2000, RS2001, RS2008)
Compile 'CSharp'
Analyze 'CSharp'
Done fixing 'CSharp' in 00:04.37
Fix 'CSharp.Workspaces' 4/11
20 supported diagnostics with prefix 'RS' (RS1001 Warning, RS1004 Warning, RS1010 Warning, RS1011 Warning, RS1016 Warning, RS1017 Warning, RS1018 Warning, RS1019 Warning, RS1021 Warning, RS1024 Warning, RS1029 Warning, RS2000 Warning, RS2001 Warning, RS2002 Warning, RS2003 Warning, RS2004 Warning, RS2005 Warning, RS2006 Warning, RS2007 Warning, RS2008 Warning)
8 fixable diagnostics with prefix 'RS' (RS1001, RS1016, RS1024, RS1025, RS1026, RS2000, RS2001, RS2008)
Compile 'CSharp.Workspaces'
Analyze 'CSharp.Workspaces'
Done fixing 'CSharp.Workspaces' in 00:00.57
Fix 'Common' 5/11
20 supported diagnostics with prefix 'RS' (RS1001 Warning, RS1004 Warning, RS1010 Warning, RS1011 Warning, RS1016 Warning, RS1017 Warning, RS1018 Warning, RS1019 Warning, RS1021 Warning, RS1024 Warning, RS1029 Warning, RS2000 Warning, RS2001 Warning, RS2002 Warning, RS2003 Warning, RS2004 Warning, RS2005 Warning, RS2006 Warning, RS2007 Warning, RS2008 Warning)
8 fixable diagnostics with prefix 'RS' (RS1001, RS1016, RS1024, RS1025, RS1026, RS2000, RS2001, RS2008)
Compile 'Common'
Analyze 'Common'
Done fixing 'Common' in 00:01.73
Fix 'Workspaces.Common' 6/11
20 supported diagnostics with prefix 'RS' (RS1001 Warning, RS1004 Warning, RS1010 Warning, RS1011 Warning, RS1016 Warning, RS1017 Warning, RS1018 Warning, RS1019 Warning, RS1021 Warning, RS1024 Warning, RS1029 Warning, RS2000 Warning, RS2001 Warning, RS2002 Warning, RS2003 Warning, RS2004 Warning, RS2005 Warning, RS2006 Warning, RS2007 Warning, RS2008 Warning)
8 fixable diagnostics with prefix 'RS' (RS1001, RS1016, RS1024, RS1025, RS1026, RS2000, RS2001, RS2008)
Compile 'Workspaces.Common'
Analyze 'Workspaces.Common'
Done fixing 'Workspaces.Common' in 00:01.38
Fix 'Documentation' 7/11
20 supported diagnostics with prefix 'RS' (RS1001 Warning, RS1004 Warning, RS1010 Warning, RS1011 Warning, RS1016 Warning, RS1017 Warning, RS1018 Warning, RS1019 Warning, RS1021 Warning, RS1024 Warning, RS1029 Warning, RS2000 Warning, RS2001 Warning, RS2002 Warning, RS2003 Warning, RS2004 Warning, RS2005 Warning, RS2006 Warning, RS2007 Warning, RS2008 Warning)
8 fixable diagnostics with prefix 'RS' (RS1001, RS1016, RS1024, RS1025, RS1026, RS2000, RS2001, RS2008)
Compile 'Documentation'
Analyze 'Documentation'
Done fixing 'Documentation' in 00:02.42
Fix 'VisualBasic' 8/11
20 supported diagnostics with prefix 'RS' (RS1001 Warning, RS1004 Warning, RS1010 Warning, RS1011 Warning, RS1016 Warning, RS1017 Warning, RS1018 Warning, RS1019 Warning, RS1021 Warning, RS1024 Warning, RS1029 Warning, RS2000 Warning, RS2001 Warning, RS2002 Warning, RS2003 Warning, RS2004 Warning, RS2005 Warning, RS2006 Warning, RS2007 Warning, RS2008 Warning)
8 fixable diagnostics with prefix 'RS' (RS1001, RS1016, RS1024, RS1025, RS1026, RS2000, RS2001, RS2008)
Compile 'VisualBasic'
Analyze 'VisualBasic'
Done fixing 'VisualBasic' in 00:00.07
Fix 'VisualBasic.Workspaces' 9/11
20 supported diagnostics with prefix 'RS' (RS1001 Warning, RS1004 Warning, RS1010 Warning, RS1011 Warning, RS1016 Warning, RS1017 Warning, RS1018 Warning, RS1019 Warning, RS1021 Warning, RS1024 Warning, RS1029 Warning, RS2000 Warning, RS2001 Warning, RS2002 Warning, RS2003 Warning, RS2004 Warning, RS2005 Warning, RS2006 Warning, RS2007 Warning, RS2008 Warning)
8 fixable diagnostics with prefix 'RS' (RS1001, RS1016, RS1024, RS1025, RS1026, RS2000, RS2001, RS2008)
Compile 'VisualBasic.Workspaces'
Analyze 'VisualBasic.Workspaces'
Done fixing 'VisualBasic.Workspaces' in 00:00.24
Fix 'CommandLine(netcoreapp3.1)' 10/11
20 supported diagnostics with prefix 'RS' (RS1001 Warning, RS1004 Warning, RS1010 Warning, RS1011 Warning, RS1016 Warning, RS1017 Warning, RS1018 Warning, RS1019 Warning, RS1021 Warning, RS1024 Warning, RS1029 Warning, RS2000 Warning, RS2001 Warning, RS2002 Warning, RS2003 Warning, RS2004 Warning, RS2005 Warning, RS2006 Warning, RS2007 Warning, RS2008 Warning)
8 fixable diagnostics with prefix 'RS' (RS1001, RS1016, RS1024, RS1025, RS1026, RS2000, RS2001, RS2008)
Compile 'CommandLine(netcoreapp3.1)'
Analyze 'CommandLine(netcoreapp3.1)'
Done fixing 'CommandLine(netcoreapp3.1)' in 00:04.14
Fix 'CommandLine(net48)' 11/11
20 supported diagnostics with prefix 'RS' (RS1001 Warning, RS1004 Warning, RS1010 Warning, RS1011 Warning, RS1016 Warning, RS1017 Warning, RS1018 Warning, RS1019 Warning, RS1021 Warning, RS1024 Warning, RS1029 Warning, RS2000 Warning, RS2001 Warning, RS2002 Warning, RS2003 Warning, RS2004 Warning, RS2005 Warning, RS2006 Warning, RS2007 Warning, RS2008 Warning)
8 fixable diagnostics with prefix 'RS' (RS1001, RS1016, RS1024, RS1025, RS1026, RS2000, RS2001, RS2008)
Compile 'CommandLine(net48)'
Analyze 'CommandLine(net48)'
Done fixing 'CommandLine(net48)' in 00:01.18
Done fixing solution 'C:\Users\Bouke\Developer\Roslynator\src\CommandLine.sln' in 01:15.51
0 diagnostics fixed
Product and Version Used: Roslynator.CLI and Roslynator.CommandLine Version=0.1 Steps to Reproduce:
Roslynator.CLI
as documentation saysC:\bin\roslynator\Roslynator.exe fix --msbuild-path="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin" .\CommandLine.sln -v d
Actual Behavior: All projects have following errors:
Expected Behavior: Projects should be fixed normally.
Workaround :
When I build roslynator CLI by myself (in the same way as /tools/_fix.cmd) then it works perfectly. My guess is that when Roslynator CLI is built using different MsBuild version than the one used by it then it will fail.