mirror of https://github.com/BrianLima/UWPHook
gitignore is now working.
parent
3eda4ae27e
commit
eef2f1a182
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
|
||||
<StartArguments>
|
||||
</StartArguments>
|
||||
</PropertyGroup>
|
||||
</Project>
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
|
||||
</startup>
|
||||
</configuration>
|
Binary file not shown.
Binary file not shown.
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
|
||||
</startup>
|
||||
</configuration>
|
@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
</assembly>
|
@ -1 +0,0 @@
|
||||
[{"game_alias":"Forza Apex","game_path":"Microsoft.ApexPG_8wekyb3d8bbwe!forzamotorsportapex"},{"game_alias":"Forza Horizon 3","game_path":"Microsoft.OpusPG_8wekyb3d8bbwe!App"},{"game_alias":"Killer Instinct","game_path":"Microsoft.KillerInstinct-Win10_8wekyb3d8bbwe!KillerInstinct.App"},{"game_alias":"Minecraft","game_path":"Microsoft.MinecraftUWP_8wekyb3d8bbwe!App"},{"game_alias":"Asphalt 8","game_path":"GAMELOFTSA.Asphalt8Airborne_0pp20fcewvvtj!App"},{"game_alias":"Hitman GO","game_path":"39C668CD.HitmanGO_r7bfsmp40f67j!App"}]
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
|
||||
</startup>
|
||||
</configuration>
|
Binary file not shown.
Binary file not shown.
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
|
||||
</startup>
|
||||
</configuration>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,17 +0,0 @@
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\bin\Debug\UWPHook.exe.config
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\bin\Debug\UWPHook.exe
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\bin\Debug\UWPHook.pdb
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Debug\UWPHook.csprojResolveAssemblyReference.cache
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Debug\MainWindow.g.cs
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Debug\App.g.cs
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Debug\UWPHook_MarkupCompile.cache
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Debug\UWPHook_MarkupCompile.lref
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Debug\MainWindow.baml
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Debug\UWPHook.g.resources
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Debug\UWPHook.Properties.Resources.resources
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Debug\UWPHook.csproj.GenerateResource.Cache
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Debug\UWPHook.exe
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Debug\UWPHook.pdb
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\bin\Debug\games.json
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\bin\Debug\Newtonsoft.Json.dll
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\bin\Debug\Newtonsoft.Json.xml
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,20 +0,0 @@
|
||||
UWPHook
|
||||
|
||||
|
||||
winexe
|
||||
C#
|
||||
.cs
|
||||
C:\Users\Brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Debug\
|
||||
UWPHook
|
||||
none
|
||||
false
|
||||
DEBUG;TRACE
|
||||
C:\Users\Brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\App.xaml
|
||||
11151548125
|
||||
|
||||
6-470569544
|
||||
14-2024189101
|
||||
MainWindow.xaml;
|
||||
|
||||
False
|
||||
|
@ -1,20 +0,0 @@
|
||||
UWPHook
|
||||
|
||||
|
||||
winexe
|
||||
C#
|
||||
.cs
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Debug\
|
||||
UWPHook
|
||||
none
|
||||
false
|
||||
DEBUG;TRACE
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\App.xaml
|
||||
11151548125
|
||||
|
||||
10-1855892474
|
||||
14-1541981460
|
||||
MainWindow.xaml;
|
||||
|
||||
False
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,17 +0,0 @@
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\bin\Release\UWPHook.exe.config
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\bin\Release\games.json
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\bin\Release\UWPHook.exe
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\bin\Release\UWPHook.pdb
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\bin\Release\Newtonsoft.Json.dll
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\bin\Release\Newtonsoft.Json.xml
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Release\UWPHook.csprojResolveAssemblyReference.cache
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Release\MainWindow.g.cs
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Release\App.g.cs
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Release\UWPHook_MarkupCompile.cache
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Release\UWPHook_MarkupCompile.lref
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Release\MainWindow.baml
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Release\UWPHook.g.resources
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Release\UWPHook.Properties.Resources.resources
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Release\UWPHook.csproj.GenerateResource.Cache
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Release\UWPHook.exe
|
||||
c:\users\brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Release\UWPHook.pdb
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,20 +0,0 @@
|
||||
UWPHook
|
||||
|
||||
|
||||
winexe
|
||||
C#
|
||||
.cs
|
||||
C:\Users\Brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Release\
|
||||
UWPHook
|
||||
none
|
||||
false
|
||||
TRACE
|
||||
C:\Users\Brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\App.xaml
|
||||
11151548125
|
||||
|
||||
6-470569544
|
||||
14-2024189101
|
||||
MainWindow.xaml;
|
||||
|
||||
False
|
||||
|
@ -1,20 +0,0 @@
|
||||
UWPHook
|
||||
|
||||
|
||||
winexe
|
||||
C#
|
||||
.cs
|
||||
C:\Users\Brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\obj\Release\
|
||||
UWPHook
|
||||
none
|
||||
false
|
||||
TRACE
|
||||
C:\Users\Brian\documents\visual studio 2015\Projects\UWPHook\UWPHook\App.xaml
|
||||
11151548125
|
||||
|
||||
10-965409959
|
||||
14-2024189101
|
||||
MainWindow.xaml;
|
||||
|
||||
False
|
||||
|
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -1,116 +0,0 @@
|
||||
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
|
Loading…
Reference in New Issue