AvaloniaVSCode icon indicating copy to clipboard operation
AvaloniaVSCode copied to clipboard

bug (Unable to generate executable)

Open Sjshi763 opened this issue 6 months ago • 2 comments

Describe the bug

When generating an executable file, I was prompted that the .axaml file being changed was occupied by the .NET Host, and troubleshooting found that closing the side real-time window solved the problem.

Image

To Reproduce

Open the .axaml file, make changes, click F5 to start generating, reported an error occupied (.NET Host) troubleshooting found to be the process of vscode .

Avalonia for VS Code

0.0.32

Avalonia version

11.3.0

VS Code version

1.101.0

Relevant log output

dotnet build b:\XIANGMU\ATC4-for-RJOO-problem\ATC4-HQ-UI\ATC4-HQ-UI.csproj /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary /p:Configuration=Debug /p:Platform="AnyCPU" 
C# extension build result service is available.
  正在确定要还原的项目…
  所有项目均是最新的,无法还原。
C:\Program Files\dotnet\sdk\9.0.300\Microsoft.Common.CurrentVersion.targets(4917,5): warning MSB3026: 无法将“obj\Debug\net9.0\ATC4-HQ-UI.dll”复制到“bin\Debug\net9.0\ATC4-HQ-UI.dll”。1000 毫秒后将开始第 1 次重试。The process cannot access the file 'b:\XIANGMU\ATC4-for-RJOO-problem\ATC4-HQ-UI\bin\Debug\net9.0\ATC4-HQ-UI.dll' because it is being used by another process. 文件被“.NET Host (31492)”锁定。 [b:\XIANGMU\ATC4-for-RJOO-problem\ATC4-HQ-UI\ATC4-HQ-UI.csproj]
C:\Program Files\dotnet\sdk\9.0.300\Microsoft.Common.CurrentVersion.targets(4917,5): warning MSB3026: 无法将“obj\Debug\net9.0\ATC4-HQ-UI.dll”复制到“bin\Debug\net9.0\ATC4-HQ-UI.dll”。1000 毫秒后将开始第 2 次重试。The process cannot access the file 'b:\XIANGMU\ATC4-for-RJOO-problem\ATC4-HQ-UI\bin\Debug\net9.0\ATC4-HQ-UI.dll' because it is being used by another process. 文件被“.NET Host (31492)”锁定。 [b:\XIANGMU\ATC4-for-RJOO-problem\ATC4-HQ-UI\ATC4-HQ-UI.csproj]
C:\Program Files\dotnet\sdk\9.0.300\Microsoft.Common.CurrentVersion.targets(4917,5): warning MSB3026: 无法将“obj\Debug\net9.0\ATC4-HQ-UI.dll”复制到“bin\Debug\net9.0\ATC4-HQ-UI.dll”。1000 毫秒后将开始第 3 次重试。The process cannot access the file 'b:\XIANGMU\ATC4-for-RJOO-problem\ATC4-HQ-UI\bin\Debug\net9.0\ATC4-HQ-UI.dll' because it is being used by another process. 文件被“.NET Host (31492)”锁定。 [b:\XIANGMU\ATC4-for-RJOO-problem\ATC4-HQ-UI\ATC4-HQ-UI.csproj]
C:\Program Files\dotnet\sdk\9.0.300\Microsoft.Common.CurrentVersion.targets(4917,5): warning MSB3026: 无法将“obj\Debug\net9.0\ATC4-HQ-UI.dll”复制到“bin\Debug\net9.0\ATC4-HQ-UI.dll”。1000 毫秒后将开始第 4 次重试。The process cannot access the file 'b:\XIANGMU\ATC4-for-RJOO-problem\ATC4-HQ-UI\bin\Debug\net9.0\ATC4-HQ-UI.dll' because it is being used by another process. 文件被“.NET Host (31492)”锁定。 [b:\XIANGMU\ATC4-for-RJOO-problem\ATC4-HQ-UI\ATC4-HQ-UI.csproj]
C:\Program Files\dotnet\sdk\9.0.300\Microsoft.Common.CurrentVersion.targets(4917,5): warning MSB3026: 无法将“obj\Debug\net9.0\ATC4-HQ-UI.dll”复制到“bin\Debug\net9.0\ATC4-HQ-UI.dll”。1000 毫秒后将开始第 5 次重试。The process cannot access the file 'b:\XIANGMU\ATC4-for-RJOO-problem\ATC4-HQ-UI\bin\Debug\net9.0\ATC4-HQ-UI.dll' because it is being used by another process. 文件被“.NET Host (31492)”锁定。 [b:\XIANGMU\ATC4-for-RJOO-problem\ATC4-HQ-UI\ATC4-HQ-UI.csproj]
C:\Program Files\dotnet\sdk\9.0.300\Microsoft.Common.CurrentVersion.targets(4917,5): warning MSB3026: 无法将“obj\Debug\net9.0\ATC4-HQ-UI.dll”复制到“bin\Debug\net9.0\ATC4-HQ-UI.dll”。1000 毫秒后将开始第 6 次重试。The process cannot access the file 'b:\XIANGMU\ATC4-for-RJOO-problem\ATC4-HQ-UI\bin\Debug\net9.0\ATC4-HQ-UI.dll' because it is being used by another process. 文件被“.NET Host (31492)”锁定。 [b:\XIANGMU\ATC4-for-RJOO-problem\ATC4-HQ-UI\ATC4-HQ-UI.csproj]
C:\Program Files\dotnet\sdk\9.0.300\Microsoft.Common.CurrentVersion.targets(4917,5): warning MSB3026: 无法将“obj\Debug\net9.0\ATC4-HQ-UI.dll”复制到“bin\Debug\net9.0\ATC4-HQ-UI.dll”。1000 毫秒后将开始第 7 次重试。The process cannot access the file 'b:\XIANGMU\ATC4-for-RJOO-problem\ATC4-HQ-UI\bin\Debug\net9.0\ATC4-HQ-UI.dll' because it is being used by another process. 文件被“.NET Host (31492)”锁定。 [b:\XIANGMU\ATC4-for-RJOO-problem\ATC4-HQ-UI\ATC4-HQ-UI.csproj]

Additional context

No response

Sjshi763 avatar Jun 13 '25 13:06 Sjshi763

I'll try to do it myself.

Sjshi763 avatar Jun 29 '25 09:06 Sjshi763

No, that would move some critical code, and I'm too new to do that.

Sjshi763 avatar Jun 29 '25 10:06 Sjshi763