Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating to nuget 2.6.40627 and including vs2013 support #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Nuget.vs/Nuget.vs.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
<metadata>
<id>NuGet.vs</id>
<title>NuGet runner for Visual Studio 2012</title>
<version>2.5.40416.9020</version>
<version>2.6.40627.9000</version>
<authors>NuGet team</authors>
<owners>Ethan J Brown</owners>
<summary>NuGet is the package manager for the Microsoft development platform including .NET.</summary>
<description>NuGet is the package manager for the Microsoft development platform including .NET. The NuGet client tools provide the ability to produce and consume packages. The NuGet Gallery (nuget.org) is the central package repository used by all package authors and consumers.

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
</description>
<releaseNotes>http://docs.nuget.org/docs/release-notes/nuget-2.5
<releaseNotes>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
Expand All @@ -28,7 +28,7 @@
* Support for Native projects
</releaseNotes>
<projectUrl>http://nuget.codeplex.com/</projectUrl>
<tags>nuget package manager visualstudio vs vs2012 2012</tags>
<tags>nuget package manager visualstudio vs vs2012 2012 vs2013</tags>
<licenseUrl>http://visualstudiogallery.msdn.microsoft.com/site/27077b70-9dad-4c64-adcf-c7cf6bc9970c/eula?licenseType=None</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>https://github.com/Iristyle/ChocolateyPackages/raw/master/NuGet.vs/nuget.png</iconUrl>
Expand Down
27 changes: 20 additions & 7 deletions Nuget.vs/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -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 @_
}
}

Expand Down