bug
untriagedC#DK
Type: <b>Bug</b>
## Issue Description ##
## Steps to Reproduce ##
## Expected Behavior ##
## Actual Behavior ##
Extension version: 2.140.8
VS Code version: Code 1.122.0 (6a49527b96e326fe62fbdb56f60e16877c9aa724, 2026-05-27T14:03:01-07:00)
OS version: Windows_NT x64 10.0.26200
Modes:
### Logs ###
<!--
If you can, it would be the most helpful to zip up and attach the entire extensions log folder. The folder can be opened by running the `workbench.action.openExtensionLogsFolder` command.
Additionally, if you can reproduce the issue reliably, use trace logging, see https://github.com/dotnet/vscode-csharp/blob/main/SUPPORT.md#c-lsp-trace-logs and then report the issue.
-->
### C# log ###
<details>
```
2026-05-29 15:50:54.978 [info] Locating .NET runtime version 10.0.5
2026-05-29 15:50:55.699 [info] Dotnet path: c:\Users\NGUYENTHAIHOC\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\10.0.8~x64~aspnetcore\dotnet.exe
2026-05-29 15:50:55.699 [info] Activating C# + C# Dev Kit...
2026-05-29 15:50:55.841 [info] info: Program[0]
2026-05-29 15:50:55.841 [info] Server started with process ID 52320
2026-05-29 15:50:56.326 [info] [Program] Language server initialized
2026-05-29 15:50:56.327 [info] [Program] Monitoring client process 29680 for exit
2026-05-29 15:50:56.718 [info] [initialized] [Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.FileBasedProgramsEntryPointDiscovery] Finished discovery in 'd:\Sources\Repositories\word-shooter' in 8 milliseconds
2026-05-29 15:50:59.444 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project D:\Sources\Repositories\word-shooter\src\WordShooter.Application\WordShooter.Application.csproj loaded by C# Dev Kit
2026-05-29 15:50:59.455 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project D:\Sources\Repositories\word-shooter\src\WordShooter.Domain\WordShooter.Domain.csproj loaded by C# Dev Kit
2026-05-29 15:50:59.458 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project D:\Sources\Repositories\word-shooter\src\WordShooter.Web\WordShooter.Web.csproj loaded by C# Dev Kit
2026-05-29 15:50:59.460 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project D:\Sources\Repositories\word-shooter\src\WordShooter.Infrastructure\WordShooter.Infrastructure.csproj loaded by C# Dev Kit
2026-05-29 22:39:58.793 [info] [textDocument/didSave] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] .NET BuildHost started from c:\Users\NGUYENTHAIHOC\.vscode\extensions\ms-dotnettools.csharp-2.140.8-win32-x64\.roslyn\Microsoft.CodeAnalysis.LanguageServer.exe reloading to start from C:\Program Files\dotnet\dotnet.exe to match necessary SDK location.
2026-05-29 22:39:59.630 [warning] [textDocument/didSave] [LanguageServerProjectLoader] Project C:\Users\NGUYENTHAIHOC\AppData\Local\Temp\roslyn-canonical-misc\8e756d51-096f-4cf6-9d0b-daca8bc7f6c1\Canonical.csproj has unresolved dependencies
2026-05-29 22:39:59.687 [info] [textDocument/didSave] [LanguageServerProjectLoader] Successfully completed load of d:\Sources\Repositories\word-shooter\src\WordShooter.Domain\Entities\GameMusic.cs
2026-05-29 22:39:59.699 [info] [textDocument/didSave] [LanguageServerProjectLoader] Restoring Canonical.csproj: Running dotnet restore on C:\Users\NGUYENTHAIHOC\AppData\Local\Temp\roslyn-canonical-misc\8e756d51-096f-4cf6-9d0b-daca8bc7f6c1\Canonical.csproj
2026-05-29 22:39:59.699 [info] [textDocument/didSave] [Microsoft.CodeAnalysis.LanguageServer.DotnetCliHelper] Using dotnet executable configured on the PATH
2026-05-29 22:40:00.246 [info] [textDocument/didSave] [LanguageServerProjectLoader] Restoring Canonical.csproj: Determining projects to restore...
2026-05-29 22:40:00.549 [info] [textDocument/didSave] [LanguageServerProjectLoader] Restoring Canonical.csproj: Restored C:\Users\NGUYENTHAIHOC\AppData\Local\Temp\roslyn-canonical-misc\8e756d51-096f-4cf6-9d0b-daca8bc7f6c1\Canonical.csproj (in 70 ms).
2026-05-29 22:40:00.591 [info] [textDocument/didSave] [LanguageServerProjectLoader] Restore complete
2026-05-29 22:40:00.592 [info] [textDocument/didSave] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:02.1128225
2026-05-29 22:40:01.095 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Successfully completed load of d:\Sources\Repositories\word-shooter\src\WordShooter.Domain\Entities\GameMusic.cs
2026-05-29 22:40:01.095 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:00.0132638
2026-05-29 22:40:05.718 [info] [textDocument/didSave] [LanguageServerProjectLoader] Successfully completed load of d:\Sources\Repositories\word-shooter\src\WordShooter.Application\Services\GameMusicService.cs
2026-05-29 22:40:05.718 [info] [textDocument/didSave] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:00.0239127
2026-05-29 22:40:06.062 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Successfully completed load of d:\Sources\Repositories\word-shooter\src\WordShooter.Application\Services\GameMusicService.cs
2026-05-29 22:40:06.062 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:00.0042981
2026-05-29 22:40:23.816 [info] [textDocument/diagnostic] [LanguageServerProjectLoader] Successfully completed load of chat-editing-snapshot-text-model:/d:/Sources/Repositories/word-shooter/src/WordShooter.Infrastructure/Persistence/AppDbContext.cs?%7B%22session%22:%7B%22$mid%22:1,%22external%22:%22vscode-chat-session://local/NTk4MTJmZjAtZGI0Ni00MWY2LTg2MTYtNzU4YWY1MTUyNTdl%22,%22path%22:%22/NTk4MTJmZjAtZGI0Ni00MWY2LTg2MTYtNzU4YWY1MTUyNTdl%22,%22scheme%22:%22vscode-chat-session%22,%22authority%22:%22local%22%7D,%22requestId%22:%22request_fccd4807-5380-401c-9bf4-0835ffe520e1%22,%22undoStop%22:%22__epoch_9007199254740991%22%7D
2026-05-29 22:40:23.825 [info] [textDocument/diagnostic] [LanguageServerProjectLoader] Successfully completed load of chat-editing-snapshot-text-model:/d:/Sources/Repositories/word-shooter/src/WordShooter.Infrastructure/Persistence/AppDbContext.cs?%7B%22session%22:%7B%22$mid%22:1,%22external%22:%22vscode-chat-session://local/NTk4MTJmZjAtZGI0Ni00MWY2LTg2MTYtNzU4YWY1MTUyNTdl%22,%22path%22:%22/NTk4MTJmZjAtZGI0Ni00MWY2LTg2MTYtNzU4YWY1MTUyNTdl%22,%22scheme%22:%22vscode-chat-session%22,%22authority%22:%22local%22%7D,%22requestId%22:%22request_fccd4807-5380-401c-9bf4-0835ffe520e1%22,%22undoStop%22:%22__epoch_98%22%7D
2026-05-29 22:40:23.826 [info] [textDocument/diagnostic] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:00.0421380
2026-05-29 22:40:37.444 [info] [textDocument/diagnostic] [LanguageServerProjectLoader] Successfully completed load of chat-editing-snapshot-text-model:/d:/Sources/Repositories/word-shooter/src/WordShooter.Infrastructure/Data/SeedDataProvider.cs?%7B%22session%22:%7B%22$mid%22:1,%22external%22:%22vscode-chat-session://local/NTk4MTJmZjAtZGI0Ni00MWY2LTg2MTYtNzU4YWY1MTUyNTdl%22,%22path%22:%22/NTk4MTJmZjAtZGI0Ni00MWY2LTg2MTYtNzU4YWY1MTUyNTdl%22,%22scheme%22:%22vscode-chat-session%22,%22authority%22:%22local%22%7D,%22requestId%22:%22request_fccd4807-5380-401c-9bf4-0835ffe520e1%22,%22undoStop%22:%22__epoch_9007199254740991%22%7D
2026-05-29 22:40:37.451 [info] [textDocument/diagnostic] [LanguageServerProjectLoader] Successfully completed load of chat-editing-snapshot-text-model:/d:/Sources/Repositories/word-shooter/src/WordShooter.Infrastructure/Data/SeedDataProvider.cs?%7B%22session%22:%7B%22$mid%22:1,%22external%22:%22vscode-chat-session://local/NTk4MTJmZjAtZGI0Ni00MWY2LTg2MTYtNzU4YWY1MTUyNTdl%22,%22path%22:%22/NTk4MTJmZjAtZGI0Ni00MWY2LTg2MTYtNzU4YWY1MTUyNTdl%22,%22scheme%22:%22vscode-chat-session%22,%22authority%22:%22local%22%7D,%22requestId%22:%22request_fccd4807-5380-401c-9bf4-0835ffe520e1%22,%22undoStop%22:%22__epoch_100%22%7D
2026-05-29 22:40:37.452 [info] [textDocument/diagnostic] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:00.0156989
2026-05-29 22:41:10.164 [info] [textDocument/didSave] [LanguageServerProjectLoader] Successfully completed load of d:\Sources\Repositories\word-shooter\src\WordShooter.Web\Controllers\MusicController.cs
2026-05-29 22:41:10.164 [info] [textDocument/didSave] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:00.0178614
2026-05-29 22:41:10.515 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Successfully completed load of d:\Sources\Repositories\word-shooter\src\WordShooter.Web\Controllers\MusicController.cs
2026-05-29 22:41:10.515 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:00.0053601
2026-05-31 05:39:03.748 [error] Request textDocument/documentSymbol failed.
Message: Razor source generator did not produce a host output for project 'WordShooter.Web': 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 'Views/Game/Ninja/Ninja_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/Game/Ninja/Ninja_cshtml.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 102
-----
Code: -32000
[object Object]
2026-05-31 05:39:03.753 [error] Request textDocument/codeAction failed.
Message: Razor source generator did not produce a host output for project 'WordShooter.Web': 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 'Views/Game/Ninja/Ninja_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/Game/Ninja/Ninja_cshtml.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 102
-----
Code: -32000
[object Object]
2026-05-31 05:39:03.755 [error] Request textDocument/diagnostic failed.
Message: Razor source generator did not produce a host output for project 'WordShooter.Web': 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 'Views/Game/Ninja/Ninja_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/Game/Ninja/Ninja_cshtml.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 102
-----
Code: -32000
[object Object]
2026-05-31 05:39:03.755 [error] Document pull failed for text document file:///d%3A/Sources/Repositories/word-shooter/src/WordShooter.Web/Views/Game/Counter/Counter.cshtml
Message: Razor source generator did not produce a host output for project 'WordShooter.Web': 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 'Views/Game/Ninja/Ninja_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/Game/Ninja/Ninja_cshtml.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 102
-----
Code: -32000
[object Object]
2026-05-31 05:39:04.145 [error] Request textDocument/inlayHint failed.
Message: Razor source generator did not produce a host output for project 'WordShooter.Web': 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 'Views/Game/Ninja/Ninja_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/Game/Ninja/Ninja_cshtml.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 102
-----
Code: -32000
[object Object]
2026-05-31 05:39:04.168 [error] Request textDocument/documentSymbol failed.
Message: Razor source generator did not produce a host output for project 'WordShooter.Web': 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 'Views/Game/Ninja/Ninja_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/Game/Ninja/Ninja_cshtml.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 102
-----
Code: -32000
[object Object]
2026-05-31 05:39:04.171 [error] Request textDocument/codeLens failed.
Message: Razor source generator did not produce a host output for project 'WordShooter.Web': 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 'Views/Game/Ninja/Ninja_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/Game/Ninja/Ninja_cshtml.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 102
-----
Code: -32000
[object Object]
2026-05-31 05:39:04.184 [error] Request textDocument/semanticTokens/range failed.
Message: Razor source generator did not produce a host output for project 'WordShooter.Web': 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 'Views/Game/Ninja/Ninja_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/Game/Ninja/Ninja_cshtml.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 102
-----
Code: -32000
[object Object]
2026-05-31 05:39:05.462 [error] Request textDocument/semanticTokens/range failed.
Message: Razor source generator did not produce a host output for project 'WordShooter.Web': 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 'Views/Game/Ninja/Ninja_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/Game/Ninja/Ninja_cshtml.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 102
-----
Code: -32000
[object Object]
2026-05-31 05:39:05.614 [error] Request textDocument/codeLens failed.
Message: Razor source generator did not produce a host output for project 'WordShooter.Web': 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 'Views/Game/Ninja/Ninja_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/Game/Ninja/Ninja_cshtml.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 102
-----
Code: -32000
[object Object]
2026-05-31 05:39:13.651 [error] Request textDocument/semanticTokens/range failed.
Message: Razor source generator did not produce a host output for project 'WordShooter.Web': 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 'Views/Game/Counter/Counter_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/Game/Counter/Counter_cshtml.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 102
-----
Code: -32000
[object Object]
2026-05-31 05:39:13.786 [error] Request textDocument/codeLens failed.
Message: Razor source generator did not produce a host output for project 'WordShooter.Web': 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 'Views/Game/Counter/Counter_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/Game/Counter/Counter_cshtml.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 102
-----
Code: -32000
[object Object]
2026-05-31 05:39:19.157 [error] Request textDocument/semanticTokens/range failed.
Message: Razor source generator did not produce a host output for project 'WordShooter.Web': 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 'Views/Game/Counter/Counter_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/Game/Counter/Counter_cshtml.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 102
-----
Code: -32000
[object Object]
2026-05-31 05:39:19.301 [error] Request textDocument/codeLens failed.
Message: Razor source generator did not produce a host output for project 'WordShooter.Web': 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 'Views/Game/Counter/Counter_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/Game/Counter/Counter_cshtml.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 102
-----
Code: -32000
[object Object]
2026-05-31 05:39:26.807 [error] Request textDocument/codeLens failed.
Message: Razor source generator did not produce a host output for project 'WordShooter.Web': 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 'Views/Game/Counter/Counter_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/Game/Counter/Counter_cshtml.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 102
-----
Code: -32000
[object Object]
2026-05-31 05:39:27.063 [error] Request textDocument/semanticTokens/range failed.
Message: Razor source generator did not produce a host output for project 'WordShooter.Web': 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 'Views/Game/Counter/Counter_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/Game/Counter/Counter_cshtml.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 102
-----
Code: -32000
[object Object]
2026-05-31 05:39:27.211 [error] Request textDocument/codeLens failed.
Message: Razor source generator did not produce a host output for project 'WordShooter.Web': 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 'Views/Game/Counter/Counter_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/Game/Counter/Counter_cshtml.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 102
-----
Code: -32000
[object Object]
2026-05-31 05:39:42.511 [error] Request textDocument/semanticTokens/range failed.
Message: Razor source generator did not produce a host output for project 'WordShooter.Web': 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 'Views/Game/Counter/Counter_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/Game/Counter/Counter_cshtml.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 102
-----
Code: -32000
[object Object]
2026-05-31 05:39:42.651 [error] Request textDocument/codeLens failed.
Message: Razor source generator did not produce a host output for project 'WordShooter.Web': 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 'Views/Game/Counter/Counter_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/Game/Counter/Counter_cshtml.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 102
-----
Code: -32000
[object Object]
```
</details>
### C# LSP Trace Logs log ###
<details>
```
```
</details>
## Environment Information ##
**VSCode version**: 1.122.0
**C# Extension**: 2.140.8
**Using OmniSharp**: false
<details><summary>Dotnet Information</summary>
Host:
Version: 10.0.8
Architecture: x64
Commit: 94ea82652c
RID: win-x64
.NET SDKs installed:
No SDKs were found.
.NET runtimes installed:
Microsoft.AspNetCore.App 10.0.8 [c:\Users\NGUYENTHAIHOC\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\10.0.8~x64~aspnetcore\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 10.0.8 [c:\Users\NGUYENTHAIHOC\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\10.0.8~x64~aspnetcore\shared\Microsoft.NETCore.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_MULTILEVEL_LOOKUP [0]
DOTNET_NOLOGO [true]
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
</details>
<details><summary>Visual Studio Code Extensions</summary>
|Extension|Author|Version|Folder Name|
|---|---|---|---|
|claude-code|Anthropic|2.1.156|anthropic.claude-code-2.1.156-win32-x64|
|csdevkit|ms-dotnettools|3.20.199|ms-dotnettools.csdevkit-3.20.199-win32-x64|
|csharp|ms-dotnettools|2.140.8|ms-dotnettools.csharp-2.140.8-win32-x64|
|go|golang|0.52.2|golang.go-0.52.2|
|playwright|ms-playwright|1.1.19|ms-playwright.playwright-1.1.19|
|vscode-containers|ms-azuretools|2.4.4|ms-azuretools.vscode-containers-2.4.4|
|vscode-dotnet-runtime|ms-dotnettools|3.0.2|ms-dotnettools.vscode-dotnet-runtime-3.0.2|;
</details>
<details><summary>C# Settings</summary>
|Setting|Value|
|---|---|
|preferCSharpExtension|false|
|compilerDiagnosticScope|openFiles|
|analyzerDiagnosticScope|openFiles|
|enableXamlTools|true|
|useServerGC|true|;
</details>
<details>
<summary>System Info</summary>
|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) Ultra 7 255H (16 x 3686)|
|GPU Status|2d_canvas: enabled<br>GPU0: VENDOR= 0x8086, DEVICE=0x7d51 [Intel(R) Arc(TM) 140T GPU (15GB)], DRIVER_VENDOR=Intel, DRIVER_VERSION=32.0.101.7026 *ACTIVE*<br>GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8246<br>Machine model name: <br>Machine model version: <br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>trees_in_viz: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled<br>webnn: disabled_off|
|Load (avg)|undefined|
|Memory (System)|30.93GB (8.58GB free)|
|Process Argv|--crash-reporter-id de102ce1-c478-4b39-9922-70473783192e|
|Screen Reader|no|
|VM|0%|
</details><details>
<summary>A/B Experiments</summary>
```
vsliv368:30146709
pythonvspyt551:31249599
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
6abeh943:31336334
envsdeactivate2:31505458
gh487529:31521844
cloudbuttont:31379625
3efgi100_wstrepl:31403338
55ia6109:31457054
ec5jj548:31422691
cp_cls_t_966_ss:31454198
inlinechat_v2_hd992725:31505030
4je02754:31466945
8hhj4413:31478653
ge8j1254_inline_auto_hint_haiku:31490510
38bie571_auto:31478677
cp_cls_c_1081:31454833
conptydll_true:31498968
ia-use-proxy-models-svc:31452481
e9c30283:31461165
test_treatment2:31471001
46204921:31447328
control_6dc23131:31520950
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
89g7j272:31518289
7e187181:31503455
i2gc6536:31499202
52612955:31516516
ghj88844:31499326
23c7c724:31520045
ddid_c:31478207
hmra_i5g22:31518061
getcmakediagnosticson:31489824
7df3h592:31512476
pro_large_t:31499376
cp_cls_t_1082:31516087
logging_enabled_new:31498466
j0d79568:31499440
jb_cp_cls_c_632:31517842
56dj4588:31512888
32d76977:31512328
ha629193:31508444
nes-charagree-1:31521370
31fi7170_t:31522396
a1ije391_t:31515488
hgf2d445:31517210
prpt_srch:31518468
61138546:31518536
nes-gb-5k:31521376
```
</details>
<!-- generated by issue reporter -->
0 条评论