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

difference between backward slash and forward slash in file source #7856

Closed
FlorisDevreese opened this issue Mar 6, 2019 · 1 comment
Closed

Comments

@FlorisDevreese
Copy link

The result of nuget pack differs depending on if you use forward slash / or backward slash \ in the .nuspec file.

Details

Used nuget.exe Version: 4.9.3.5777 on Windows 10 v1709 (16299.699)

Repro

  1. Create folder layout
testPackage.nuspec
sources/
    file.txt
  1. Use this nuspec
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
  <metadata>
    <id>testPackage</id>
    <version>1.0.0</version>
    <authors>name</authors>
    <description>description</description>
  </metadata>
  <files>
    <file src="sources/**" target="forward/"/>
    <file src="sources\**" target="backward/"/>
  </files>
</package>
  1. nuget.exe pack testPackage.nuspec

Expected result

<nupkg>/
    backward/
        file.txt
    forward/
        file.txt

Actual result

<nupkg>/
    backward/
        file.txt
    forward/
        sources/
            file.txt

Notes

@nkolev92
Copy link
Member

nkolev92 commented Mar 7, 2019

Thanks @fldvrees

You are right the master issue is #3584.

Exact report of your DUP is #3959.

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

No branches or pull requests

2 participants