Skip to content

Razor source generator fails with duplicate hint names #9713

Description

@mateuskenji11-sudo

Type: Bug

Issue Description

Steps to Reproduce

Expected Behavior

Actual Behavior

Extension version: 2.140.9
VS Code version: Code 1.135.0 (08d4889f9ec4a1685d257b9b95de036c8e1ce1e5, 2026-08-25T14:26:52Z)
OS version: Windows_NT x64 10.0.19045
Modes:

Logs

C# log

Details
2026-08-29 16:00:08.186 [info] Locating .NET runtime version 10.0.5
2026-08-29 16:00:09.251 [info] Dotnet path: c:\Users\mateu\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\10.0.11~x64~aspnetcore\dotnet.exe
2026-08-29 16:00:09.251 [info] Activating C# + C# Dev Kit...
2026-08-29 16:00:09.886 [info] info: Program[0]
2026-08-29 16:00:09.886 [info]       Server started with process ID 2120
2026-08-29 16:00:11.997 [info] [Program] Language server initialized
2026-08-29 16:00:11.999 [info] [Program] Monitoring client process 6400 for exit
2026-08-29 16:00:13.141 [info] [initialized] [Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.FileBasedProgramsEntryPointDiscovery] Finished discovery in 'e:\Wire-RMM-main' in 46 milliseconds
2026-08-29 16:00:19.967 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project E:\Wire-RMM-main\WireconceptRMM-main\Wireconcept-RMM-Server\Wireconcept RMM Server.csproj loaded by C# Dev Kit
2026-08-29 16:00:19.986 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project E:\Wire-RMM-main\WireconceptRMM-main\AgentGateway\AgentGateway.csproj loaded by C# Dev Kit
2026-08-29 16:00:19.991 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project E:\Wire-RMM-main\WireconceptRMM-main\Wireconcept-RMM-User-Process\Wireconcept RMM User Process.csproj loaded by C# Dev Kit
2026-08-29 16:00:19.994 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project E:\Wire-RMM-main\WireconceptRMM-main\Wireconcept RMM Tray Icon\NetLock RMM Tray Icon.csproj loaded by C# Dev Kit
2026-08-29 16:00:19.997 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project E:\Wire-RMM-main\WireconceptRMM-main\Wireconcept RMM Agent Comm\Wireconcept RMM Agent Comm.csproj loaded by C# Dev Kit
2026-08-29 16:00:19.999 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project E:\Wire-RMM-main\WireconceptRMM-main\Wireconcept-RMM-Web-Console\Wireconcept RMM Web Console.csproj loaded by C# Dev Kit
2026-08-29 16:00:20.002 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project E:\Wire-RMM-main\WireconceptRMM-main\Wireconcept Agent Installer\Wireconcept RMM Agent Installer.csproj loaded by C# Dev Kit
2026-08-29 16:00:20.004 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project E:\Wire-RMM-main\WireconceptRMM-main\Wireconcept RMM Agent Remote\Wireconcept RMM Agent Remote.csproj loaded by C# Dev Kit
2026-08-29 16:00:20.006 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project E:\Wire-RMM-main\WireconceptRMM-main\WireconceptRMM Agent Health\Wireconcept RMM Agent Health.csproj loaded by C# Dev Kit
2026-08-29 16:00:20.010 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project E:\Wire-RMM-main\WireconceptRMM-main\WindowsAgent\WindowsAgent.csproj loaded by C# Dev Kit
2026-08-29 16:00:20.012 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project E:\Wire-RMM-main\WireconceptRMM-main\Wireconcept RMM Relay App\NetLock RMM Relay App.csproj loaded by C# Dev Kit
2026-08-29 18:02:56.507 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project e:\Wire-RMM-main\WireconceptRMM-main\WindowsAgent.Helper\WindowsAgent.Helper.csproj loaded by C# Dev Kit
2026-08-29 19:28:37.102 [error] Request textDocument/diagnostic failed.
  Message: Razor source generator did not produce a host output for project 'Wireconcept RMM Web Console': 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/Pages/Collections/GPO_Templates/Dialogs/Delete_GPO_Template_Dialog_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Components/Pages/Collections/GPO_Templates/Dialogs/Delete_GPO_Template_Dialog_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-08-29 19:28:37.103 [error] Document pull failed for text document file:///e%3A/Wire-RMM-main/WireconceptRMM-main/Wireconcept-RMM-Web-Console/Components/Layout/NavMenu.razor
  Message: Razor source generator did not produce a host output for project 'Wireconcept RMM Web Console': 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/Pages/Collections/GPO_Templates/Dialogs/Delete_GPO_Template_Dialog_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Components/Pages/Collections/GPO_Templates/Dialogs/Delete_GPO_Template_Dialog_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-08-29 19:41:59.387 [error] Request textDocument/diagnostic failed.
  Message: Razor source generator did not produce a host output for project 'Wireconcept RMM Web Console': 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/Pages/Devices/Dialogs/Apply_GPO_Template/Apply_GPO_Template_Dialog_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Components/Pages/Devices/Dialogs/Apply_GPO_Template/Apply_GPO_Template_Dialog_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-08-29 19:41:59.387 [error] Document pull failed for text document file:///e%3A/Wire-RMM-main/WireconceptRMM-main/Wireconcept-RMM-Web-Console/Components/Pages/Collections/GPO_Templates/Dialogs/Add_GPO_Template_Dialog.razor
  Message: Razor source generator did not produce a host output for project 'Wireconcept RMM Web Console': 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/Pages/Devices/Dialogs/Apply_GPO_Template/Apply_GPO_Template_Dialog_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Components/Pages/Devices/Dialogs/Apply_GPO_Template/Apply_GPO_Template_Dialog_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-08-29 22:21:22.341 [error] Request textDocument/inlayHint failed.
  Message: Razor source generator did not produce a host output for project 'Wireconcept RMM Web Console': 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/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Components/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_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-08-29 22:21:22.349 [error] Request textDocument/diagnostic failed.
  Message: Razor source generator did not produce a host output for project 'Wireconcept RMM Web Console': 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/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Components/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_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-08-29 22:21:22.349 [error] Document pull failed for text document file:///e%3A/Wire-RMM-main/WireconceptRMM-main/Wireconcept-RMM-Web-Console/Components/Pages/Collections/GPO_Templates/Manage_GPO_Templates.razor
  Message: Razor source generator did not produce a host output for project 'Wireconcept RMM Web Console': 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/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Components/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_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-08-29 22:21:22.351 [error] Request textDocument/codeAction failed.
  Message: Razor source generator did not produce a host output for project 'Wireconcept RMM Web Console': 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/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Components/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_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-08-29 22:21:22.353 [error] Request textDocument/semanticTokens/range failed.
  Message: Razor source generator did not produce a host output for project 'Wireconcept RMM Web Console': 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/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Components/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_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-08-29 22:21:22.464 [error] Request textDocument/codeLens failed.
  Message: Razor source generator did not produce a host output for project 'Wireconcept RMM Web Console': 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/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Components/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_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-08-29 22:21:22.474 [error] Request textDocument/codeAction failed.
  Message: Razor source generator did not produce a host output for project 'Wireconcept RMM Web Console': 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/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Components/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_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-08-29 22:21:22.514 [error] Request textDocument/documentSymbol failed.
  Message: Razor source generator did not produce a host output for project 'Wireconcept RMM Web Console': 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/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Components/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_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-08-29 22:21:23.285 [error] Request textDocument/semanticTokens/range failed.
  Message: Razor source generator did not produce a host output for project 'Wireconcept RMM Web Console': 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/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Components/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_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-08-29 22:21:23.437 [error] Request textDocument/codeLens failed.
  Message: Razor source generator did not produce a host output for project 'Wireconcept RMM Web Console': 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/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Components/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_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-08-29 22:21:27.274 [error] Request textDocument/semanticTokens/range failed.
  Message: Razor source generator did not produce a host output for project 'Wireconcept RMM Web Console': 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/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Components/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_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-08-29 22:21:27.319 [error] Request textDocument/inlayHint failed.
  Message: Razor source generator did not produce a host output for project 'Wireconcept RMM Web Console': 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/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_razor.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Components/Pages/Devices/Dialogs/Remote_Shell/Remote_Shell_Dialog_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.135.0
C# Extension: 2.140.9
Using OmniSharp: false

Dotnet Information

Host:
Version: 10.0.11
Architecture: x64
Commit: e2f47b0110
RID: win-x64

.NET SDKs installed:
No SDKs were found.

.NET runtimes installed:
Microsoft.AspNetCore.App 10.0.11 [c:\Users\mateu\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\10.0.11x64aspnetcore\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 10.0.11 [c:\Users\mateu\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\10.0.11x64aspnetcore\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

Visual Studio Code Extensions
Extension Author Version Folder Name
claude-code Anthropic 2.1.251 anthropic.claude-code-2.1.251-win32-x64
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
powershell ms-vscode 2025.4.0 ms-vscode.powershell-2025.4.0
vscode-dotnet-runtime ms-dotnettools 3.1.0 ms-dotnettools.vscode-dotnet-runtime-3.1.0
C# Settings
Setting Value
preferCSharpExtension false
compilerDiagnosticScope openFiles
analyzerDiagnosticScope openFiles
enableXamlTools true
useServerGC true
System Info
Item Value
CPUs AMD Ryzen 7 1800X Eight-Core Processor (16 x 3600)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x1002, DEVICE=0x7340 [Radeon RX 5500 XT], DRIVER_VENDOR=AMD, DRIVER_VERSION=32.0.21030.2001 ACTIVE
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.19041.7548
GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.19041.7548
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) 7.92GB (1.77GB free)
Process Argv --crash-reporter-id 040bcaae-8b51-4a75-8e86-ca16a81ab300
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
envsactivate1:31551504
editstats-enabled:31346257
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31466945
c3h7c220:31478652
cp_cls_c_1081:31454833
conptydll_true:31498968
e9c30283:31461165
c9b86496:31447327
control_6dc23131:31555649
ei9d7968:31496641
chat:31457767
8hig5102:31480529
89g7j272:31518289
i2gc6536:31499202
52612955:31516516
23c7c724:31520045
ddid_t:31478206
hmra_i5g22:31518061
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
db5d2638:31499441
jb_cp_cls_t_632:31543129
56dj4588:31512888
32d76977:31512328
ha629193:31508444
a1ije391_t:31540920
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_t_nes:31548657
jf4hg949:31526829
ahp-both-windows:31556933
session_8:31532895
ihg5j128:31534457
f412h606:31551416
7g2b5551:31542111
nes-ex-cf-euporie-03:31542868
enable_editor_pane_layout:31569726
allow-none:31555437
ac562147:31564510
c7c27ce7:31554789
1h923230:31564177
1532g621_copy:31554320
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
0d8dfbc3:31570291
nemo-v2:31565334
0c1h4866:31566224
session-mark-done:31558131
5b8j3302:31564601
mangle-name-treatment:31572634
9e5id457:31573761
multiv2:31574985
permission_prompt_treatment:1332566
ccr_pr_nudge_auto_review:1319472
vsc_wsm_c:1340633
eh853263:1355661
auto_mode_control:1359303

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions