-
Hello, I'm trying something that looks simply but I didn't succeed in making it work. I have a <ItemGroup>
<Content Include="test.txt">
<PackageCopyToOutput>true</PackageCopyToOutput>
</Content>
</ItemGroup> If I consume the generated package directly, the file Now, if I reference this I tried digging into the issues of this repository and found that we should play with the I made a github repository to show off the issue I'm facing. I also know that it is possible to copy the file by including Can you help me? 😄 PS: I just added project publishing in my sample repository. It doesn't work better. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I would also be interested in this topic. It seems that many things have been made for transitivity (e.g. buildTransitive), but it seems content files have been missed. The solution that has been found in #6151 works but it is something consumers have to know and to remember. I see a nuget package as something like a |
Beta Was this translation helpful? Give feedback.
-
We have found a solution by placing the files to copy into the |
Beta Was this translation helpful? Give feedback.
We have found a solution by placing the files to copy into the
runtimes/any/native
folder. But it requires you topublish
the final application or at least set aRuntimeIdentifier
to the executable project if you just want tobuild
.