C
C#11mo ago
MileHDev

❔ Renaming project / solution issues (c# dev kit)

I renamed every file and every reference and when I tried debugging it couldn't find the project. Somehow it's still looking for the old name but I've done a text search for the old name in the whole directory and I see nothing. What's the safe way of doing this?
9 Replies
Mayor McCheese
Mayor McCheese11mo ago
Use the cli tools is the safest way.
Mayor McCheese
Mayor McCheese11mo ago
dotnet remove reference command - .NET CLI
The dotnet remove reference command provides a convenient option to remove project to project references.
Mayor McCheese
Mayor McCheese11mo ago
dotnet sln command - .NET CLI
The dotnet-sln command provides a convenient option to add, remove, and list projects in a solution file.
Mayor McCheese
Mayor McCheese11mo ago
Use the cli to remove things; do renames; then add everything back in/together
MileHDev
MileHDev11mo ago
@Mayor McCheese I'll give it a shot. Thanks
Accord
Accord11mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
MileHDev
MileHDev11mo ago
Unsuccessful The default debugging config setup by dev kit doesn't work after the rename then whe nI try to create anothjer it says there's no c# proj in the dir, app ran fine in vs though
Mayor McCheese
Mayor McCheese11mo ago
It's probably more effort then it's worth; create new project structure in a new location and copy files then.
Accord
Accord11mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.