FEAT: upgrade to slnx solution file format#98
Conversation
|
Regarding the issue you were having with the Solution Explorer, I'm betting on it being an issue on the solution cache VS creates locally... In some environments (it happened to me in my work laptop) I've seen similar issues where VS mixes things up in the Solution Explorer and when you close VS, delete the .vs folder and reload the solution, everything goes back to normal. Perhaps you ought to give it a try if you haven't already. I have never had an issue with Monaco regarding this, hence my doubt about this being something else than a local issue. |
Unfortunately I've tried many things including those suggestions to fix it locally and none have worked. I do agree it's an issue local to my installation of VS2022 and for reference the project opens with the That being said, I think it's good that we have the newer simpler |
Of course, definitely, I prefer having the new .slnx format because it will make much simpler the maintenance of the solution file... I just wanted to clarify that this issue is not inherent to Monaco but rather the result of some local issue, probably a bug in VS (perhaps worth to try with the new VS 2026 Insiders version?), and that this PR is not only based on this issue but in an additional .NET feature to support. |
Description
Upgrade the solution file format to the newer simpler
.slnxformat.Note: the addition of the
SpecialCustomOperationswithin thetemplate.jsonis only necessary because the dotnet templating tools do not yet fully support the.slnxfile format. This solves that issue for now but can likely be removed once .NET 10 is released.Related Issue
Closes #91
Motivation and Context
There is a newer format for solution files that is overall much simpler and easier to understand.
Additionally, using the old
.slnformat opening the template whilst the.slnfile included the template flags meant that the project opened incorrectly. The new.slnxformat seems to fully resolve the issue for me so I may also consider this a kind of bug fix.Screenshots
Before, showing opening the solution with the
.slnfile format and the broken solution explorer.After, showing opening the solution with the
.slnxfile format.How Has This Been Tested?
Creating new projects using various flags to confirm new solution file includes the required project references.
Types of changes
Checklist: