Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to set destination of inherited content files. Puts them in root. #8704

Open
karann-msft opened this issue Oct 16, 2019 · 0 comments
Open
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

Comments

@karann-msft
Copy link
Contributor

@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:

 <Content Include="Startup\**\*.csv">
     <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </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):

image

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.

@nkolev92 nkolev92 added Type:Bug Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. and removed Pipeline:Backlog labels Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

4 participants