Skip to content

Commit 8fbf270

Browse files
committed
Update VisualStudio.gitignore
Fixed pattern for excluding nuget packages so that it works both for top level package folder and for any lower level package folders. Re-include patterns fixed the same way.
1 parent c70e357 commit 8fbf270

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

VisualStudio.gitignore

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,19 @@ publish/
132132

133133
# NuGet Packages
134134
packages/*
135+
**/packages/*
135136
*.nupkg
136-
## TODO: If the tool you use requires repositories.config
137-
## uncomment the next line
137+
## TODO: If the tool you use *requires* repositories.config, (note that this file is normally regenerated so you should not need it in source control)
138+
## uncomment the next two lines
138139
#!packages/repositories.config
140+
#!**/packages/repositories.config
139141

140142
# Enable "build/" folder in the NuGet Packages folder since
141143
# NuGet packages use it for MSBuild targets.
142-
# This line needs to be after the ignore of the build folder
144+
# These two line needs to be after the ignore of the build folder
143145
# (and the packages folder if the line above has been uncommented)
144146
!packages/build/
147+
!**/packages/build/
145148

146149
# Windows Azure Build Output
147150
csx/

0 commit comments

Comments
 (0)