❔ 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
Use the cli tools is the safest way.
dotnet remove reference command - .NET CLI
The dotnet remove reference command provides a convenient option to remove project to project references.
dotnet sln command - .NET CLI
The dotnet-sln command provides a convenient option to add, remove, and list projects in a solution file.
Use the cli to remove things; do renames; then add everything back in/together
@Mayor McCheese I'll give it a shot. Thanks
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.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
It's probably more effort then it's worth; create new project structure in a new location and copy files then.
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.