From 32837db80c9b03732ebacfc2dc68d01c37f52c2e Mon Sep 17 00:00:00 2001 From: anurse Date: Mon, 4 Nov 2013 10:20:54 -0800 Subject: [PATCH] Some minor fixes to make the build work more universally --- .nuget/NuGet.targets | 1 + README.markdown | 2 +- .../NuGetGallery.Backend.Cloud.ccproj | 120 +++++++++--------- .../ServiceConfiguration.Local.cscfg | 4 +- .../ServiceDefinition.csdef | 2 +- .../NuGetGallery.Backend.csproj | 4 +- .../NuGetGallery.Cloud.ccproj | 4 +- .../ServiceConfiguration.Local.cscfg | 4 +- .../ServiceDefinition.csdef | 4 +- .../App_Start/ContainerBindings.cs | 2 +- 10 files changed, 74 insertions(+), 73 deletions(-) diff --git a/.nuget/NuGet.targets b/.nuget/NuGet.targets index 467fe1b825..721755ec63 100644 --- a/.nuget/NuGet.targets +++ b/.nuget/NuGet.targets @@ -18,6 +18,7 @@ + diff --git a/README.markdown b/README.markdown index bf44af3681..a9f9dcae0a 100644 --- a/README.markdown +++ b/README.markdown @@ -9,7 +9,7 @@ website for the NuGet client. For information about the NuGet clients, visit htt 1. Visual Studio 2012 2. PowerShell 2.0 (comes with Windows 7+) 3. [NuGet](http://docs.nuget.org/docs/start-here/installing-nuget) - 4. [Windows Azure SDK v2.1 or later](http://www.microsoft.com/windowsazure/sdk/) + 4. [Windows Azure SDK v2.2](http://www.microsoft.com/windowsazure/sdk/) - Note that later versions may be supported, but will require you to manually upgrade the ".Cloud" projects in the solution. 5. (Optional, for unit tests) [xUnit for Visual Studio 2012](http://visualstudiogallery.msdn.microsoft.com/463c5987-f82b-46c8-a97e-b1cde42b9099) 2. Clone it! diff --git a/src/NuGetGallery.Backend.Cloud/NuGetGallery.Backend.Cloud.ccproj b/src/NuGetGallery.Backend.Cloud/NuGetGallery.Backend.Cloud.ccproj index 5afe5015e9..52e6e1ab97 100644 --- a/src/NuGetGallery.Backend.Cloud/NuGetGallery.Backend.Cloud.ccproj +++ b/src/NuGetGallery.Backend.Cloud/NuGetGallery.Backend.Cloud.ccproj @@ -1,63 +1,63 @@  - - - Debug - AnyCPU - 2.1 - 1d0164b6-92d4-455a-ac68-c30b61733748 - Library - Properties - NuGetGallery.Backend.Cloud - NuGetGallery.Backend.Cloud - True - NuGetGallery.Backend.Cloud - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - NuGetGallery.Backend - {7F92C174-5310-4090-A6A3-3CC7C67C19D6} - True - Worker - NuGetGallery.Backend - True - - - - - - - - - - - - - Content - - - - - 10.0 - $(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Windows Azure Tools\2.1\ - - - + + + Debug + AnyCPU + 2.2 + 1d0164b6-92d4-455a-ac68-c30b61733748 + Library + Properties + NuGetGallery.Backend.Cloud + NuGetGallery.Backend.Cloud + True + NuGetGallery.Backend.Cloud + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + NuGetGallery.Backend + {7F92C174-5310-4090-A6A3-3CC7C67C19D6} + True + Worker + NuGetGallery.Backend + True + + + + + + + + + + + + + Content + + + + + 10.0 + $(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Windows Azure Tools\2.2\ + + + \ No newline at end of file diff --git a/src/NuGetGallery.Backend.Cloud/ServiceConfiguration.Local.cscfg b/src/NuGetGallery.Backend.Cloud/ServiceConfiguration.Local.cscfg index 9a7b074d32..e0a45ddbf2 100644 --- a/src/NuGetGallery.Backend.Cloud/ServiceConfiguration.Local.cscfg +++ b/src/NuGetGallery.Backend.Cloud/ServiceConfiguration.Local.cscfg @@ -1,5 +1,5 @@ - - + + diff --git a/src/NuGetGallery.Backend.Cloud/ServiceDefinition.csdef b/src/NuGetGallery.Backend.Cloud/ServiceDefinition.csdef index 604a9f614a..2980635376 100644 --- a/src/NuGetGallery.Backend.Cloud/ServiceDefinition.csdef +++ b/src/NuGetGallery.Backend.Cloud/ServiceDefinition.csdef @@ -1,5 +1,5 @@  - + diff --git a/src/NuGetGallery.Backend/NuGetGallery.Backend.csproj b/src/NuGetGallery.Backend/NuGetGallery.Backend.csproj index 4d0ff8a4e3..5123bd3dba 100644 --- a/src/NuGetGallery.Backend/NuGetGallery.Backend.csproj +++ b/src/NuGetGallery.Backend/NuGetGallery.Backend.csproj @@ -54,10 +54,10 @@ ..\..\packages\Microsoft.WindowsAzure.ConfigurationManager.2.0.1.0\lib\net40\Microsoft.WindowsAzure.Configuration.dll - + True - + False diff --git a/src/NuGetGallery.Cloud/NuGetGallery.Cloud.ccproj b/src/NuGetGallery.Cloud/NuGetGallery.Cloud.ccproj index f8478cf93b..f5419755c3 100644 --- a/src/NuGetGallery.Cloud/NuGetGallery.Cloud.ccproj +++ b/src/NuGetGallery.Cloud/NuGetGallery.Cloud.ccproj @@ -4,7 +4,7 @@ Debug AnyCPU - 2.1 + 2.2 0041aca0-30ec-4554-8c7c-0af810f3086f Library Properties @@ -63,7 +63,7 @@ 10.0 - $(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Windows Azure Tools\2.1\ + $(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Windows Azure Tools\2.2\ diff --git a/src/NuGetGallery.Cloud/ServiceConfiguration.Local.cscfg b/src/NuGetGallery.Cloud/ServiceConfiguration.Local.cscfg index c4b0196cd9..6a3b368b86 100644 --- a/src/NuGetGallery.Cloud/ServiceConfiguration.Local.cscfg +++ b/src/NuGetGallery.Cloud/ServiceConfiguration.Local.cscfg @@ -1,5 +1,5 @@ - - + + diff --git a/src/NuGetGallery.Cloud/ServiceDefinition.csdef b/src/NuGetGallery.Cloud/ServiceDefinition.csdef index 3739048d44..7e9ae51409 100644 --- a/src/NuGetGallery.Cloud/ServiceDefinition.csdef +++ b/src/NuGetGallery.Cloud/ServiceDefinition.csdef @@ -1,5 +1,5 @@  - + @@ -56,4 +56,4 @@ - + \ No newline at end of file diff --git a/src/NuGetGallery/App_Start/ContainerBindings.cs b/src/NuGetGallery/App_Start/ContainerBindings.cs index ab567cb4ef..deb19a3deb 100644 --- a/src/NuGetGallery/App_Start/ContainerBindings.cs +++ b/src/NuGetGallery/App_Start/ContainerBindings.cs @@ -129,7 +129,7 @@ public override void Load() () => { var settings = Kernel.Get(); - if (settings.Current.SmtpUri != null) + if (settings.Current.SmtpUri != null && settings.Current.SmtpUri.IsAbsoluteUri) { var smtpUri = new SmtpUri(settings.Current.SmtpUri);