Type: Bug
Issue Description
Steps to Reproduce
Expected Behavior
Actual Behavior
Extension version: 2.140.9
VS Code version: Code 1.126.0 (7e7950df89d055b5a378379db9ee14290772148a, 2026-06-23T01:46:13Z)
OS version: Windows_NT x64 10.0.26200
Modes:
Logs
C# log
Details
2026-06-30 13:18:01.229 [info] Locating .NET runtime version 10.0.5
2026-06-30 13:18:01.405 [info] Dotnet path: C:\Program Files\dotnet\dotnet.exe
2026-06-30 13:18:01.405 [info] Activating C# + C# Dev Kit...
2026-06-30 13:18:03.566 [info] info: Program[0]
2026-06-30 13:18:03.566 [info] Server started with process ID 23516
2026-06-30 13:18:03.803 [info] [Program] Language server initialized
2026-06-30 13:18:03.822 [info] [Program] Monitoring client process 14780 for exit
2026-06-30 13:18:05.129 [info] [initialized] [Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.FileBasedProgramsEntryPointDiscovery] Finished discovery in 'c:\Users\User\Documents\MyStudyApps\EventEaseApp' in 14 milliseconds
2026-06-30 13:18:10.989 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project C:\Users\User\Documents\MyStudyApps\EventEaseApp\EventEaseApp.csproj loaded by C# Dev Kit
2026-06-30 13:23:40.289 [info] [textDocument/didSave] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] .NET BuildHost started from c:\Users\User\.vscode\extensions\ms-dotnettools.csharp-2.140.9-win32-x64\.roslyn\Microsoft.CodeAnalysis.LanguageServer.exe reloading to start from C:\Program Files\dotnet\dotnet.exe to match necessary SDK location.
2026-06-30 13:23:42.400 [warning] [textDocument/didSave] [LanguageServerProjectLoader] Project C:\Users\User\AppData\Local\Temp\roslyn-canonical-misc\21744acf-aff3-47e0-93aa-f1186e474649\Canonical.csproj has unresolved dependencies
2026-06-30 13:23:42.469 [info] [textDocument/didSave] [LanguageServerProjectLoader] Successfully completed load of c:\Users\User\Documents\MyStudyApps\EventEaseApp\Models\EventRegistration.cs
2026-06-30 13:23:42.503 [info] [textDocument/didSave] [LanguageServerProjectLoader] Restoring Canonical.csproj: Running dotnet restore on C:\Users\User\AppData\Local\Temp\roslyn-canonical-misc\21744acf-aff3-47e0-93aa-f1186e474649\Canonical.csproj
2026-06-30 13:23:42.503 [info] [textDocument/didSave] [Microsoft.CodeAnalysis.LanguageServer.DotnetCliHelper] Using dotnet executable configured on the PATH
2026-06-30 13:23:43.584 [info] [textDocument/didSave] [LanguageServerProjectLoader] Restoring Canonical.csproj: Determining projects to restore...
2026-06-30 13:23:44.109 [info] [textDocument/didSave] [LanguageServerProjectLoader] Restoring Canonical.csproj: Restored C:\Users\User\AppData\Local\Temp\roslyn-canonical-misc\21744acf-aff3-47e0-93aa-f1186e474649\Canonical.csproj (in 102 ms).
2026-06-30 13:23:44.175 [info] [textDocument/didSave] [LanguageServerProjectLoader] Restore complete
2026-06-30 13:23:44.175 [info] [textDocument/didSave] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:04.9158541
2026-06-30 13:23:44.300 [info] [textDocument/didSave] [LanguageServerProjectLoader] Successfully completed load of c:\Users\User\Documents\MyStudyApps\EventEaseApp\Models\RegistrationForm.cs
2026-06-30 13:23:44.310 [info] [textDocument/didSave] [LanguageServerProjectLoader] Successfully completed load of c:\Users\User\Documents\MyStudyApps\EventEaseApp\Services\IUserSessionService.cs
2026-06-30 13:23:44.320 [info] [textDocument/didSave] [LanguageServerProjectLoader] Successfully completed load of c:\Users\User\Documents\MyStudyApps\EventEaseApp\Models\UserSession.cs
2026-06-30 13:23:44.330 [info] [textDocument/didSave] [LanguageServerProjectLoader] Successfully completed load of c:\Users\User\Documents\MyStudyApps\EventEaseApp\Services\UserSessionService.cs
2026-06-30 13:23:44.330 [info] [textDocument/didSave] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:00.0462953
2026-06-30 13:23:44.641 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Successfully completed load of c:\Users\User\Documents\MyStudyApps\EventEaseApp\Models\EventRegistration.cs
2026-06-30 13:23:44.645 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Successfully completed load of c:\Users\User\Documents\MyStudyApps\EventEaseApp\Services\UserSessionService.cs
2026-06-30 13:23:44.648 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Successfully completed load of c:\Users\User\Documents\MyStudyApps\EventEaseApp\Models\UserSession.cs
2026-06-30 13:23:44.652 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Successfully completed load of c:\Users\User\Documents\MyStudyApps\EventEaseApp\Models\RegistrationForm.cs
2026-06-30 13:23:44.656 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Successfully completed load of c:\Users\User\Documents\MyStudyApps\EventEaseApp\Services\IUserSessionService.cs
2026-06-30 13:23:44.657 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:00.0225590
2026-06-30 13:27:07.652 [error] Request textDocument/diagnostic failed.
Message: Razor source generator did not produce a host output for project 'EventEaseApp': warning CS8785: Generator 'RazorSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentException' with message 'The hintName 'Components/_Imports_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Components/_Imports_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')
at Microsoft.CodeAnalysis.AdditionalSourcesCollection.Add(String hintName, SourceText source) in /_/src/Compilers/Core/Portable/SourceGeneration/AdditionalSourcesCollection.cs:line 78
at Microsoft.CodeAnalysis.SourceOutputNode`1.AppendOutputs(IncrementalExecutionContext context, CancellationToken cancellationToken) in /_/src/Compilers/Core/Portable/SourceGeneration/Nodes/SourceOutputNode.cs:line 113
-----
Code: -32000
[object Object]
2026-06-30 13:27:07.652 [error] Document pull failed for text document file:///c%3A/Users/User/Documents/MyStudyApps/EventEaseApp/Components/Pages/EventDetails.razor
Message: Razor source generator did not produce a host output for project 'EventEaseApp': warning CS8785: Generator 'RazorSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentException' with message 'The hintName 'Components/_Imports_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Components/_Imports_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')
at Microsoft.CodeAnalysis.AdditionalSourcesCollection.Add(String hintName, SourceText source) in /_/src/Compilers/Core/Portable/SourceGeneration/AdditionalSourcesCollection.cs:line 78
at Microsoft.CodeAnalysis.SourceOutputNode`1.AppendOutputs(IncrementalExecutionContext context, CancellationToken cancellationToken) in /_/src/Compilers/Core/Portable/SourceGeneration/Nodes/SourceOutputNode.cs:line 113
-----
Code: -32000
[object Object]
C# LSP Trace Logs log
Details
Environment Information
VSCode version: 1.126.0
C# Extension: 2.140.9
Using OmniSharp: false
Dotnet Information
.NET SDK:
Version: 10.0.301
Commit: 96856fd726
Workload version: 10.0.300-manifests.8c7d7c03
MSBuild version: 18.6.4+96856fd72
Runtime Environment:
OS Name: Windows
OS Version: 10.0.26200
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\10.0.301\
.NET workloads installed:
[wasm-tools-net8]
Installation Source: VS 18.7.11919.86
Manifest Version: 10.0.109/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.workload.mono.toolchain.net8\10.0.109\WorkloadManifest.json
Install Type: Msi
[wasm-tools-net9]
Installation Source: VS 18.7.11919.86
Manifest Version: 10.0.109/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.workload.mono.toolchain.net9\10.0.109\WorkloadManifest.json
Install Type: Msi
[wasm-tools]
Installation Source: VS 18.7.11919.86
Manifest Version: 10.0.109/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.workload.mono.toolchain.current\10.0.109\WorkloadManifest.json
Install Type: Msi
Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.
Host:
Version: 10.0.9
Architecture: x64
Commit: 901ca94124
.NET SDKs installed:
10.0.301 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.28 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.28 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 8.0.28 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 10.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables:
DOTNET_CLI_UI_LANGUAGE [en-US]
DOTNET_MODERNIZATION_AGENT_PATH [c:\Users\User.vscode\extensions\ms-dotnettools.vscode-dotnet-modernize-1.0.1157\prompts]
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Visual Studio Code Extensions
| Extension |
Author |
Version |
Folder Name |
| copilot-theme |
benjaminbenais |
1.1.0 |
benjaminbenais.copilot-theme-1.1.0 |
| csdevkit |
ms-dotnettools |
3.20.199 |
ms-dotnettools.csdevkit-3.20.199-win32-x64 |
| csharp |
ms-dotnettools |
2.140.9 |
ms-dotnettools.csharp-2.140.9-win32-x64 |
| migrate-java-to-azure |
vscjava |
1.21.0 |
vscjava.migrate-java-to-azure-1.21.0-win32-x64 |
| vscode-azure-github-copilot |
ms-azuretools |
1.0.209 |
ms-azuretools.vscode-azure-github-copilot-1.0.209-win32-x64 |
| vscode-azure-mcp-server |
ms-azuretools |
2.0.45 |
ms-azuretools.vscode-azure-mcp-server-2.0.45-win32-x64 |
| vscode-azureresourcegroups |
ms-azuretools |
0.12.7 |
ms-azuretools.vscode-azureresourcegroups-0.12.7 |
| vscode-dotnet-modernize |
ms-dotnettools |
1.0.1157 |
ms-dotnettools.vscode-dotnet-modernize-1.0.1157 |
| vscode-dotnet-runtime |
ms-dotnettools |
3.1.0 |
ms-dotnettools.vscode-dotnet-runtime-3.1.0 |
| vscode-websearchforcopilot |
ms-vscode |
0.1.4 |
ms-vscode.vscode-websearchforcopilot-0.1.4 |
C# Settings
| Setting |
Value |
| preferCSharpExtension |
false |
| compilerDiagnosticScope |
openFiles |
| analyzerDiagnosticScope |
openFiles |
| enableXamlTools |
true |
| useServerGC |
true |
System Info
| Item |
Value |
| CPUs |
Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz (8 x 2112) |
| GPU Status |
2d_canvas: enabled GPU0: VENDOR= 0x8086, DEVICE=0x3ea0 [Intel(R) UHD Graphics 620], DRIVER_VENDOR=Intel, DRIVER_VERSION=31.0.101.2137 ACTIVE GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8737 Machine model name: Machine model version: 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 skia_graphite: disabled_off trees_in_viz: disabled_off video_decode: enabled video_encode: enabled webgl: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) |
undefined |
| Memory (System) |
15.72GB (6.04GB free) |
| Process Argv |
--crash-reporter-id 4b4b88cf-f66b-43ce-8805-bb751bdd2601 |
| Screen Reader |
no |
| VM |
0% |
A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
82j33506:31327384
6abeh943:31336334
envsactivate1:31538736
cloudbuttont:31379625
42190218_ostrepl:31403339
ddidt:31399633
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31466945
c3h7c220:31478652
38bie571_auto:31426784
cp_cls_c_1081:31454833
conptydll_true:31498968
ia-use-proxy-models-svc:31452481
e9c30283:31461165
test_treatment2:31471001
c9b86496:31447327
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
chat:31457767
8hig5102:31480529
89g7j272:31518289
7e187181:31503455
i2gc6536:31499202
52612955:31516516
ghj88844:31499326
ddid_c:31478207
hmra_i5g22:31518061
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
db5d2638:31499441
nes-extended-cfe-himalia-004:31500446
jb_cp_cls_t_632:31537244
56dj4588:31512888
32d76977:31512328
ha629193:31508444
cdk-lw-on:31524445
31fi7170_t:31522396
jh5f2457_c:31540921
8hfba999:31537718
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_c_nes:31533503
jf4hg949:31526829
nes-curr-leftover-1500:31538366
h561g132:31533256
sessions_3:31532893
h7dd7680:31541765
ihg5j128:31534457
9gg7f176:31542112
Type: Bug
Issue Description
Steps to Reproduce
Expected Behavior
Actual Behavior
Extension version: 2.140.9
VS Code version: Code 1.126.0 (7e7950df89d055b5a378379db9ee14290772148a, 2026-06-23T01:46:13Z)
OS version: Windows_NT x64 10.0.26200
Modes:
Logs
C# log
Details
C# LSP Trace Logs log
Details
Environment Information
VSCode version: 1.126.0
C# Extension: 2.140.9
Using OmniSharp: false
Dotnet Information
.NET SDK: Version: 10.0.301 Commit: 96856fd726 Workload version: 10.0.300-manifests.8c7d7c03 MSBuild version: 18.6.4+96856fd72Runtime Environment:
OS Name: Windows
OS Version: 10.0.26200
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\10.0.301\
.NET workloads installed:
[wasm-tools-net8]
Installation Source: VS 18.7.11919.86
Manifest Version: 10.0.109/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.workload.mono.toolchain.net8\10.0.109\WorkloadManifest.json
Install Type: Msi
[wasm-tools-net9]
Installation Source: VS 18.7.11919.86
Manifest Version: 10.0.109/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.workload.mono.toolchain.net9\10.0.109\WorkloadManifest.json
Install Type: Msi
[wasm-tools]
Installation Source: VS 18.7.11919.86
Manifest Version: 10.0.109/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.workload.mono.toolchain.current\10.0.109\WorkloadManifest.json
Install Type: Msi
Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.
Host:
Version: 10.0.9
Architecture: x64
Commit: 901ca94124
.NET SDKs installed:
10.0.301 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.28 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.28 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 8.0.28 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 10.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]
Environment variables:
DOTNET_CLI_UI_LANGUAGE [en-US]
DOTNET_MODERNIZATION_AGENT_PATH [c:\Users\User.vscode\extensions\ms-dotnettools.vscode-dotnet-modernize-1.0.1157\prompts]
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Visual Studio Code Extensions
C# Settings
System Info
GPU0: VENDOR= 0x8086, DEVICE=0x3ea0 [Intel(R) UHD Graphics 620], DRIVER_VENDOR=Intel, DRIVER_VERSION=31.0.101.2137 ACTIVE
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8737
Machine model name:
Machine model version:
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
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments