You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to be able to specify which files to include, and I haven't found how to do that with the csproj file, only with the nuspec file. On the other hand, the version number is set dynamically in the csproj file (it includes the date), and the nupkg can't do that. How can I get both behaviors? How do I tell dotnet pack to only include the files I want, through the csproj?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: a7e805a3-f2ec-b05a-d5c8-29f7a8c16a5f
Version Independent ID: 4257ec12-df6f-ec52-aad3-012e5fce8133
Activity
tdykstra commentedon Apr 6, 2020
@wli3 Who can help with this question?
wli3 commentedon Apr 6, 2020
@rrelyea and @nkolev92
nkolev92 commentedon Apr 6, 2020
There are some examples in https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets#packing-using-a-nuspec & https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets#advanced-extension-points-to-create-customized-package
tdykstra commentedon Apr 6, 2020
Thanks @nkolev92 -- I'll add these links to the doc.