Visual Studio 2022 Blocks itself on Build when running without debugging

Sam Talbot 1 Reputation point
2022-01-12T00:51:44.84+00:00

Even when running VS as an admin, I'm getting errors when trying to build when "start without debugging" is going on.

I used to be able to do this for the last several versions of VS (and still can in VS 2019), so I don't understand why this functionality is broken.

A little more background:
I have a solution with 3 parts: a blazor server web project, a class library project, and a webapi project.
I have set "multiple startup projects" and selected "start" for both the web api and blazor server.
Then I press control + F5 to get it to "start without debugging"
All is working well until I go to make a few changes (start building stuff in the application - adding blazor components/pages, etc. Then try to rebuild.
During the rebuild, I'll get the message: MSB3021 (The process cannot access the file 'bin\debug...' because it is being used by another process.

I've turned off hot reload, it still behaves this way.

What am I doing wrong.

Developer technologies Visual Studio Debugging
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.