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.

 


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.




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.

Posted On: January 12, 2022 0:11:03 AM


For peering opportunity Autonomouse System Number: AS401345 Custom Software Development at ErnesTech Email Address[email protected]