Problem deploying NuGet Gallery to an Azure Website

Topics: General
Jul 17, 2014 at 10:58 AM
Edited Jul 17, 2014 at 10:59 AM
Hi,

I've tried a few times to deploy NuGet Gallery to an Azure Website by publishing from source control. That is, I've setup Azure to pull the code from a clone of https://github.com/NuGet/NuGetGallery .

Every time I tried the deployment failed when running the DeployFrontend.cmd script. Here is the output shown to me:
Command: build\DeployFrontend.cmd

Handling .NET Web Application deployment.

D:\home\site\repository\src\NuGetGallery\NuGetGallery.csproj(1459,5): error : This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\..\packages\NuGet.Services.Build.3.0.4-rel-4\build\NuGet.Services.Build.props.

An error has occurred during web site deployment.

Handling .NET Web Application deployment.
D:\home\site\repository\src\NuGetGallery\NuGetGallery.csproj(1459,5): error : This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\..\packages\NuGet.Services.Build.3.0.4-rel-4\build\NuGet.Services.Build.props.
An error has occurred during web site deployment.
d:\Program Files (x86)\SiteExtensions\Kudu\28.30713.1026\bin\scripts\starter.cmd build\DeployFrontend.cmd
Any idea why this is happening and how I can resolve it?

Thanks!
urig

PS - My deployment is based on David Ebbo's (@davidebbo) excellent video tutorial here: https://www.youtube.com/watch?v=72SAHWUHnzA
Jul 18, 2014 at 6:06 PM
  1. Was nuget.exe restore *.sln called as part of the deployment steps?
  2. NuGet.Services.Build.3.0.4-rel-4 package exist in a MyGet feed. Can you access this feed and build the solution locally on your machine?
Jul 27, 2014 at 1:49 PM
Edited Jul 27, 2014 at 1:50 PM
Thanks for helping @danliu!

danliu wrote:
  1. Was nuget.exe restore *.sln called as part of the deployment steps?
  2. NuGet.Services.Build.3.0.4-rel-4 package exist in a MyGet feed. Can you access this feed and build the solution locally on your machine?
Re 1 - How can I tell if it was called or not? This is on an Azure website using "Azure Deployment from Git". Any idea how I can see what was run?

Re 2 - I am able to run the build on my local machine and I believe the NuGet.Services.Build.3.0.4-rel-4 package is indeed fetched. However, my build fails a little later on with this error:
App_Start\AppActivator.cs(15,30): error CS0234: The type or namespace name 'Diagnostics' does not exist in the namespace 'Microsoft.WindowsAzure' (are you missing an assembly reference?) [C:\dev\NuGetGallery\src\NuGetGallery\NuGetGallery.csproj]
Jul 28, 2014 at 6:19 PM
For 1, are there output logs generated for the step of "Azure Deployment from Git"? or does it exist in DeployFrontend.cmd?

For 2, it seems to me that some windows azure packages are not restored correctly as well.
Feb 20, 2015 at 3:21 PM
anything new about this?