Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Proper gitignore for HoloLens project (includes UWP folder)
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/[Uu]WP/
/Assets/AssetStoreTools*
# Autogenerated VS/MD solution and project files
ExportedObj/
*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
# Unity3D generated meta files
*.pidb.meta
# Unity3D Generated File On Crash Reports
sysinfo.txt
@HjoshM

This comment has been minimized.

Copy link

HjoshM commented Aug 10, 2017

I have put together a larger .gitignore file for VR and AR HoloLens projects that use Unity3D in C# and build via VisualStudio2017.

So, I wonder if you could please take a look and see if the following really is complete without any mistakes or redundant bits, and could then be posted here as a reference:

App/
/App/
[Uu]WP/
/[Uu]WP/

[Ll]ibrary/
/[Ll]ibrary/
[Tt]emp/
/[Tt]emp/
*.tmp
[Oo]bj/
/[Oo]bj/
[Bb]in/
/[Bb]in/

[Bb]uild/
/[Bb]uild/
[Bb]uilds/
/[Bb]uilds/
[Bb]uild/*
/[Bb]uild/*
[Bb]uild-*
/[Bb]uild-*
.[Bb]uilds

Installer/
UnityGenerated/
*.unityproj
*.unitypackage
UnityVS*
*.apk
.consulo/

[Ee]xpress
[Dd]ebug/
[Rr]elease/
_ReSharper*

*_i.c
*_p.c
*.ilk
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.dbmdl
*.vspscc
*.dotCover
*.ruleset

*.psess
*.vsp
.vs/
*.svd
*.suo
*.sln
/*.sln
*.sln.docstates
*.idb
*.pidb
*.pidb.meta
*.opendb
*.user
packages
packages.config
/*.csproj
*.csproj
*.booproj
*.userprefs
ExportedObj/
.editorconfig
.vscode/
.vscode/*
Assets/VSCode/*
Assets/VSCode.meta
Assets/Plugins/Editor/VSCode.cs
Assets/Plugins/Editor/VSCode.cs.meta
Assembly-CSharp.csproj

.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trash
.Trashes
#Icon?
ehthumbs.db
Thumbs.db
Thumbs.db.meta
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
sysinfo.txt
Desktop.ini
TestResults
*.Cache
ClientBin
stylecop.*
~$*

/Assets/AssetStoreTools*
WSATestCertificate.pfx
WSATestCertificate.pfx.meta

@devhed

This comment has been minimized.

Copy link

devhed commented Nov 3, 2017

@HjoshM can confirm that .gitignore worked flawlessly for me... thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.