Nuget encodes spaces in file names

I created the nuget package using the pack command:

http://docs.nuget.org/docs/reference/command-line-reference#Pack_Command

everything is working fine; the only problem I'm connected with is that I'm trying to install a certificate through a powershell script. The name of this certificate is something like "CompanyName Ltd.pfx" (note the empty space), but in the nuget package it is encoded as "CompanyName% 20Ltd.pfx", and therefore my installation of the script fails for this certificate. Now this is a small problem, since I can change the name of the certificate by deleting the white space, but in any case, I wonder if there is a method that prevents (or controls) this type of encoding (since I did not find anything in nuget).

+6
source share
1 answer

I had the same problem. Unpacking the file seems to encode file names no matter which utility you use.

I solved this by opening .nupkg in the NuGet Package Explorer and using Export from the File menu.

+3
source

Source: https://habr.com/ru/post/957497/


All Articles