From 92fc9b5d4395336474cb7e4814a2d371a583b538 Mon Sep 17 00:00:00 2001 From: abombss Date: Sat, 27 Jul 2013 10:39:34 -0500 Subject: [PATCH] Updating to nuget 2.6.40627 and including vs2013 support --- Nuget.vs/Nuget.vs.nuspec | 8 ++++---- Nuget.vs/tools/chocolateyInstall.ps1 | 27 ++++++++++++++++++++------- 2 files changed, 24 insertions(+), 11 deletions(-) diff --git a/Nuget.vs/Nuget.vs.nuspec b/Nuget.vs/Nuget.vs.nuspec index cec5e11..d5549f3 100644 --- a/Nuget.vs/Nuget.vs.nuspec +++ b/Nuget.vs/Nuget.vs.nuspec @@ -3,7 +3,7 @@ NuGet.vs NuGet runner for Visual Studio 2012 - 2.5.40416.9020 + 2.6.40627.9000 NuGet team Ethan J Brown NuGet is the package manager for the Microsoft development platform including .NET. @@ -11,9 +11,9 @@ Includes a collection of tools to automate the process of downloading, installing, upgrading, configuring, and removing packages from a VS Project. - Note that this will install both the VS 2012 and VS 2010 plugins if found on the system + Note that this will install both the VS 2013, 2012 and VS 2010 plugins if found on the system - http://docs.nuget.org/docs/release-notes/nuget-2.5 + http://docs.nuget.org/docs/release-notes/nuget-2.6 * Allow users to overwrite content files that already exist * Automatic import of msbuild targets and props files @@ -28,7 +28,7 @@ * Support for Native projects http://nuget.codeplex.com/ - nuget package manager visualstudio vs vs2012 2012 + nuget package manager visualstudio vs vs2012 2012 vs2013 http://visualstudiogallery.msdn.microsoft.com/site/27077b70-9dad-4c64-adcf-c7cf6bc9970c/eula?licenseType=None false https://github.com/Iristyle/ChocolateyPackages/raw/master/NuGet.vs/nuget.png diff --git a/Nuget.vs/tools/chocolateyInstall.ps1 b/Nuget.vs/tools/chocolateyInstall.ps1 index 527aaf7..ebea5f0 100644 --- a/Nuget.vs/tools/chocolateyInstall.ps1 +++ b/Nuget.vs/tools/chocolateyInstall.ps1 @@ -1,20 +1,33 @@ try { $package = 'NuGet.vs' - $params = @{ - PackageName = $package; - VsixUrl = 'http://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c/file/37502/30/NuGet.Tools.vsix'; - } + $versions = @( + @{ + PackageName=$package + VsVersion='12' + VsixUrl ='http://visualstudiogallery.msdn.microsoft.com/4ec1526c-4a8c-4a84-b702-b21a8f5293ca/file/105933/1/NuGet.Tools.2013.vsix' + }, + @{ + PackageName=$package + VsVersion='11' + VsixUrl ='http://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c/file/37502/32/NuGet.Tools.vsix' + }, + @{ + PackageName=$package + VsVersion='10' + VsixUrl ='http://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c/file/37502/32/NuGet.Tools.vsix' + } + ) $vsKeys = Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\VisualStudio' | Select -ExpandProperty PsChildName # VS 2012, VS 2010 - '11.0', '10.0' | + $versions | % { - if ($vsKeys -contains $_) + if ($vsKeys -contains $("{0}.0" -f $_.VsVersion)) { - Install-ChocolateyVsixPackage @params -VsVersion [int]$_ + Install-ChocolateyVsixPackage @_ } }