C
C#8mo ago
Trapyy

✅ Problem with Visual Studio

So, i had a code that was working perfectly in Visual Studio, i was going to copy it and place in another folder for backup, but i accidentally used "Cut" and removed from the correct folder, i quickly pressed CTRL + Z and the files were back, but now its not working at all, there is like 100+ errors
6 Replies
jcotton42
jcotton428mo ago
share the errors could also be a case of $vsdrunk
MODiX
MODiX8mo ago
* close VS * remove the hidden folder .vs * remove all bin and obj folder next to each csproj (DO NOT TOUCH THE .git FOLDER OR WHAT'S INSIDE) * restart vs
Trapyy
TrapyyOP8mo ago
the folder i moved the files to were in the same folder as my main files, so the errors was because of ambiguity :YEP: im dumb thanks for the help either way
jcotton42
jcotton428mo ago
also for code revisions, you should be using something like git $git @Trapyy
MODiX
MODiX8mo ago
interactive teaching: https://learngitbranching.js.org/ msft learn course: https://learn.microsoft.com/en-us/training/modules/intro-to-git/ git init initializes the repository dotnet new gitignore adds a .gitignore file git add . starts tracking all files git commit -m "[message]" creates a commit git remote add origin [url] adds a remote repository git push -u origin main first push, sets the remote as upstream git push all pushes after that can be just this Git cheat sheet
Trapyy
TrapyyOP8mo ago
yeah, i didnt learn it yet
Want results from more Discord servers?
Add your server