Solution file is not up-to-date #662

Closed
opened 2026-04-30 07:40:05 +00:00 by a24timsv · 3 comments
Collaborator

The solution file is hard to keep updated since we constantly add new project files that aren't added automatically (or manually for that matter).

We need a way of keeping the solution file updated with minimum hassle.

The solution file is hard to keep updated since we constantly add new project files that aren't added automatically (or manually for that matter). We need a way of keeping the solution file updated with minimum hassle.
Collaborator

@a24timsv can you clarify if you mean the files like BoundlessFlowCampus2K?

@a24timsv can you clarify if you mean the files like BoundlessFlowCampus2K?
Author
Collaborator

Sure, the solution file for the project, called BoundlessFlowCampus2K.slnx, is essentially a collection of sub-project that the entire project consists of. It should point to, in our case, all the existing .csproj files we have. See example below:

<Solution>
  <Folder Name="/generateMockup/" />
  <Folder Name="/generateMockup/parkingMockup/">
    <Project Path="generateMockup/parkingMockup/parkingApiMockup.Tests/parkingApiMockup.Tests.csproj" />
    <Project Path="generateMockup/parkingMockup/parkingApiMockup/ParkingApiMockup.csproj" />
  </Folder></Solution>

The problem is that this isn't updated automatically and must be done by typing a command for each new .csproj added, or by adding it manually by opening the file, or be scripted (as far as I know).

It really isn't an issue more than when you are in a file that isn't referenced in the solution file you get a little warning.
image
By limiting IntellSense it might be limiting some debugging, but that's about it.

Anyway, I think the best solution is to just script it by searching for all .csproj files and adding them to the solution file. But if someone has a better solution I'm all for it.

Sure, the solution file for the project, called BoundlessFlowCampus2K.slnx, is essentially a collection of sub-project that the entire project consists of. It should point to, in our case, all the existing .csproj files we have. See example below: ``` xml <Solution> <Folder Name="/generateMockup/" /> <Folder Name="/generateMockup/parkingMockup/"> <Project Path="generateMockup/parkingMockup/parkingApiMockup.Tests/parkingApiMockup.Tests.csproj" /> <Project Path="generateMockup/parkingMockup/parkingApiMockup/ParkingApiMockup.csproj" /> </Folder> … </Solution> ``` The problem is that this isn't updated automatically and must be done by typing a command for each new .csproj added, or by adding it manually by opening the file, or be scripted (as far as I know). It really isn't an issue more than when you are in a file that isn't referenced in the solution file you get a little warning. ![image](/attachments/e0fd63fa-b874-4235-b22d-c683793b9b21) By limiting IntellSense it might be limiting some debugging, but that's about it. Anyway, I think the best solution is to just script it by searching for all .csproj files and adding them to the solution file. But if someone has a better solution I'm all for it.
Collaborator

This has been fixed as an script. I close this issue

This has been fixed as an script. I close this issue
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Andras/BoundlessFlowCampus2K#662
No description provided.