【问题标题】:Powershell Nuget push command URL contains spacePowershell Nuget 推送命令 URL 包含空格
【发布时间】:2016-12-30 17:47:18
【问题描述】:

在发布 nuget 数据包时出现错误:

指定的源 '\\fileserver\IT User Data\Nuget' 无效。请提供有效的来源。

问题一定与源 URL 中的空格有关。有解决问题的经验吗?

谢谢

【问题讨论】:

    标签: powershell command nuget push space


    【解决方案1】:

    将 URL 保存在变量中,例如$SitePath,然后使用 [uri]::EscapaeDataString() 方法。

    [uri]::EscapeDataString($SitePath)
    

    【讨论】:

      猜你喜欢
      • 2014-05-26
      • 1970-01-01
      • 2019-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-18
      相关资源
      最近更新 更多