Expected Behavior:
Should not have any WorkspaceDiagnostic issues.
Actual Behavior:
Project Issue Diagnostic Issues:
Roslyn.VisualStudio.InteractiveComponents::::Msbuild failed when processing the file with message: C:\Users.nuget\packages\microsoft.net.compilers.toolset\3.7.0-1.20210.7\tasks\netcoreapp3.1\Microsoft.CSharp.Core.targets: (59, 5): The "Microsoft.CodeAnalysis.BuildTasks.Csc" task could not be loaded from the assembly C:\Users.nuget\packages\microsoft.net.compilers.toolset\3.7.0-1.20210.7\build..\tasks\netcoreapp3.1\Microsoft.Build.Tasks.CodeAnalysis.dll. Could not load file or assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
NOTE :
I have added a refrence to System.Runtime already.
Version Used: 3.5.0
Steps to Reproduce:
Using below code open .csproj :
Expected Behavior: Should not have any WorkspaceDiagnostic issues.
Actual Behavior: Project Issue Diagnostic Issues: Roslyn.VisualStudio.InteractiveComponents::::Msbuild failed when processing the file with message: C:\Users.nuget\packages\microsoft.net.compilers.toolset\3.7.0-1.20210.7\tasks\netcoreapp3.1\Microsoft.CSharp.Core.targets: (59, 5): The "Microsoft.CodeAnalysis.BuildTasks.Csc" task could not be loaded from the assembly C:\Users.nuget\packages\microsoft.net.compilers.toolset\3.7.0-1.20210.7\build..\tasks\netcoreapp3.1\Microsoft.Build.Tasks.CodeAnalysis.dll. Could not load file or assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
NOTE : I have added a refrence to System.Runtime already.