roslyn-sdk
roslyn-sdk copied to clipboard
Roslyn dll to support loading both Framework and Dotnet Core solutions
I am new to Roslyn development, and have been trying to create a Roslyn project using VS 2022 "Standalone Code Analysis Tool" template. It's a command line tool, which seems to work fine. But after I converted it to a dll project, I won't be able to use it anymore. I am looking at below errors:
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets: (1805, 5): The "GetReferenceNearestTargetFrameworkTask" task could not be instantiated from the assembly "C:\Program Files\Microsoft Visual Studio\2022\Community\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'.
What should I do here?
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.