相关疑难解决方法(0)

Visual Studio 2017中的Nuget CLI - 如何运行?

根据以下网页:https://dist.nuget.org/index.html

NuGet 4.x包含在Visual Studio 2017安装中.最新的NuGet版本作为Visual Studio更新的一部分提供.

包括电池!

无论我是打开Visual Studio 2017命令提示符还是Nuget控制台本身,运行'nuget'命令都会导致找不到命令.

如何使用Visual Studio 2017运行nuget CLI?我错过了什么?

nuget visual-studio-2017

35
推荐指数
1
解决办法
2万
查看次数

无法向Azure功能提供NuGet包源凭据

我有一个Azure功能,它依赖于私有包feed.

我正在将nuget.config文件复制到app服务,如下所示:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="MyPackageFeed" value="<package feed path>" />
  </packageSources>
  <packageSourceCredentials>
  <MyPackageFeed>
    <add key="Username" value="<first part of Hotmail address, before @ symbol>" />
    <add key="Password" value="<newly generated access token for username>" />
  </MyPackageFeed>
</packageSourceCredentials>
  <activePackageSource>
    <add key="All" value="(Aggregate source)" />
  </activePackageSource>
</configuration>
Run Code Online (Sandbox Code Playgroud)

注意:我使用我的Hotmail帐户电子邮件地址的第一部分,因为这是我用于在其他地方对私有源进行身份验证的用户名 - Visual Studio等.

这就是我在Azure功能门户中的日志中看到的:

2016-10-05T11:57:16.974 Restoring packages.
2016-10-05T11:57:16.974 Starting NuGet restore
2016-10-05T11:57:18.381 Restoring packages for D:\home\site\wwwroot\HttpTriggerSqlDb\project.json...
2016-10-05T11:57:19.322 Unable to load the service index for source <path to feed>
2016-10-05T11:57:19.322 The …
Run Code Online (Sandbox Code Playgroud)

c# azure nuget azure-devops azure-functions

4
推荐指数
1
解决办法
3013
查看次数