question

hahoyer-3856 avatar image
0 Votes"
hahoyer-3856 asked karenpayneoregon answered

nuget files-tag in .net5

I want to upgrade my nuget packages to .net5. My packages are mainly providing source code snippets. In the previous version I described this via the nuspec file in the section "Files":
<?xml version="1.0"?>
<package>
<metadata>
...
</metadata>
<files>
<file src="hw.Helper.Core\" target="content/hw" />
</files>
</package>
How can I accomplish this in a .net5-package?

dotnet-csharpdotnet-package-management
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

karenpayneoregon avatar image
0 Votes"
karenpayneoregon answered

Hello,

Although all I've done is display a readme on installation the specs for including a file appear the same as what you have.

Using the files element for content files

See the following issue.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.