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.

 


Please Login to see the rest of the answer

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.

Write an Article
If you log in, you will be notified when someone leaves a comment.

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

Jack said:

It sounds like your project folder contains both the sln and the csproj file extentions. Delete the sln and start your app from the terminal.


© 2022 - ErnesTech - Privacy