Closed ChrisMaunder closed 2 months ago
@ChrisMaunder would you mind setting dotnet.server.trace
to Trace
in vscode setings? Then attach the C# logs here again.
There is definitely an issue with the 7.0.100 SDK (will have a fix shortly), but that shouldn't cause project load warnings. Can you also confirm there are no warnings on a normal dotnet CLI build of the project?
Fix for the no compatible runtime error - https://github.com/dotnet/vscode-csharp/pull/6601
The project builds cleanly. No errors whatsoever.
Looks like I'm no longer seeing this issue on my Windows machine, but on an arm64 RaspberryPi I still get it.
My system is
System: Raspberry Pi
Operating System: Linux (Linux 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023)
CPUs: 1 CPU. (Arm64)
System RAM: 4 GiB
Platform: RaspberryPi
BuildConfig: Debug
Execution Env: VSCode (SSH)
Runtime Env: Development
.NET framework: .NET 7.0.4
dotnet info
.NET SDK:
Version: 7.0.202
Commit: 6c74320bc3
Runtime Environment:
OS Name: debian
OS Version: 11
OS Platform: Linux
RID: debian.11-arm64
Base Path: /opt/dotnet/sdk/7.0.202/
Host:
Version: 7.0.4
Architecture: arm64
Commit: 0a396acafe
.NET SDKs installed:
7.0.101 [/opt/dotnet/sdk]
7.0.202 [/opt/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 7.0.1 [/opt/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.4 [/opt/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.1 [/opt/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.4 [/opt/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
Trace:
Using dotnet configured on PATH
Dotnet path: /opt/dotnet/dotnet
Activating C# standalone...
Starting server at /home/chris/.vscode-server/extensions/ms-dotnettools.csharp-2.14.8-linux-arm64/.roslyn/Microsoft.CodeAnalysis.LanguageServer.dll
Server arguments /home/chris/.vscode-server/extensions/ms-dotnettools.csharp-2.14.8-linux-arm64/.roslyn/Microsoft.CodeAnalysis.LanguageServer.dll --logLevel Trace --telemetryLevel error --extensionLogDirectory /home/chris/.vscode-server/data/logs/20240106T085417/exthost4/ms-dotnettools.csharp
waiting for named pipe information from server...
[stdout] trce: Program[0]
.NET Runtime Version: .NET 7.0.4
[stdout] dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/chris/.vscode-server/extensions/ms-dotnettools.csharp-2.14.8-linux-arm64/.roslyn/Microsoft.CodeAnalysis.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/chris/.vscode-server/extensions/ms-dotnettools.csharp-2.14.8-linux-arm64/.roslyn/Microsoft.CodeAnalysis.CSharp.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/chris/.vscode-server/extensions/ms-dotnettools.csharp-2.14.8-linux-arm64/.roslyn/Microsoft.CodeAnalysis.Workspaces.dll added to workspace.
[stdout] dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/chris/.vscode-server/extensions/ms-dotnettools.csharp-2.14.8-linux-arm64/.roslyn/Microsoft.CodeAnalysis.CSharp.Workspaces.dll added to workspace.
[stdout] dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/chris/.vscode-server/extensions/ms-dotnettools.csharp-2.14.8-linux-arm64/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.CSharp.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/chris/.vscode-server/extensions/ms-dotnettools.csharp-2.14.8-linux-arm64/.roslyn/Microsoft.CodeAnalysis.AnalyzerUtilities.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/chris/.vscode-server/extensions/ms-dotnettools.csharp-2.14.8-linux-arm64/.roslyn/Microsoft.CodeAnalysis.Features.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/chris/.vscode-server/extensions/ms-dotnettools.csharp-2.14.8-linux-arm64/.roslyn/Microsoft.CodeAnalysis.Scripting.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/chris/.vscode-server/extensions/ms-dotnettools.csharp-2.14.8-linux-arm64/.roslyn/Microsoft.CodeAnalysis.Workspaces.MSBuild.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/chris/.vscode-server/extensions/ms-dotnettools.csharp-2.14.8-linux-arm64/.roslyn/Microsoft.CodeAnalysis.ExternalAccess.AspNetCore.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/chris/.vscode-server/extensions/ms-dotnettools.csharp-2.14.8-linux-arm64/.roslyn/Microsoft.CodeAnalysis.Remote.Workspaces.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/chris/.vscode-server/extensions/ms-dotnettools.csharp-2.14.8-linux-arm64/.roslyn/Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/chris/.vscode-server/extensions/ms-dotnettools.csharp-2.14.8-linux-arm64/.roslyn/Microsoft.CodeAnalysis.CSharp.Features.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/chris/.vscode-server/extensions/ms-dotnettools.csharp-2.14.8-linux-arm64/.roslyn/Microsoft.CodeAnalysis.ExternalAccess.RazorCompiler.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/chris/.vscode-server/extensions/ms-dotnettools.csharp-2.14.8-linux-arm64/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.Mvc.Version2_X.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/chris/.vscode-server/extensions/ms-dotnettools.csharp-2.14.8-linux-arm64/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.Mvc.Version1_X.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/chris/.vscode-server/extensions/ms-dotnettools.csharp-2.14.8-linux-arm64/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.Language.dll added to workspace.
dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/chris/.vscode-server/extensions/ms-dotnettools.csharp-2.14.8-linux-arm64/.roslyn/Microsoft.CodeAnalysis.Elfie.dll added to workspace.
[stdout] dbug: LanguageServerWorkspaceFactory[0]
Solution-level analyzer at /home/chris/.vscode-server/extensions/ms-dotnettools.csharp-2.14.8-linux-arm64/.roslyn/Microsoft.CodeAnalysis.Razor.Compiler.Mvc.dll added to workspace.
[stdout] {"pipeName":"/tmp/0cbbdca1.sock"}
received named pipe information from server
attempting to connect client to server...
client has connected to server
[Info - 9:00:08 AM] [Program] Language server initialized
[LanguageServerHost] [02:00:09.223][Start]initialize
[LanguageServerHost] [02:00:09.236][Start]Initialize
[LanguageServerHost] [02:00:09.393][End]Initialize
[LanguageServerHost] [02:00:09.607][End]initialize
[LanguageServerHost] [02:00:09.637][Start]initialized
[LanguageServerHost] [02:00:10.100][End]initialized
[LanguageServerHost] [02:00:10.187][Start]workspace/diagnostic
[LanguageServerHost] PublicWorkspacePullDiagnosticsHandler(category: , source: ) started getting diagnostics
[LanguageServerHost] previousResults.Length=0
[LanguageServerHost] Processing 0 documents
[LanguageServerHost] [02:00:10.553][Start]solution/open
[Info - 9:00:10 AM] [LanguageServerProjectSystem] Loading /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/CodeProject.AI.sln...
[BuildHost PID 286549] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.Program[0]
[BuildHost PID 286549] Message from Process: BuildHost Runtime Version: .NET 7.0.4
[BuildHost PID 286549] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0]
[BuildHost PID 286549] Message from Process: Registered MSBuild instance at /opt/dotnet/sdk/7.0.202
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type Mono for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/SDK/Python/Python.pyproj.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type NetCore for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/SDK/NET/NET.csproj.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type Mono for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/demos/Python/ObjectDetect/ObjectDetect.pyproj.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type Mono for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/demos/Python/Face/Face.pyproj.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type NetCore for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/PortraitFilter/PortraitFilter.csproj.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type Mono for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/OCR/OCR.pyproj.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type Mono for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/ALPR/ALPR.pyproj.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type NetCore for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/tests/QueueServiceTests/CodeProject.AI.API.Server.Backend.Tests.csproj.
[Warn - 9:00:11 AM] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] An installation of Mono could not be found; /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/SDK/Python/Python.pyproj will be loaded with the .NET Core SDK and may encounter errors.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type NetCore for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/SentimentAnalysis/SentimentAnalysis.csproj.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type NetCore for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/demos/dotNet/CodeProject.AI.Explorer/CodeProject.AI.Explorer.csproj.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type Mono for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/Cartooniser/Cartooniser.pyproj.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type Mono for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/ObjectDetectionYOLOv5-3.1/ObjectDetectionYOLOv5-3.1.pyproj.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type Mono for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/BackgroundRemover/BackgroundRemover.pyproj.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type Mono for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/SoundClassifierTF/SoundClassifierTF.pyproj.
[Warn - 9:00:11 AM] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] An installation of Mono could not be found; /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/OCR/OCR.pyproj will be loaded with the .NET Core SDK and may encounter errors.
[Warn - 9:00:11 AM] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] An installation of Mono could not be found; /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/demos/Python/ObjectDetect/ObjectDetect.pyproj will be loaded with the .NET Core SDK and may encounter errors.
[Warn - 9:00:11 AM] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] An installation of Mono could not be found; /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/demos/Python/Face/Face.pyproj will be loaded with the .NET Core SDK and may encounter errors.
[Warn - 9:00:11 AM] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] An installation of Mono could not be found; /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/Cartooniser/Cartooniser.pyproj will be loaded with the .NET Core SDK and may encounter errors.
[Warn - 9:00:11 AM] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] An installation of Mono could not be found; /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/ObjectDetectionYOLOv5-3.1/ObjectDetectionYOLOv5-3.1.pyproj will be loaded with the .NET Core SDK and may encounter errors.
[Warn - 9:00:11 AM] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] An installation of Mono could not be found; /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/BackgroundRemover/BackgroundRemover.pyproj will be loaded with the .NET Core SDK and may encounter errors.
[Warn - 9:00:11 AM] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] An installation of Mono could not be found; /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/SoundClassifierTF/SoundClassifierTF.pyproj will be loaded with the .NET Core SDK and may encounter errors.
[Warn - 9:00:11 AM] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] An installation of Mono could not be found; /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/ALPR/ALPR.pyproj will be loaded with the .NET Core SDK and may encounter errors.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type Mono for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/FaceProcessing/intelligencelayer/FaceProcessing.pyproj.
[Warn - 9:00:11 AM] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] An installation of Mono could not be found; /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/FaceProcessing/intelligencelayer/FaceProcessing.pyproj will be loaded with the .NET Core SDK and may encounter errors.
[LanguageServerHost] [02:00:11.904][Start]workspace/didChangeConfiguration
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type Mono for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/ObjectDetectionYOLOv5-6.2/ObjectDetectionYOLOv5-6.2.pyproj.
[Warn - 9:00:11 AM] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] An installation of Mono could not be found; /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/ObjectDetectionYOLOv5-6.2/ObjectDetectionYOLOv5-6.2.pyproj will be loaded with the .NET Core SDK and may encounter errors.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type Mono for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/ObjectDetectionYOLOv8/ObjectDetectionYOLOv8.pyproj.
[Warn - 9:00:11 AM] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] An installation of Mono could not be found; /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/ObjectDetectionYOLOv8/ObjectDetectionYOLOv8.pyproj will be loaded with the .NET Core SDK and may encounter errors.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type Mono for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/SceneClassifier/SceneClassifier.pyproj.
[Warn - 9:00:11 AM] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] An installation of Mono could not be found; /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/SceneClassifier/SceneClassifier.pyproj will be loaded with the .NET Core SDK and may encounter errors.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type NetCore for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/ObjectDetectionYOLOv5Net/ObjectDetectionYOLOv5Net.csproj.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type Mono for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/TextSummary/TextSummary.pyproj.
[Warn - 9:00:11 AM] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] An installation of Mono could not be found; /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/TextSummary/TextSummary.pyproj will be loaded with the .NET Core SDK and may encounter errors.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type NetCore for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/SDK/Utilities/ParseJSON/ParseJSON.csproj.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type Mono for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/ALPR-RKNN/ALPR-RKNN.pyproj.
[Warn - 9:00:11 AM] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] An installation of Mono could not be found; /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/ALPR-RKNN/ALPR-RKNN.pyproj will be loaded with the .NET Core SDK and may encounter errors.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type Mono for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/LlamaChat/Llama.pyproj.
[Warn - 9:00:11 AM] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] An installation of Mono could not be found; /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/LlamaChat/Llama.pyproj will be loaded with the .NET Core SDK and may encounter errors.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type NetCore for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/server/Server.csproj.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type Mono for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/ObjectDetectionCoral/ObjectDetectionCoral.pyproj.
[Warn - 9:00:11 AM] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] An installation of Mono could not be found; /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/ObjectDetectionCoral/ObjectDetectionCoral.pyproj will be loaded with the .NET Core SDK and may encounter errors.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type Mono for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/SuperResolution/SuperResolution.pyproj.
[Warn - 9:00:11 AM] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] An installation of Mono could not be found; /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/SuperResolution/SuperResolution.pyproj will be loaded with the .NET Core SDK and may encounter errors.
[Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] Choosing a build host of type Mono for /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/TrainingObjectDetectionYOLOv5/TrainingObjectDetectionYOLOv5.pyproj.
[Warn - 9:00:11 AM] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] An installation of Mono could not be found; /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/TrainingObjectDetectionYOLOv5/TrainingObjectDetectionYOLOv5.pyproj will be loaded with the .NET Core SDK and may encounter errors.
[LanguageServerHost] [02:00:11.976][End]workspace/didChangeConfiguration
[BuildHost PID 286571] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.Program[0]
[BuildHost PID 286571] Message from Process: BuildHost Runtime Version: .NET 7.0.4
[BuildHost PID 286571] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0]
[BuildHost PID 286571] Message from Process: Registered MSBuild instance at /opt/dotnet/sdk/7.0.202
[BuildHost PID 286571] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0]
[BuildHost PID 286571] Message from Process: Loading /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/PortraitFilter/PortraitFilter.csproj
[BuildHost PID 286571] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0]
[BuildHost PID 286571] Message from Process: Loading /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/SentimentAnalysis/SentimentAnalysis.csproj
[BuildHost PID 286571] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0]
[BuildHost PID 286571] Message from Process: Loading /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/SDK/NET/NET.csproj
[BuildHost PID 286571] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0]
[BuildHost PID 286571] Message from Process: Loading /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/demos/dotNet/CodeProject.AI.Explorer/CodeProject.AI.Explorer.csproj
[BuildHost PID 286571] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0]
[BuildHost PID 286571] Message from Process: Loading /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/tests/QueueServiceTests/CodeProject.AI.API.Server.Backend.Tests.csproj
[BuildHost PID 286571] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0]
[BuildHost PID 286571] Message from Process: Loading /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/ObjectDetectionYOLOv5Net/ObjectDetectionYOLOv5Net.csproj
[BuildHost PID 286571] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0]
[BuildHost PID 286571] Message from Process: Loading /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/SDK/Utilities/ParseJSON/ParseJSON.csproj
[BuildHost PID 286571] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.BuildHost[0]
[BuildHost PID 286571] Message from Process: Loading /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/server/Server.csproj
[LanguageServerHost] Closing workspace/diagnostics request
[LanguageServerHost] Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicWorkspacePullDiagnosticsHandler finished getting diagnostics
[LanguageServerHost] [02:00:18.763][End]workspace/diagnostic
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/demos/dotNet/CodeProject.AI.Explorer/CodeProject.AI.Explorer.csproj (net7.0-windows) now has 5 source file(s).
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/demos/dotNet/CodeProject.AI.Explorer/CodeProject.AI.Explorer.csproj (net7.0-windows) now has 2 analyzer reference(s).
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/demos/dotNet/CodeProject.AI.Explorer/CodeProject.AI.Explorer.csproj (net7.0-windows) now has 1 analyzer config file(s).
[Warn - 9:00:18 AM] [LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/demos/dotNet/CodeProject.AI.Explorer/CodeProject.AI.Explorer.csproj has unresolved dependencies
[Info - 9:00:19 AM] [LanguageServerProjectSystem] Successfully completed load of /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/demos/dotNet/CodeProject.AI.Explorer/CodeProject.AI.Explorer.csproj
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/ObjectDetectionYOLOv5Net/ObjectDetectionYOLOv5Net.csproj (net7.0) now has 12 source file(s).
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/ObjectDetectionYOLOv5Net/ObjectDetectionYOLOv5Net.csproj (net7.0) now has 203 reference(s).
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/ObjectDetectionYOLOv5Net/ObjectDetectionYOLOv5Net.csproj (net7.0) now has 8 analyzer reference(s).
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/ObjectDetectionYOLOv5Net/ObjectDetectionYOLOv5Net.csproj (net7.0) now has 3 analyzer config file(s).
[Info - 9:00:20 AM] [LanguageServerProjectSystem] Successfully completed load of /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/ObjectDetectionYOLOv5Net/ObjectDetectionYOLOv5Net.csproj
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/SentimentAnalysis/SentimentAnalysis.csproj (net7.0) now has 5 source file(s).
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/SentimentAnalysis/SentimentAnalysis.csproj (net7.0) now has 220 reference(s).
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/SentimentAnalysis/SentimentAnalysis.csproj (net7.0) now has 8 analyzer reference(s).
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/SentimentAnalysis/SentimentAnalysis.csproj (net7.0) now has 3 analyzer config file(s).
[LanguageServerHost] [02:00:20.775][Start]workspace/diagnostic
[LanguageServerHost] PublicWorkspacePullDiagnosticsHandler(category: , source: ) started getting diagnostics
[LanguageServerHost] previousResults.Length=0
[LanguageServerHost] Processing 0 documents
[LanguageServerHost] Closing workspace/diagnostics request
[LanguageServerHost] Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicWorkspacePullDiagnosticsHandler finished getting diagnostics
[LanguageServerHost] [02:00:20.823][End]workspace/diagnostic
[Info - 9:00:21 AM] [LanguageServerProjectSystem] Successfully completed load of /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/SentimentAnalysis/SentimentAnalysis.csproj
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/SDK/NET/NET.csproj (net7.0) now has 23 source file(s).
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/SDK/NET/NET.csproj (net7.0) now has 183 reference(s).
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/SDK/NET/NET.csproj (net7.0) now has 8 analyzer reference(s).
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/SDK/NET/NET.csproj (net7.0) now has 3 analyzer config file(s).
[Info - 9:00:21 AM] [LanguageServerProjectSystem] Successfully completed load of /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/SDK/NET/NET.csproj
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/tests/QueueServiceTests/CodeProject.AI.API.Server.Backend.Tests.csproj (net7.0) now has 4 source file(s).
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/tests/QueueServiceTests/CodeProject.AI.API.Server.Backend.Tests.csproj (net7.0) now has 332 reference(s).
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/tests/QueueServiceTests/CodeProject.AI.API.Server.Backend.Tests.csproj (net7.0) now has 13 analyzer reference(s).
[LanguageServerHost] [02:00:22.827][Start]workspace/diagnostic
[LanguageServerHost] PublicWorkspacePullDiagnosticsHandler(category: , source: ) started getting diagnostics
[LanguageServerHost] previousResults.Length=0
[LanguageServerHost] Processing 0 documents
[LanguageServerHost] Closing workspace/diagnostics request
[LanguageServerHost] Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicWorkspacePullDiagnosticsHandler finished getting diagnostics
[LanguageServerHost] [02:00:22.829][End]workspace/diagnostic
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/tests/QueueServiceTests/CodeProject.AI.API.Server.Backend.Tests.csproj (net7.0) now has 3 analyzer config file(s).
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/PortraitFilter/PortraitFilter.csproj (net7.0) now has 7 source file(s).
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/PortraitFilter/PortraitFilter.csproj (net7.0) now has 204 reference(s).
[Info - 9:00:23 AM] [LanguageServerProjectSystem] Successfully completed load of /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/tests/QueueServiceTests/CodeProject.AI.API.Server.Backend.Tests.csproj
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/PortraitFilter/PortraitFilter.csproj (net7.0) now has 8 analyzer reference(s).
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/PortraitFilter/PortraitFilter.csproj (net7.0) now has 3 analyzer config file(s).
[Info - 9:00:23 AM] [LanguageServerProjectSystem] Successfully completed load of /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/modules/PortraitFilter/PortraitFilter.csproj
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/SDK/Utilities/ParseJSON/ParseJSON.csproj (net7.0) now has 3 source file(s).
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/SDK/Utilities/ParseJSON/ParseJSON.csproj (net7.0) now has 163 reference(s).
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/SDK/Utilities/ParseJSON/ParseJSON.csproj (net7.0) now has 7 analyzer reference(s).
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/SDK/Utilities/ParseJSON/ParseJSON.csproj (net7.0) now has 3 analyzer config file(s).
[Info - 9:00:23 AM] [LanguageServerProjectSystem] Successfully completed load of /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/SDK/Utilities/ParseJSON/ParseJSON.csproj
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/server/Server.csproj (net7.0) now has 55 source file(s).
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/server/Server.csproj (net7.0) now has 316 reference(s).
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/server/Server.csproj (net7.0) now has 18 analyzer reference(s).
[LanguageServerProjectSystem] Project /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/server/Server.csproj (net7.0) now has 3 analyzer config file(s).
[LanguageServerHost] [02:00:24.835][Start]workspace/diagnostic
[LanguageServerHost] PublicWorkspacePullDiagnosticsHandler(category: , source: ) started getting diagnostics
[LanguageServerHost] previousResults.Length=0
[LanguageServerHost] Processing 0 documents
[LanguageServerHost] Closing workspace/diagnostics request
[LanguageServerHost] Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicWorkspacePullDiagnosticsHandler finished getting diagnostics
[LanguageServerHost] [02:00:24.837][End]workspace/diagnostic
[Error - 9:00:24 AM] [LanguageServerProjectSystem] Failure while loading /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/server/Server.csproj: To build a project targeting Windows on this operating system, set the EnableWindowsTargeting property to true.
[LanguageServerHost] [02:00:24.976][Start]workspace/_roslyn_restore
[Info - 9:00:24 AM] [Microsoft.CodeAnalysis.LanguageServer.DotnetCliHelper] Using dotnet executable configured on the PATH
[Microsoft.CodeAnalysis.LanguageServer.DotnetCliHelper] Running dotnet CLI command at /usr/local/bin/dotnet in directory /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/demos/dotNet/CodeProject.AI.Explorer with arguments System.String[]
[LanguageServerHost] [02:00:26.872][Start]workspace/diagnostic
[LanguageServerHost] PublicWorkspacePullDiagnosticsHandler(category: , source: ) started getting diagnostics
[LanguageServerHost] previousResults.Length=0
[LanguageServerHost] Processing 0 documents
[LanguageServerHost] Closing workspace/diagnostics request
[LanguageServerHost] Microsoft.CodeAnalysis.LanguageServer.Handler.Diagnostics.Public.PublicWorkspacePullDiagnosticsHandler finished getting diagnostics
[LanguageServerHost] [02:00:26.874][End]workspace/diagnostic
[LanguageServerHost] [02:00:29.373][Start]workspace/diagnostic
[LanguageServerHost] PublicWorkspacePullDiagnosticsHandler(category: , source: ) started getting diagnostics
[LanguageServerHost] previousResults.Length=0
[LanguageServerHost] Processing 0 documents
[LanguageServerHost] [02:00:29.807][End]workspace/_roslyn_restore
[Info - 9:00:29 AM] [LanguageServerProjectSystem] Completed (re)load of all projects in 00:00:17.9975397
[BuildHost PID 286571] Sending a Shutdown request to the BuildHost.
[BuildHost PID 286571] Process shut down.
[BuildHost PID 286549] Sending a Shutdown request to the BuildHost.
[BuildHost PID 286571] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.Program[0]
[BuildHost PID 286571] Message from Process: RPC channel closed; process exiting.
[LanguageServerHost] [02:00:29.909][Start]workspace/debugConfiguration
[BuildHost PID 286549] Process shut down.
[LanguageServerHost] [02:00:29.941][End]solution/open
[BuildHost PID 286549] Message from Process: info: Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost.Program[0]
[BuildHost PID 286549] Message from Process: RPC channel closed; process exiting.
[LanguageServerHost] [02:00:30.016][End]workspace/debugConfiguration
[LanguageServerHost] [02:00:32.024][Start]workspace/buildOnlyDiagnosticIds
[LanguageServerHost] [02:00:35.307][End]workspace/buildOnlyDiagnosticIds
Apologies for the delay here, the error listed seems to be a real error loading the project:
[Error - 9:00:24 AM] [LanguageServerProjectSystem] Failure while loading /home/chris/Dev/CodeProject/CodeProject.AI-Server-Private/src/server/Server.csproj: To build a project targeting Windows on this operating system, set the EnableWindowsTargeting property to true.
Fixing that should resolve the error I believe. Otherwise if you don't want anything to load, you can set dotnet.defaultSolution
to 'disable' which will prevent us from loading any project.
Otherwise if you things to try to load even with errors, we currently don't have a mechanism of suppressing the pop ups. If that is the case let me know and I can repurpose this issue in to tracking that feature request.
Closing as duplicate of https://github.com/dotnet/vscode-csharp/issues/7472 for tracking suppression of project load failures
Type: Bug
When loading a solution that contains C# projects there is often a warning "There were problems loading project" with a link to the logs. The logs show the project loading just fine.
Request A flag to be able to disable this warning. There used to be with Omnisharp, but we no longer seem to have the option
Steps to Reproduce
Open a VSCode window. Or even just trigger a UI refresh.
Expected Behavior
No warnings
Actual Behavior
Warnings that are unhelpful and incorrect
Logs
C# log
server.csproj (a .NET project) was the project that triggered the warning. The line "no compat .NET runtime found" is odd since a dotnet --info shows
C# LSP Trace Logs
Environment information
VSCode version: 1.83.1 C# Extension: 2.8.23 Using OmniSharp: false
Dotnet Information
Host: Version: 7.0.13 Architecture: x64 Commit: 3f73a2f186 .NET SDKs installed: No SDKs were found. .NET runtimes installed: Microsoft.NETCore.App 7.0.13 [/Users/me/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/7.0.13~x64/shared/Microsoft.NETCore.App] Other architectures found: None Environment variables: Not set global.json file: Not found Learn more: https://aka.ms/dotnet/info Download .NET: https://aka.ms/dotnet/downloadVisual Studio Code Extensions
|Extension|Author|Version|Folder Name| |---|---|---|---| |cpptools-themes|ms-vscode|2.0.0|ms-vscode.cpptools-themes-2.0.0| |csharp|ms-dotnettools|2.8.23|ms-dotnettools.csharp-2.8.23-darwin-x64| |powershell|ms-vscode|2023.8.0|ms-vscode.powershell-2023.8.0| |vscode-dotnet-runtime|ms-dotnettools|1.8.1|ms-dotnettools.vscode-dotnet-runtime-1.8.1| |vscode-pylance|ms-python|2023.10.40|ms-python.vscode-pylance-2023.10.40|;Extension version: 2.8.23 VS Code version: Code 1.83.1 (Universal) (f1b07bd25dfad64b0167beb15359ae573aecd2cc, 2023-10-10T23:46:55.789Z) OS version: Darwin x64 23.0.0 Modes:
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz (8 x 2300)| |GPU Status|2d_canvas: enabledcanvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|2, 4, 5| |Memory (System)|16.00GB (0.10GB free)| |Process Argv|--crash-reporter-id b7908b28-c625-4ee7-ad39-6492282e6b1a| |Screen Reader|no| |VM|0%|