-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
71,288 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="MaterialSkin" version="0.2.1" targetFramework="net451" /> | ||
<package id="Newtonsoft.Json" version="8.0.2" targetFramework="net451" /> | ||
<package id="ObjectListView.Official" version="2.9.0" targetFramework="net451" /> | ||
<package id="Newtonsoft.Json" version="8.0.3" targetFramework="net451" /> | ||
<package id="ObjectListView.Official" version="2.9.1" targetFramework="net451" /> | ||
</packages> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-406 KB
packages/Newtonsoft.Json.8.0.2/lib/portable-net40+sl5+wp80+win8+wpa81/Newtonsoft.Json.dll
Binary file not shown.
Binary file removed
BIN
-453 KB
...es/Newtonsoft.Json.8.0.2/lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
9,676 changes: 9,676 additions & 0 deletions
9,676
packages/Newtonsoft.Json.8.0.3/lib/net20/Newtonsoft.Json.xml
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
8,805 changes: 8,805 additions & 0 deletions
8,805
packages/Newtonsoft.Json.8.0.3/lib/net35/Newtonsoft.Json.xml
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
9,112 changes: 9,112 additions & 0 deletions
9,112
packages/Newtonsoft.Json.8.0.3/lib/net40/Newtonsoft.Json.xml
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
9,112 changes: 9,112 additions & 0 deletions
9,112
packages/Newtonsoft.Json.8.0.3/lib/net45/Newtonsoft.Json.xml
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+407 KB
packages/Newtonsoft.Json.8.0.3/lib/portable-net40+sl5+wp80+win8+wpa81/Newtonsoft.Json.dll
Binary file not shown.
8,290 changes: 8,290 additions & 0 deletions
8,290
packages/Newtonsoft.Json.8.0.3/lib/portable-net40+sl5+wp80+win8+wpa81/Newtonsoft.Json.xml
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+454 KB
...es/Newtonsoft.Json.8.0.3/lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.dll
Binary file not shown.
8,637 changes: 8,637 additions & 0 deletions
8,637
...es/Newtonsoft.Json.8.0.3/lib/portable-net45+wp80+win8+wpa81+dnxcore50/Newtonsoft.Json.xml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
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://www.newtonsoft.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("Attempting to gather dependencies information for package 'Newtonsoft.Json." + $package.Version + "'")) | ||
{ | ||
# don't show on upgrade | ||
if (!$selection.Text.Contains("Removed package")) | ||
{ | ||
$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 removed
BIN
-289 KB
packages/ObjectListView.Official.2.9.0/ObjectListView.Official.2.9.0.nupkg
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+289 KB
packages/ObjectListView.Official.2.9.1/ObjectListView.Official.2.9.1.nupkg
Binary file not shown.
Oops, something went wrong.