No way to set destination of inherited content files. Puts them in root. #8704
Labels
Area:ContentFiles
PackageReference contentFiles folder
Functionality:Restore
Priority:3
Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog.
Style:PackageReference
Triage:Investigate
Type:Bug
@Magn3s1um commented on Thu Aug 08 2019
I have 3 packages, let call them A, B and C.
Their dependencies are as follows:
C references B, and B references A.
A has the following content:
Inside of B, when referencing this project, the files show up correct in the Startup folder.
Now when packing B though, these content files are placed at the root. So in C, the content files of A actually show up in the root directory.,
There is no way to set this using the package format. I want to inherit the folder structures from child dependencies.
A picture of what happens in project C can be seen below (the original file structure does not stay intact):
A work around is as follows:
Exclude content files from B and directly reference A.
While this works, its not ideal, since consumers of package B need to know about package A.
The text was updated successfully, but these errors were encountered: