Reputation: 2471
I'm using VS 2019. By default most if not all of the ASP.NET Core web projects use IIS Express as the host under Debug settings and launchSettings.json
.
What I tend to do, especially for web API projects, is to delete the IIS Express profile and instead use the "Project" profile/launch option.
This simply opens a Kestrel console window upon execution, and I like it how logs etc are shown in the same console for easy diagnostics.
But the problem is, if any code is changed, and I re-build the solution/project (Ctrl+B, Ctrl+Shift+B,Ctrl + F5 etc etc), I get the "Could not copy..." messages in Visual Studio, till I manually close this Kestrel console window.
This is not an issue with the IIS Express profile at all.
So how do I make it such that I don't have to manually close that Kestrel window each rebuild? This seems like a natural/easy thing to do but I just can't find the options.
Upvotes: 2
Views: 1780
Reputation: 3646
You mean this?
Tools → Options → Debugging → General → Automatically close the console when debugging stops
Upvotes: 2