Skip to content

Commit 467ef6d

Browse files
committed
Explain how to migrate sln to slnx
1 parent ca9f8e9 commit 467ef6d

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/prompts/template-release-notes.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,13 @@ This file is referenced by update-library-template.prompt.md and should remain i
88
Never leave a Library.slnx file in the repository.
99
You might even see one there even though this particular merge didn't bring it in.
1010
This can be an artifact of having renamed Library.sln to Library.slnx in the template repo, but ultimately the receiving repo should have only one .sln or .slnx file, with a better name than `Library`.
11-
If you can confidently do so, go ahead and migrate their `.sln` to an `.slnx` with their original name.
12-
If you can't, just delete `Library.slnx` anyway.
11+
Delete any `Library.slnx` that you see.
12+
Migrate an `.sln` in the repo root to `.slnx` using this command:
13+
14+
```ps1
15+
dotnet solution EXISTING.sln migrate
16+
```
17+
18+
This will create an EXISTING.slnx file. `git add` that file, then `git rm` the old `.sln` file.
19+
Sometimes a repo will reference the sln filename in a script or doc somewhere.
20+
Search the repo for such references and update them to the slnx file.

0 commit comments

Comments
 (0)