【问题标题】:What's the difference between ./nuget.exe pack ./PartsUnlimited.Shared.csproj vs nuget pack ./PartsUnlimited.Shared.csproj on mac?Mac 上的 ./nuget.exe pack ./PartsUnlimited.Shared.csproj 与 nuget pack ./PartsUnlimited.Shared.csproj 之间有什么区别?
【发布时间】:2023-01-20 22:34:17
【问题描述】:

我正在关注为 windows 上的 visual studio 和 visual studio for mac 设计的lab。

实验室说明是 ./nuget.exe pack ./PartsUnlimited.Shared.csproj 但它不构建任何东西,只是将我的查找器弹出到 .csproj 所在的文件夹。

我必须做 nuget pack ./PartsUnlimited.Shared.csproj 才能成功构建。

这两个命令有什么区别? 它是一个 shell/可执行的东西,还是特定于 nuget,或者特定于 macos?

【问题讨论】:

    标签: azure macos nuget


    【解决方案1】:

    对于 Windows 操作系统,可执行程序应具有 .exe 文件扩展名。对于 macOS 和 *nix 操作系统,可执行程序没有特殊的文件扩展名。

    当 Windows 的实验室说明使用 nuget.exe 时,将其更改为 macOS 的 nuget。

    要专门运行您下载的 NuGet 版本,cd 到包含 nuget 的目录并以 ./nuget 运行命令。 (实验室在示例中使用 *nix 目录分隔符。)

    【讨论】:

      猜你喜欢
      • 2020-07-28
      • 2017-10-22
      • 2017-04-05
      • 2016-01-30
      • 2021-09-17
      • 2019-06-28
      • 2015-11-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多