I have a solution which uses Solution Folders to split out the projects. In the Visual Studio IDE, the solution builds fine.
However when running the build using MSB
Due to a merge conflict, my solution file was trying to stick two projects in a solution folder that didn't exist anymore. the NestedProjects section near the bottom mentioned a Guid that was removed from the Project enumeration at the top.
It is possible you may also have an issue where the line could have gotten in here with a merge conflict where it wasn't deleted when a project was deleted. If you can't find any other references in your project with a global search of the GUID, try deleting the line in the .sln
file and rebuilding.
I faced the same issue and managed to sort out:
Cheers, hope this can help anyone
Or you can add a new file to the solution and save. This should rebuild the solution. After confirming the build is working fine, the file can be safely removed and saved.
It's probably answered already but I'd mention in steps to make it even easier to do.
Steps to fix: