-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added missing ServiceStack example packages.
- Loading branch information
Showing
26 changed files
with
16,080 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+1.35 MB
...rviceStack_AspNet_Mvc4_Example/packages/Newtonsoft.Json.5.0.8/Newtonsoft.Json.5.0.8.nupkg
Binary file not shown.
Binary file added
BIN
+430 KB
...iceStack_AspNet_Mvc4_Example/packages/Newtonsoft.Json.5.0.8/lib/net20/Newtonsoft.Json.dll
Binary file not shown.
Binary file added
BIN
+393 KB
...iceStack_AspNet_Mvc4_Example/packages/Newtonsoft.Json.5.0.8/lib/net35/Newtonsoft.Json.dll
Binary file not shown.
Binary file added
BIN
+446 KB
...iceStack_AspNet_Mvc4_Example/packages/Newtonsoft.Json.5.0.8/lib/net40/Newtonsoft.Json.dll
Binary file not shown.
Binary file added
BIN
+455 KB
...iceStack_AspNet_Mvc4_Example/packages/Newtonsoft.Json.5.0.8/lib/net45/Newtonsoft.Json.dll
Binary file not shown.
Binary file added
BIN
+406 KB
...tack_AspNet_Mvc4_Example/packages/Newtonsoft.Json.5.0.8/lib/netcore45/Newtonsoft.Json.dll
Binary file not shown.
Binary file added
BIN
+343 KB
...xample/packages/Newtonsoft.Json.5.0.8/lib/portable-net40+sl4+wp7+win8/Newtonsoft.Json.dll
Binary file not shown.
Binary file added
BIN
+398 KB
...4_Example/packages/Newtonsoft.Json.5.0.8/lib/portable-net45+wp80+win8/Newtonsoft.Json.dll
Binary file not shown.
93 changes: 93 additions & 0 deletions
93
...ceStack/ServiceStack_AspNet_Mvc4_Example/packages/Newtonsoft.Json.5.0.8/tools/install.ps1
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,93 @@ | ||
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" | ||
$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 | ||
{ | ||
# stop potential errors from bubbling up | ||
# worst case the splash page won't open | ||
} | ||
|
||
# yolo |
Binary file added
BIN
+288 KB
...rviceStack_AspNet_Mvc4_Example/packages/RabbitMQ.Client.3.6.0/RabbitMQ.Client.3.6.0.nupkg
Binary file not shown.
Binary file added
BIN
+256 KB
...iceStack_AspNet_Mvc4_Example/packages/RabbitMQ.Client.3.6.0/lib/net45/RabbitMQ.Client.dll
Binary file not shown.
Oops, something went wrong.