build fails while editing with previewer open
Opened this issue · 0 comments
Kefaku commented
Describe the bug
For me, trying to build a default/unmodified avalonia.app project in any way will always fail after making some changes to UI and keeping the previewer open.
To Reproduce
- Open previewer
- Make any changes to any axaml file.
- Save + wait for previewer to refresh.
- Try to build project. -> Fails
Avalonia for VS Code
v0.0.31
Avalonia version
11.0.2
VS Code version
1.86.2
Relevant log output
The file is locked by ".NET Host (17644)".
C:\Program Files\dotnet\sdk\8.0.200\Microsoft.Common.CurrentVersion.targets(4790,5): error MSB3021:
The file 'obj\Debug\net8.0\loop.dll' cannot be copied to 'bin\Debug\net8.0\loop.dll'.
The process cannot access the file '\bin\Debug\net8.0\loop.dll' because it is being used by another process.
Additional context
No response