Nuget package contentFiles not copied to .NET Core project

后端 未结 1 1398
礼貌的吻别
礼貌的吻别 2021-01-05 08:34

I\'m trying to extract content files from a Nuget package to a project referencing my package.

Based on Justin Emgarten\'s comment

Packages.config

1条回答
  •  有刺的猬
    2021-01-05 09:02

    nupkg should have contentFiles/ directory:

    Install to netcore project:

    It won't be a loose file in the consuming project, it will be an EmbeddedResource when you build the project:

    0 讨论(0)
提交回复
热议问题