✅ 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
share the errors
could also be a case of $vsdrunk
* 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 vsthe 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
also for code revisions, you should be using something like git
$git @Trapyy
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 sheetyeah, i didnt learn it yet