Questions: When building an application in Visual Studio, the Build does not complete. Visual Studio is stuck on Building.
Please Login to see the rest of the answer
Answer: When Visual Studio does not complete building the Application, sometimes it won't give you any errors. This is due to the Application having more than one csproj.user file. In order to remove one file so that you only have one csproj.user, look at the dates the files were created then delete the old one.
- the Best way to see errors after Failed Build is to Build with Dot Net CLI
- Open your Console or Powershell or Windows Terminal
- cd into the Project Folder and run dotnet build
- this will show you the errors of why the Build Failed. Visual Studio won't show you the errors.
[NB] MSBUILD: error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file.
- A quick fix to this problem is Restarting Visual Studio and then loading all the projects you need to build