Skip to content

Instantly share code, notes, and snippets.

@BryanWilhite
Created January 5, 2016 22:11
Show Gist options
  • Save BryanWilhite/5c17a5957fc0ba06a5a4 to your computer and use it in GitHub Desktop.
Save BryanWilhite/5c17a5957fc0ba06a5a4 to your computer and use it in GitHub Desktop.
NuGet *.nuspec file using explicit <files/> element
<?xml version="1.0"?>
<package >
<metadata>
<id>MyProject</id>
<version>1.0.0</version>
<title>My Project</title>
<authors>[email protected]</authors>
<owners>[email protected]</owners>
<projectUrl>http://git-stash.myco.com/projects/CV/repos/myproject/browse</projectUrl>
<iconUrl>http://git-stash.myco.com/projects/CV/avatar.png?s=256</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>my amazing project</description>
<releaseNotes>This is the initial release.</releaseNotes>
<copyright>Copyright 2015 My Company</copyright>
<tags>tag1 tag2 tag3</tags>
</metadata>
<files>
<file src="bin\Release\net35\*.dll" target="lib/net35" />
<file src="bin\Release\net35\*.exe" exclude="**vshost**" target="lib/net35" />
<file src="bin\Release\net35\*.config" target="lib/net35" />
<file src="bin\Release\net35\*.xml" target="lib/net35" />
<file src="bin\Release\net35\*.pdb" target="lib/net35" />
<file src="bin\Release\net40\*.dll" target="lib/net40" />
<file src="bin\Release\net40\*.exe" exclude="**vshost**" target="lib/net40" />
<file src="bin\Release\net40\*.config" target="lib/net40" />
<file src="bin\Release\net40\*.xml" target="lib/net40" />
<file src="bin\Release\net40\*.pdb" target="lib/net40" />
<file src="bin\Release\net45\*.dll" target="lib/net45" />
<file src="bin\Release\net45\*.exe" exclude="**vshost**" target="lib/net45" />
<file src="bin\Release\net45\*.config" target="lib/net45" />
<file src="bin\Release\net45\*.xml" target="lib/net45" />
<file src="bin\Release\net45\*.pdb" target="lib/net45" />
<file src="**\*.cs" exclude="obj\**" target="src" />
</files>
</package>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment