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

Directory structure for content files flattened if not adding Windows directory separator at the end of PackagePath #4795

Closed
alfonsogarciacaro opened this issue Mar 13, 2017 · 1 comment · Fixed by NuGet/NuGet.Client#1263

Comments

@alfonsogarciacaro
Copy link

Using dotnet sdk 1.0.1. Maybe related to #4709.

I want to add a directory and its subdirectories of content files to the package. I do it like this.

    <Content Include="../../../build/fable-core/**/*.*">
      <PackagePath>fable-core</PackagePath>
      <Pack>true</Pack>
    </Content>

The problem is the directory structure of fable-core is flattened unless I add \ at the end of PackagePath:

      <PackagePath>fable-core\</PackagePath>

Please note that using / instead doesn't work.

This is not very intuitive and it's different behaviour from the .nuspec file where \ is not needed at the end. Could it be fixed?

@rohit21agrawal
Copy link
Contributor

@alfonsogarciacaro thanks for the report..yes this will be fixed soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants