4

I try to create a nuget package with a binary file in the contentFiles folder.

Unfortunately when I try to restore I get an error message saying the file is a binary file not ascii text.

Is there some way to add binary files to the ContentFiles folder of a NugetPackage that correctly restores?

user5855178
  • 567
  • 1
  • 7
  • 17

1 Answers1

1

It should be possible. Did you make sure to force the build action to none (the default is compile)?

<contentFiles>
    <files include="**/*.*" buildAction="None" copyToOutput="true" />
</contentFiles>