Skip to content

Preserve directories when using appsetting_files #490

Open
@jeanmorais

Description

@jeanmorais

We're migrating some apps from MS Build to our Bazel monorepo, so I have a question regarding how appsetting_files behaves.

When I define a glob like this:

csharp_binary(
    name = "server",
    appsetting_files = glob([
    "Files/*.*",
])

The output seems to flatten the directory structure — all files under Files/ are copied directly into the root of the output directory. As a result, we need to implement custom logic in the code to reconstruct or handle the expected paths.

Is this the expected behavior? Is there a recommended way to preserve the directory structure in the output, ideally without requiring too much custom implementation?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions