Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSBuild: Command Line Build error: Solution file error MSB5023: Error parsing the nested project section

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 MSBuild from the command line, I get the following error:-

Solution file error MSB5023: Error parsing the nested project section in solution file. A project with the GUID "{Some Project GUID}" is listed as being nested under project "{Some Solution Folder Project GUID}", but does not exist in the solution.

Now I've checked these two GUIDs over, and they exist, one as a project, the other as the solution folder that the project is nested under. There shouldn't be any problem.

Does anyone have a way to resolve this?

like image 281
Sean Holmesby Avatar asked Apr 21 '16 18:04

Sean Holmesby


1 Answers

I faced the same issue and managed to sort out:

  1. Opened .sln in NotePad and found Guids
  2. One of my projects wasn't closed ("EndProject" was missed)

Cheers, hope this can help anyone

like image 159
Denis Evseev Avatar answered Sep 23 '22 04:09

Denis Evseev