Skip to content

Commit

Permalink
packages
Browse files Browse the repository at this point in the history
  • Loading branch information
eps696 committed Nov 6, 2015
1 parent 930b360 commit 8792e33
Show file tree
Hide file tree
Showing 35 changed files with 60,123 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ publish
*.Publish.xml

# NuGet Packages Directory
packages
# packages

# Windows Azure Build Output
csx
Expand Down
Binary file not shown.
Binary file not shown.
9,327 changes: 9,327 additions & 0 deletions src/packages/Newtonsoft.Json.6.0.8/lib/net20/Newtonsoft.Json.xml

Large diffs are not rendered by default.

Binary file not shown.
8,470 changes: 8,470 additions & 0 deletions src/packages/Newtonsoft.Json.6.0.8/lib/net35/Newtonsoft.Json.xml

Large diffs are not rendered by default.

Binary file not shown.
8,777 changes: 8,777 additions & 0 deletions src/packages/Newtonsoft.Json.6.0.8/lib/net40/Newtonsoft.Json.xml

Large diffs are not rendered by default.

Binary file not shown.
8,777 changes: 8,777 additions & 0 deletions src/packages/Newtonsoft.Json.6.0.8/lib/net45/Newtonsoft.Json.xml

Large diffs are not rendered by default.

Binary file not shown.
8,302 changes: 8,302 additions & 0 deletions src/packages/Newtonsoft.Json.6.0.8/lib/netcore45/Newtonsoft.Json.xml

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

112 changes: 112 additions & 0 deletions src/packages/Newtonsoft.Json.6.0.8/tools/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
param($installPath, $toolsPath, $package, $project)

# open json.net splash page on package install
# don't open if json.net is installed as a dependency

try
{
$url = "http://james.newtonking.com/json/install?version=" + $package.Version
$dte2 = Get-Interface $dte ([EnvDTE80.DTE2])

if ($dte2.ActiveWindow.Caption -eq "Package Manager Console")
{
# user is installing from VS NuGet console
# get reference to the window, the console host and the input history
# show webpage if "install-package newtonsoft.json" was last input

$consoleWindow = $(Get-VSComponentModel).GetService([NuGetConsole.IPowerConsoleWindow])

$props = $consoleWindow.GetType().GetProperties([System.Reflection.BindingFlags]::Instance -bor `
[System.Reflection.BindingFlags]::NonPublic)

$prop = $props | ? { $_.Name -eq "ActiveHostInfo" } | select -first 1
if ($prop -eq $null) { return }

$hostInfo = $prop.GetValue($consoleWindow)
if ($hostInfo -eq $null) { return }

$history = $hostInfo.WpfConsole.InputHistory.History

$lastCommand = $history | select -last 1

if ($lastCommand)
{
$lastCommand = $lastCommand.Trim().ToLower()
if ($lastCommand.StartsWith("install-package") -and $lastCommand.Contains("newtonsoft.json"))
{
$dte2.ItemOperations.Navigate($url) | Out-Null
}
}
}
else
{
# user is installing from VS NuGet dialog
# get reference to the window, then smart output console provider
# show webpage if messages in buffered console contains "installing...newtonsoft.json" in last operation

$instanceField = [NuGet.Dialog.PackageManagerWindow].GetField("CurrentInstance", [System.Reflection.BindingFlags]::Static -bor `
[System.Reflection.BindingFlags]::NonPublic)

$consoleField = [NuGet.Dialog.PackageManagerWindow].GetField("_smartOutputConsoleProvider", [System.Reflection.BindingFlags]::Instance -bor `
[System.Reflection.BindingFlags]::NonPublic)

if ($instanceField -eq $null -or $consoleField -eq $null) { return }

$instance = $instanceField.GetValue($null)

if ($instance -eq $null) { return }

$consoleProvider = $consoleField.GetValue($instance)
if ($consoleProvider -eq $null) { return }

$console = $consoleProvider.CreateOutputConsole($false)

$messagesField = $console.GetType().GetField("_messages", [System.Reflection.BindingFlags]::Instance -bor `
[System.Reflection.BindingFlags]::NonPublic)
if ($messagesField -eq $null) { return }

$messages = $messagesField.GetValue($console)
if ($messages -eq $null) { return }

$operations = $messages -split "=============================="

$lastOperation = $operations | select -last 1

if ($lastOperation)
{
$lastOperation = $lastOperation.ToLower()

$lines = $lastOperation -split "`r`n"

$installMatch = $lines | ? { $_.StartsWith("------- installing...newtonsoft.json ") } | select -first 1

if ($installMatch)
{
$dte2.ItemOperations.Navigate($url) | Out-Null
}
}
}
}
catch
{
try
{
$pmPane = $dte2.ToolWindows.OutputWindow.OutputWindowPanes.Item("Package Manager")

$selection = $pmPane.TextDocument.Selection
$selection.StartOfDocument($false)
$selection.EndOfDocument($true)

if ($selection.Text.StartsWith("Installing 'Newtonsoft.Json "))
{
$dte2.ItemOperations.Navigate($url) | Out-Null
}
}
catch
{
# stop potential errors from bubbling up
# worst case the splash page won't open
}
}

# still yolo
Binary file not shown.
23 changes: 23 additions & 0 deletions src/packages/VVVV.Core.32.0.0/VVVV.Core.32.0.0.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>VVVV.Core</id>
<version>32.0.0</version>
<title>VVVV.Core</title>
<authors>vvvv group</authors>
<owners>vvvv group</owners>
<licenseUrl>https://www.gnu.org/licenses/lgpl-2.1.html</licenseUrl>
<projectUrl>http://vvvv.org/</projectUrl>
<iconUrl>http://vvvv.org/sites/default/files/home-upload.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>The VVVV Core Library</description>
<releaseNotes />
<copyright>Copyright © vvvv group. All rights reserved.</copyright>
<language />
<tags>vvvv</tags>
<dependencies>
<dependency id="VVVV.Utils" version="32.0.0" />
<dependency id="VVVV.System.ComponentModel.Composition.Codeplex" version="2.5.0" />
</dependencies>
</metadata>
</package>
Binary file not shown.
10 changes: 10 additions & 0 deletions src/packages/VVVV.Core.32.0.0/tools/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
param($installPath, $toolsPath, $package, $project)

# Set the copy local flag to false
foreach ($reference in $project.Object.References)
{
if ($reference.Name -eq $package.Id)
{
$reference.CopyLocal = $false;
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2013/01/nuspec.xsd">
<metadata minClientVersion="2.5">
<id>VVVV.PluginInterfaces</id>
<version>32.0.0</version>
<title>VVVV.PluginInterfaces</title>
<authors>vvvv group</authors>
<owners>vvvv group</owners>
<licenseUrl>https://www.gnu.org/licenses/lgpl-2.1.html</licenseUrl>
<projectUrl>http://vvvv.org/</projectUrl>
<iconUrl>http://vvvv.org/sites/default/files/home-upload.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>The VVVV Plugin Interfaces Library</description>
<releaseNotes />
<copyright>Copyright © vvvv group. All rights reserved.</copyright>
<language />
<tags>vvvv</tags>
<dependencies>
<dependency id="VVVV.Core" version="32.0.0" />
<dependency id="VVVV.Utils" version="32.0.0" />
<dependency id="VVVV.SlimDX" version="1.0.1" />
<dependency id="VVVV.System.ComponentModel.Composition.Codeplex" version="2.5.0" />
</dependencies>
</metadata>
</package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Reference Include="VVVV.PluginInterfaces">
<HintPath>$(MSBuildThisFileDirectory)\lib\$(Platform)\VVVV.PluginInterfaces.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
</Project>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
19 changes: 19 additions & 0 deletions src/packages/VVVV.Utils.32.0.0/VVVV.Utils.32.0.0.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>VVVV.Utils</id>
<version>32.0.0</version>
<title>VVVV.Utils</title>
<authors>vvvv group</authors>
<owners>vvvv group</owners>
<licenseUrl>https://www.gnu.org/licenses/lgpl-2.1.html</licenseUrl>
<projectUrl>http://vvvv.org/</projectUrl>
<iconUrl>http://vvvv.org/sites/default/files/home-upload.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>The VVVV Utility Library</description>
<releaseNotes />
<copyright>Copyright © vvvv group 2013. All rights reserved.</copyright>
<language />
<tags>vvvv</tags>
</metadata>
</package>
Binary file not shown.
10 changes: 10 additions & 0 deletions src/packages/VVVV.Utils.32.0.0/tools/install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
param($installPath, $toolsPath, $package, $project)

# Set the copy local flag to false
foreach ($reference in $project.Object.References)
{
if ($reference.Name -eq $package.Id)
{
$reference.CopyLocal = $false;
}
}
4 changes: 4 additions & 0 deletions src/packages/repositories.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<repositories>
<repository path="..\packages.config" />
</repositories>

0 comments on commit 8792e33

Please sign in to comment.