Skip to content

BUG #9400

@timwu-icash

Description

@timwu-icash

Type: Bug

Issue Description

Steps to Reproduce

Expected Behavior

Actual Behavior

Extension version: 2.140.8
VS Code version: Code 1.123.0 (6a44c352bd24569c417e530095901b649960f9f8, 2026-06-03T11:29:03+02:00)
OS version: Windows_NT x64 10.0.26200
Modes:

Logs

C# log

Details
2026-06-08 15:16:23.454 [info] Locating .NET runtime version 10.0.5
2026-06-08 15:16:23.609 [info] Dotnet path: C:\Program Files\dotnet\dotnet.exe
2026-06-08 15:16:23.609 [info] Activating C# + C# Dev Kit...
2026-06-08 15:16:23.960 [info] info: Program[0]
2026-06-08 15:16:23.960 [info]       Server started with process ID 10836
2026-06-08 15:16:25.090 [info] [Program] Language server initialized
2026-06-08 15:16:25.092 [info] [Program] Monitoring client process 7932 for exit
2026-06-08 15:16:25.776 [info] [initialized] [Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.FileBasedProgramsEntryPointDiscovery] Finished discovery in 'c:\Users\s7514\source\repos\SmartExpoIoT' in 17 milliseconds
2026-06-08 15:16:32.200 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] 由 C# 開發人員套件載入的專案 C:\Users\s7514\source\repos\SmartExpoIoT\GoogleSheetsAPI\GoogleSheetsAPI.csproj
2026-06-08 15:16:32.223 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] 由 C# 開發人員套件載入的專案 C:\Users\s7514\source\repos\SmartExpoIoT\SmartExpoIoT.UnitTest\SmartExpoIoT.UnitTest.csproj
2026-06-08 15:16:32.227 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] 由 C# 開發人員套件載入的專案 C:\Users\s7514\source\repos\SmartExpoIoT\Sixdots.Library\Sixdots.Library.csproj
2026-06-08 15:16:32.230 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] 由 C# 開發人員套件載入的專案 C:\Users\s7514\source\repos\SmartExpoIoT\SmartExpoIoT\SmartExpoIoT.csproj
2026-06-08 15:16:32.234 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] 由 C# 開發人員套件載入的專案 C:\Users\s7514\source\repos\SmartExpoIoT\SmartExpoIoT.Library\SmartExpoIoT.Library.csproj
2026-06-08 15:46:15.044 [error] Request textDocument/diagnostic failed.
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Shared/vue_component/HeaderFunction_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Shared/vue_component/HeaderFunction_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:46:15.045 [error] Document pull failed for text document file:///c%3A/Users/s7514/source/repos/SmartExpoIoT/SmartExpoIoT/Views/Shared/vue-component/HeaderFunction.cshtml
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Shared/vue_component/HeaderFunction_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Shared/vue_component/HeaderFunction_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:46:15.847 [error] Request textDocument/codeLens failed.
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Shared/vue_component/HeaderFunction_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Shared/vue_component/HeaderFunction_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:46:15.855 [error] Request textDocument/inlayHint failed.
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Shared/vue_component/HeaderFunction_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Shared/vue_component/HeaderFunction_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:46:15.857 [error] Request textDocument/semanticTokens/range failed.
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Shared/vue_component/HeaderFunction_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Shared/vue_component/HeaderFunction_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:46:15.860 [error] Request textDocument/inlayHint failed.
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Shared/vue_component/HeaderFunction_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Shared/vue_component/HeaderFunction_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:46:16.831 [error] Request textDocument/documentSymbol failed.
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Shared/vue_component/HeaderFunction_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Shared/vue_component/HeaderFunction_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:46:16.834 [error] Request textDocument/documentSymbol failed.
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Shared/vue_component/HeaderFunction_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Shared/vue_component/HeaderFunction_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:46:17.899 [error] Request textDocument/codeLens failed.
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Shared/vue_component/HeaderFunction_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Shared/vue_component/HeaderFunction_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:46:17.902 [error] Request textDocument/semanticTokens/range failed.
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Shared/vue_component/HeaderFunction_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Shared/vue_component/HeaderFunction_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:56:30.868 [error] Request textDocument/diagnostic failed.
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:56:30.868 [error] Document pull failed for text document file:///c%3A/Users/s7514/source/repos/SmartExpoIoT/SmartExpoIoT/Views/Events/Index.cshtml
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:56:30.869 [error] Request textDocument/codeAction failed.
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:56:30.871 [error] Request textDocument/documentSymbol failed.
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:56:30.955 [error] Request textDocument/inlayHint failed.
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:56:31.042 [error] Request textDocument/codeAction failed.
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:56:31.093 [error] Request textDocument/semanticTokens/range failed.
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:56:31.136 [error] Request textDocument/codeLens failed.
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:56:31.179 [error] Request textDocument/documentSymbol failed.
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:56:31.497 [error] Request textDocument/inlayHint failed.
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:56:31.508 [error] Request textDocument/semanticTokens/range failed.
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:56:32.979 [error] Request textDocument/inlayHint failed.
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:56:33.036 [error] Request textDocument/semanticTokens/range failed.
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (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-08 15:56:33.125 [error] Request textDocument/codeLens failed.
  Message: 專案 'SmartExpoIoT' 的 Razor 原始碼產生器未產生主機輸出: warning CS8785: 產生器 'RazorSourceGenerator' 無法產生來源。其不會提供給輸出,並可能導致編譯錯誤。例外狀況的類型為 'ArgumentException',訊息為 '新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (Parameter 'hintName')'。
System.ArgumentException: 新增來源檔案的 hintName 'Views/Frontend/_Footer_AttendeeCheckOut_Mobile_cshtml.g.cs' 在產生器中必須是唯一的。 (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 追蹤記錄 log

Details

Environment Information

VSCode version: 1.123.0
C# Extension: 2.140.8
Using OmniSharp: false

Dotnet Information .NET SDK: Version: 10.0.300 Commit: caa81fa497 Workload version: 10.0.300-manifests.e0989437 MSBuild version: 18.6.3+caa81fa49

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.300\

.NET workloads installed:
There are no installed workloads to display.
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.8
Architecture: x64
Commit: 94ea82652c

.NET SDKs installed:
2.2.207 [C:\Program Files\dotnet\sdk]
6.0.401 [C:\Program Files\dotnet\sdk]
9.0.305 [C:\Program Files\dotnet\sdk]
10.0.300 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.All 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.27 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.27 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.16 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.27 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.27 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.27 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.16 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 8.0.27 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.16 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 10.0.8 [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_SYSTEM_GLOBALIZATION_INVARIANT [false]

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
bootstrap5-snippets HansUXdev 1.2.5 hansuxdev.bootstrap5-snippets-1.2.5
chatgpt openai 26.602.40724 openai.chatgpt-26.602.40724-win32-x64
claude-code Anthropic 2.1.168 anthropic.claude-code-2.1.168-win32-x64
claude-dev saoudrizwan 3.88.1 saoudrizwan.claude-dev-3.88.1
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
debugpy ms-python 2026.6.0 ms-python.debugpy-2026.6.0-win32-x64
isort ms-python 2026.6.0 ms-python.isort-2026.6.0
jquerysnippets donjayamanne 0.0.1 donjayamanne.jquerysnippets-0.0.1
jupyter ms-toolsai 2025.9.1 ms-toolsai.jupyter-2025.9.1-win32-x64
jupyter-keymap ms-toolsai 1.1.2 ms-toolsai.jupyter-keymap-1.1.2
jupyter-renderers ms-toolsai 1.3.0 ms-toolsai.jupyter-renderers-1.3.0
LiveServer ritwickdey 5.7.10 ritwickdey.liveserver-5.7.10
minify HookyQR 0.4.3 hookyqr.minify-0.4.3
powershell ms-vscode 2025.4.0 ms-vscode.powershell-2025.4.0
python ms-python 2026.4.0 ms-python.python-2026.4.0-win32-x64
rainbow-csv mechatroner 3.24.1 mechatroner.rainbow-csv-3.24.1
remote-containers ms-vscode-remote 0.459.1 ms-vscode-remote.remote-containers-0.459.1
remote-wsl ms-vscode-remote 0.104.3 ms-vscode-remote.remote-wsl-0.104.3
sql-developer Oracle 26.1.2 oracle.sql-developer-26.1.2-win32-x64
volar Vue 3.3.3 vue.volar-3.3.3
vscode-chat-customizations-evaluations ms-vscode 1.0.6 ms-vscode.vscode-chat-customizations-evaluations-1.0.6
vscode-dotnet-runtime ms-dotnettools 3.0.2 ms-dotnettools.vscode-dotnet-runtime-3.0.2
vscode-html-css ecmel 2.0.14 ecmel.vscode-html-css-2.0.14
vscode-json-editor nickdemayo 0.3.0 nickdemayo.vscode-json-editor-0.3.0
vscode-jupyter-cell-tags ms-toolsai 0.1.9 ms-toolsai.vscode-jupyter-cell-tags-0.1.9
vscode-jupyter-slideshow ms-toolsai 0.1.6 ms-toolsai.vscode-jupyter-slideshow-0.1.6
vscode-language-pack-zh-hant MS-CEINTL 1.123.2026060618 ms-ceintl.vscode-language-pack-zh-hant-1.123.2026060618
vscode-pylance ms-python 2026.2.1 ms-python.vscode-pylance-2026.2.1
vscode-python-envs ms-python 1.30.0 ms-python.vscode-python-envs-1.30.0-win32-x64
C# Settings
Setting Value
preferCSharpExtension false
compilerDiagnosticScope openFiles
analyzerDiagnosticScope openFiles
enableXamlTools true
useServerGC true
System Info
Item Value
CPUs AMD Ryzen 7 5800H with Radeon Graphics (16 x 3194)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x1002, DEVICE=0x1638 [AMD Radeon(TM) Graphics], DRIVER_VENDOR=AMD, DRIVER_VERSION=31.0.12044.47003 ACTIVE
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8328
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) 13.87GB (4.28GB free)
Process Argv --folder-uri file:///c%3A/Users/s7514/source/repos/SmartExpoIoT --crash-reporter-id 52075276-adfe-4dd1-9f3d-2f9f7a3d5236
Screen Reader no
VM 0%
A/B Experiments
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
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ec5jj548:31422691
cp_cls_t_966_ss:31526232
inlinechat_v2_hd992725:31505030
4je02754:31466945
c3h7c220:31478652
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
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
89g7j272:31518289
7e187181:31503455
i2gc6536:31499202
52612955:31516516
ghj88844:31499326
h08i8180_copy:31475368
ec1eg703:31520046
ddid_c:31478207
hmra_i5g22:31518061
getcmakediagnosticsoff:31489825
7df3h592:31512476
pro_large_t:31499376
cp_cls_t_1082:31516087
logging_enabled_new:31498466
db5d2638:31499441
jb_cp_cls_t_632:31524805
b1ei0813:31506238
56dj4588:31512888
32d76977:31512328
ha629193:31508444
cdk-lw-on:31524445
nes-charagree-ctrl:31521373
2cfga817_c:31522397
jh5f2457_c:31515489
prpt_ctrl:31518467
61138546:31518536
gf14b233:31526830

Metadata

Metadata

Assignees

No one assigned

    Labels

    C#DKThe C#DK extension is installeduntriaged

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions