Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open axaml Designer make a project build fail in Visual Studio 2022 #438

Open
afluegge opened this issue Jan 21, 2024 · 3 comments
Open
Labels

Comments

@afluegge
Copy link

Describe the bug

When the axaml Designer is open at least once and I try to build the project, the build fails.

To Reproduce

Steps to reproduce the behavior:

  1. Open any axaml file to start the Designer
  2. Start a build
  3. After some time the build fails:
Error MSB3027: Could not copy "obj\Debug\net8.0\MyProject.dll" to "bin\Debug\net8.0\MyProject.dll". Exceeded retry count of 10. Failed. The file is locked by: ".NET Host (9652)" (4735, 6)

Expected behavior

The build just goes through....

Environment

  • OS: Windows 11
  • Avalonia-Version: 11.0.7
  • Visual Studio 2022 (17.8.4)
@afluegge afluegge added the bug label Jan 21, 2024
@timunie timunie transferred this issue from AvaloniaUI/Avalonia Jan 22, 2024
@OmarResponsival
Copy link

Any updates on this? It's really frustrating to have to make sure to close all axaml files before running/building the project.... could we at least get an option to disable the preview of the designer? I'm assuming that's what causes the build issues...

@afluegge
Copy link
Author

Latest findings: when ReSharper build is enabled the described problem exists. When deactivating ReSharper build and use the default Microsoft build the problem does not exist. This is when using the latest Avalonia versions.

@OmarResponsival
Copy link

Latest findings: when ReSharper build is enabled the described problem exists. When deactivating ReSharper build and use the default Microsoft build the problem does not exist. This is when using the latest Avalonia versions.

Thank you for the update, that's really helpful as I do have ReSharper build enabled. I will disable it, I rather not have to close designer windows than have a nice visual of the build. 👍🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants