I'm trying to create a Nuget package that will copy some files into the wwwroot folder of the application, but I can't seem to get it to work despite reading the documentation and looking at other questions online. Here is what I have so far.
<?xml version="1.0"?>
<package >
<metadata>
<id>...</id>
<version>...</version>
<title>...</title>
<authors>...</authors>
<requireLicenseAcceptance>...</requireLicenseAcceptance>
<description>...</description>
<contentFiles>
<files include="**/*.*" copyToOutput="true" buildAction="EmbeddedResource" />
</contentFiles>
</metadata>
<files>
<file src="ProjectName\bin\Release\**.dll" target="lib" />
<file src="ProjectName\wwwroot\**.*" target="content\wwwroot" />
<file src="ProjectName\wwwroot\**.*" target="contentFile\any\any\wwwroot" />
</files>
</package>
It puts the files into the content and contentFile folders of the Nuget package as expected, but when referenced if does not copy the files into the project.