Skip to content

Commit 6bba361

Browse files
author
Kraig Brockschmidt
authored
Merge pull request NuGet#628 from johntiger1/patch-1
Add example of multiple -exclude
2 parents 55d3cac + 9d28004 commit 6bba361

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/Tools/cli-ref-pack.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ where `<nuspecPath>` and `<projectPath>` specify the `.nuspec` or project file,
3838
| --- | --- |
3939
| BasePath | Sets the base path of the files defined in the `.nuspec` file. |
4040
| Build | Specifies that the project should be built before building the package. |
41-
| Exclude | Specifies one or more wildcard patterns to exclude when creating a package. |
41+
| Exclude | Specifies one or more wildcard patterns to exclude when creating a package. To specify more than one pattern, repeat the -Exclude flag. See example below. |
4242
| ExcludeEmptyDirectories | Prevents inclusion of empty directories when building the package. |
4343
| ForceEnglishOutput | *(3.5+)* Forces nuget.exe to run using an invariant, English-based culture. |
4444
| Help | Displays help information for the command. |
@@ -96,4 +96,6 @@ nuget pack foo.csproj -Build -Symbols -Properties owners=janedoe,xiaop;version="
9696
nuget pack foo.nuspec -Version 2.1.0
9797
9898
nuget pack foo.nuspec -Version 1.0.0 -MinClientVersion 2.5
99+
100+
nuget pack Package.nuspec -exclude "*.exe" -exclude "*.bat"
99101
```

0 commit comments

Comments
 (0)