MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file



Question: How do you resolve the issue: MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file.

 

Answer: This error might cause Visual Studio to really take long when Building the Application. In order to resolve this issue, take a look into your Project Folder and see if you have two .csproj.user files. If you have two YourApplicationName.csproj.user then it will be safe to say, delete one file and then try again building your application from the Command Prompt.

  1. Open up Powershell or Windows Terminal
  2. cd into your Applications Folder
  3. run "dotnet build" inside the application folder.
Visual Studio 2019 taking long to build App Technology published
Was this page helpful?
Yes Yes! this solution to the problem was helpful. No No! this solution to the problem was not helpful.. Leave ErnesTech Feedback.Feedback

Other users would like to know if this solution helped you.

Your Session is Ending
Login to Continue


© 2021 - ErnesTech - Privacy