I'm using nuget pack myproject.csproj
to package up a DLL, but I would like to include a config template also. Here's the related nuspec file:
<?xml version="1.0"?>
<package >
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>Chris Vann</authors>
<owners>MyCompany</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Log4net appenders for targeting MS Azure</description>
<releaseNotes></releaseNotes>
<copyright>Copyright 2014</copyright>
<tags>log4net logging azure</tags>
</metadata>
<files>
<file src="log4net.config" target="."/>
</files>
</package>
Nuget correctly imports the metadata but seems to ignore the files element completely when packing the csproj file. Is there a work around for this?