While working with the Git repository, we need to exclude .dll, and .vs folder files because these will get generated as new files for every build. So, we should not include these files in the Git repository while committing changes. to exclude these files, add a .gitignore file to your repository and add file names to it as shown below.
.gitignore file
*.sln.docstates
*.suo
*.user
*.userosscache
*.userprefs
*.usertasks
.vs/
.vscode/*