Reputation: 17186
NuGet nuspec files allow you to specify the target
for <file>
elements.
eg.
<files>
<file src="things/**/*" target="content/stuff/" />
</files>
Is there an equivalent if you're using a csproj (and dotnet pack
), instead of a .nuspec file?
eg. Given
<ItemGroup>
<Content Include="things/**/*" />
</ItemGroup>
Can I add something to that to make those files end up in content/stuff
in the .nupkg file?
Upvotes: 0
Views: 267
Reputation: 5434
According to the Microsoft docs, I'd say it should look like this:
<Content Include="things/**/*">
<Pack>true</Pack>
<PackagePath>content/stuff/</PackagePath>
</Content>
Upvotes: 1