0

このガイドに従って、Azure 用のカスタム展開スクリプトを作成しようとしています... http://blog.amitapple.com/post/51576689501/testsduringazurewebsitesdeployment

しかし、私はこの例外を受け取り続けています。

C:\DWASFiles\Sites\tst-zenworx\VirtualDirectory0\site\repository\Zenworx\.nuget\nuget.targets(83,8): error : An exception occurred during a WebClient request.

nuget.targets の行 (83,8) は;

<DownloadNuGet OutputFilename="$(NuGetExePath)" Condition=" '$(DownloadNuGetExe)' == 'true' AND !Exists('$(NuGetExePath)')" />

これが私のAzureデプロイログです...

Command: deploy.cmd
Handling .NET Web Application deployment.
  Restoring NuGet packages...
  To prevent NuGet from downloading packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages'.
  All packages listed in packages.config are already installed.
  zenworx -> C:\DWASFiles\Sites\tst-zenworx\VirtualDirectory0\site\repository\zenworx\zenworx\bin\zenworx.dll
  Transformed Web.config using C:\DWASFiles\Sites\tst-zenworx\VirtualDirectory0\site\repository\zenworx\zenworx\Web.Release.config into obj\Release\TransformWebConfig\transformed\Web.config.
  Copying all files to temporary location below for package/publish:
  C:\DWASFiles\Sites\tst-zenworx\Temp\a3de0b4d-a3a6-4370-b2dd-f76082c14730.
Building test project
C:\DWASFiles\Sites\tst-zenworx\VirtualDirectory0\site\repository\zenworx\.nuget\nuget.targets(83,8): error : An exception occurred during a WebClient request.
An error has occurred during web site deployment.
Handling .NET Web Application deployment.
  Restoring NuGet packages...
  To prevent NuGet from downloading packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages'.
  All packages listed in packages.config are already installed.
  zenworx -> C:\DWASFiles\Sites\tst-zenworx\VirtualDirectory0\site\repository\zenworx\zenworx\bin\zenworx.dll
  Transformed Web.config using C:\DWASFiles\Sites\tst-zenworx\VirtualDirectory0\site\repository\zenworx\zenworx\Web.Release.config into obj\Release\TransformWebConfig\transformed\Web.config.
  Copying all files to temporary location below for package/publish:
  C:\DWASFiles\Sites\tst-zenworx\Temp\a3de0b4d-a3a6-4370-b2dd-f76082c14730.
Building test project
C:\DWASFiles\Sites\tst-zenworx\VirtualDirectory0\site\repository\zenworx\.nuget\nuget.targets(83,8): error : An exception occurred during a WebClient request.
An error has occurred during web site deployment.
D:\kuduservice\wwwroot\bin\scripts\starter.cmd deploy.cmd
4

1 に答える 1

1

NuGetToolsPath が間違っているようです。Nuget.exe をダウンロードしようとしているからです。これは、Nuget.exe が見つからなかったことを意味します。

nuget.targets ファイルの次の行を更新して、ソリューション ルートに対する .nuget フォルダーの場所を反映してください。

$(SolutionDir).nuget

于 2013-10-24T17:08:07.187 に答える