Skip to content

Instantly share code, notes, and snippets.

@skarllot
Last active January 9, 2020 19:07
Show Gist options
  • Save skarllot/9a91f97c9b1f185defde07c00f247810 to your computer and use it in GitHub Desktop.
Save skarllot/9a91f97c9b1f185defde07c00f247810 to your computer and use it in GitHub Desktop.
Change generated NuSpec dependency 'exclude' and 'include'
IncludeAssets ExcludeAssets PrivateAssets Valid Include Exclude
null null null true Analyzers,Build
null Native null true Analyzers,Build,Native
Compile null null true Analyzers,Build,BuildTransitive,Native,Runtime
Compile;Runtime null null true Analyzers,Build,BuildTransitive,Native
All null None true All
All null Compile true Analyzers,Build,BuildTransitive,ContentFiles,Native,Runtime
All null Compile;Build true Analyzers,BuildTransitive,ContentFiles,Native,Runtime
All Native Compile;Build true Analyzers,BuildTransitive,ContentFiles,Runtime
All Native Native;Build true Analyzers,BuildTransitive,Compile,ContentFiles,Runtime
Compile Native Native;Build true Analyzers,Build,BuildTransitive,Native,Runtime
All All null false null null
Compile;Runtime All null false null null
null null All false null null

Reference: https://github.com/NuGet/NuGet.Client/blob/dev/test/NuGet.Core.FuncTests/Dotnet.Integration.Test/PackCommandTests.cs#L175-L187

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment