Skip to content

NuGet Plossum.CommandLine creates lib file with %20 in file name #411

Closed

Description

@agross

The lib/net40/Plossum CommandLine.dll file contains a space that Paket converts to lib/net40/Plossum%20CommandLine.dll inside packages. The reference written by Paket looks like this:

<Reference Include="Plossum%20CommandLine">
    <HintPath>..\..\packages\Plossum.CommandLine\lib\net35\Plossum%2520CommandLine.dll</HintPath>
    <Private>True</Private>
    <Paket>True</Paket>
</Reference>

MSBuild fails to load the assembly when compiling.

Activity

  1. changed the title [-]NuGet Plossum.CommandLine creates lib file with %20[/-] [+]NuGet Plossum.CommandLine creates lib file with %20 in file name[/+] on Dec 1, 2014
  2. theimowski commented on Dec 1, 2014

    @theimowski
    Member

    the bug is here. I'll apply a fix

  3. theimowski commented on Dec 1, 2014

    @theimowski
    Member

    Hm, it looks like the lib in package has already %20 in its name. Can you confirm?
    image

    Edit: It Looks like NuGet is decoding the file name when extracting from the nupkg

  4. agross commented on Dec 1, 2014

    @agross
    ContributorAuthor

    Perhaps, I haven't checked the nupkg. A nuget install Plossum.CommandLine unescaped the %20 to .

  5. agross commented on Dec 1, 2014

    @agross
    ContributorAuthor

    👍 Didn't see your edit.

  6. Vidarls commented on Dec 2, 2014

    @Vidarls
    Contributor

    May or may not be the same:

    Downloading Newtonsoft.Json 6.0.5 to C:\Users\Vidar\AppData\Local\NuGet\Cache\Newtonsoft.Json.6.0.5.nupkg
    Downloading Microsoft.Net.Http 2.2.28 to C:\Users\Vidar\AppData\Local\NuGet\Cache\Microsoft.Net.Http.2.2.28.nupkg
    Downloading Microsoft.Bcl 1.1.9 to C:\Users\Vidar\AppData\Local\NuGet\Cache\Microsoft.Bcl.1.1.9.nupkg
    Downloading FSharp.Core.Microsoft.Signed 3.1.1.1 to C:\Users\Vidar\AppData\Local\NuGet\Cache\FSharp.Core.Microsoft.Signed.3.1.1.1.nupkg
    Downloading Octokit 0.5.2 to C:\Users\Vidar\AppData\Local\NuGet\Cache\Octokit.0.5.2.nupkg
    Paket failed with:
       Error during unzipping lib/portable-net40%2Bsl4%2Bwin8%2Bwp71%2Bwpa81/System.Net.Http.dll in Microsoft.Net.Http 2.2.28: Finner ikke en del av banen.
    

    Running Paket 0.17.5

  7. Vidarls commented on Dec 2, 2014

    @Vidarls
    Contributor

    confirming that downgrading to 0.17.3 removes my above issue

  8. forki commented on Dec 2, 2014

    @forki
    Member

    Oups. @theimowski should I revert?
    On Dec 2, 2014 1:08 PM, "Vidar Løvbrekke Sømme" [email protected]
    wrote:

    confirming that downgrading to 0.17.3 removes my above issue

    —
    Reply to this email directly or view it on GitHub
    #411 (comment).

  9. theimowski commented on Dec 2, 2014

    @theimowski
    Member

    Yes please do, I'll have some time to look at it later in the evening

  10. devboy commented on Dec 2, 2014

    @devboy
    Contributor

    I am having the same issue on Mono.

    Paket failed with:
       Error during unzipping lib/portable-net45%2Bwp80%2Bwin%2Bwpa81/Octokit.dll in Octokit 0.5.2: Could not find a part of the path.
    StackTrace:
        at [email protected] (System.String message) [0x00000] in <filename unknown>:0
      at Microsoft.FSharp.Core.PrintfImpl+StringPrintfEnv`1[Microsoft.FSharp.Core.Unit].Finalize () [0x00000] in <filename unknown>:0
      at Microsoft.FSharp.Core.PrintfImpl+Final4@268[Microsoft.FSharp.Core.Unit,System.String,Microsoft.FSharp.Core.Unit,System.String,System.String,Paket.SemVerInfo,System.String].Invoke (Microsoft.FSharp.Core.FSharpFunc`2 env, System.String a, System.String b, Paket.SemVerInfo c, System.String d) [0x00000] in <filename unknown>:0
      at Microsoft.FSharp.Core.OptimizedClosures+Invoke@3090-3[System.String,System.String,Paket.SemVerInfo,System.String,Microsoft.FSharp.Core.Unit,Microsoft.FSharp.Core.FSharpFunc`2[Microsoft.FSharp.Core.Unit,Microsoft.FSharp.Core.PrintfImpl+PrintfEnv`3[Microsoft.FSharp.Core.Unit,System.String,Microsoft.FSharp.Core.Unit]]].Invoke (System.String u, System.String v, Paket.SemVerInfo w, System.String x) [0x00000] in <filename unknown>:0
      at Microsoft.FSharp.Core.OptimizedClosures+Invoke@3084-2[System.String,Paket.SemVerInfo,System.String,Microsoft.FSharp.Core.Unit,System.String].Invoke (System.String u, Paket.SemVerInfo v, System.String w) [0x00000] in <filename unknown>:0
      at Microsoft.FSharp.Core.OptimizedClosures+Invoke@3049-1[Paket.SemVerInfo,System.String,Microsoft.FSharp.Core.Unit,System.String].Invoke (Paket.SemVerInfo u, System.String v) [0x00000] in <filename unknown>:0
      at Microsoft.FSharp.Core.OptimizedClosures+Invoke@3036[System.String,Microsoft.FSharp.Core.Unit,Paket.SemVerInfo].Invoke (System.String u) [0x00000] in <filename unknown>:0
      at [email protected] (System.String arg40) [0x00000] in <filename unknown>:0
      at Microsoft.FSharp.Core.FSharpFunc`2[Paket.SemVerInfo,System.String].InvokeFast[Unit] (Microsoft.FSharp.Core.FSharpFunc`2 func, Paket.SemVerInfo arg1, System.String arg2) [0x00000] in <filename unknown>:0
      at Microsoft.FSharp.Core.FSharpFunc`2[System.String,Paket.SemVerInfo].InvokeFast[String,Unit] (Microsoft.FSharp.Core.FSharpFunc`2 func, System.String arg1, Paket.SemVerInfo arg2, System.String arg3) [0x00000] in <filename unknown>:0
      at Microsoft.FSharp.Core.FSharpFunc`2[System.String,System.String].InvokeFast[SemVerInfo,String,Unit] (Microsoft.FSharp.Core.FSharpFunc`2 func, System.String arg1, System.String arg2, Paket.SemVerInfo arg3, System.String arg4) [0x00000] in <filename unknown>:0
      at [email protected] (System.Exception _arg3) [0x00000] in <filename unknown>:0
      at Microsoft.FSharp.Control.AsyncBuilderImpl+callA@813[Microsoft.FSharp.Core.Unit,System.Exception].Invoke (Microsoft.FSharp.Control.AsyncParams`1 args) [0x00000] in <filename unknown>:0
    
  11. forki commented on Dec 2, 2014

    @forki
    Member

    Can you please check the latest version? I reverted the changes.

  12. devboy commented on Dec 2, 2014

    @devboy
    Contributor

  13. forki commented on Dec 2, 2014

    @forki
    Member

    Thanks.

  14. forki commented on Dec 3, 2014

    @forki
    Member
  15. forki commented on Dec 3, 2014

    @forki
    Member

    so I hope latest Paket works for everyone

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

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