I’m using the standard Unity .gitignore file, but I have two problems:
everytime I run the game Unity generates/updates a build_info file and a .csproj file.
I see csproj even is already in the ignore, but yet Visual Studio wants me to push this every time.
What am I doing wrong?
# This .gitignore file should be placed at the root of your Unity project directory # # Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore # /[Ll]ibrary/ /
emp/ /[Oo]bj/ /[Bb]uild/ /[Bb]uilds/ /[Ll]ogs/ /[Uu]ser[Ss]ettings/ # MemoryCaptures can get excessive in size. # They also could contain extremely sensitive data /[Mm]emoryCaptures/ # Asset meta data should only be ignored when the corresponding asset is also ignored !/[Aa]ssets/**/*.meta # Uncomment this line if you wish to ignore the asset store tools plugin # /[Aa]ssets/AssetStoreTools* # Autogenerated Jetbrains Rider plugin /[Aa]ssets/Plugins/Editor/JetBrains* # Visual Studio cache directory .vs/ # Gradle cache directory .gradle/ # Autogenerated VS/MD/Consulo solution and project files ExportedObj/ .consulo/ *.csproj *.unityproj *.sln *.suo *.tmp *.user *.userprefs *.pidb *.booproj *.svd *.pdb *.mdb *.opendb *.VC.db # Unity3D generated meta files *.pidb.meta *.pdb.meta *.mdb.meta # Unity3D generated file on crash reports sysinfo.txt # Builds *.apk *.unitypackage # Crashlytics generated file crashlytics-build.properties # Ignore buildinfo file /Assets/StreamingAssets/build_info /Assets/StreamingAssets/build_info.meta For the last two lines which contain the build_info file, I tried both with and without .txt. The info I found on Google was to include .txt (which doesn't work) so I also tried without because Windows Explorer doesn't show the extension. (also without luck) I was suggested to right click -> ignore the file in Visual Studio in the Team Explorer tab before pushing. But this ignore option is not available for this file. (it is if I try it on a .png) Any suggestions?