Skip to content

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

Open
@karann-msft

Description

@karann-msft

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions