├── screenshot.png
├── TrayUWP
├── Assets
│ ├── StoreLogo.png
│ ├── SplashScreen.scale-200.png
│ ├── LockScreenLogo.scale-200.png
│ ├── Square150x150Logo.scale-200.png
│ ├── Square44x44Logo.scale-200.png
│ ├── Wide310x150Logo.scale-200.png
│ └── Square44x44Logo.targetsize-24_altform-unplated.png
├── App.xaml
├── Properties
│ ├── AssemblyInfo.cs
│ └── Default.rd.xml
├── MainPage.xaml
├── MainPage.xaml.cs
├── Package.appxmanifest
├── App.xaml.cs
└── TrayUWP.csproj
├── TrayEXE
├── App.config
├── Properties
│ └── AssemblyInfo.cs
├── TrayEXE.csproj
└── Program.cs
├── README.md
├── LICENSE
├── .gitattributes
├── UWPTrayIcon.sln
└── .gitignore
/screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sovetskyfish/uwp-trayicon/HEAD/screenshot.png
--------------------------------------------------------------------------------
/TrayUWP/Assets/StoreLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sovetskyfish/uwp-trayicon/HEAD/TrayUWP/Assets/StoreLogo.png
--------------------------------------------------------------------------------
/TrayUWP/Assets/SplashScreen.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sovetskyfish/uwp-trayicon/HEAD/TrayUWP/Assets/SplashScreen.scale-200.png
--------------------------------------------------------------------------------
/TrayUWP/Assets/LockScreenLogo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sovetskyfish/uwp-trayicon/HEAD/TrayUWP/Assets/LockScreenLogo.scale-200.png
--------------------------------------------------------------------------------
/TrayUWP/Assets/Square150x150Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sovetskyfish/uwp-trayicon/HEAD/TrayUWP/Assets/Square150x150Logo.scale-200.png
--------------------------------------------------------------------------------
/TrayUWP/Assets/Square44x44Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sovetskyfish/uwp-trayicon/HEAD/TrayUWP/Assets/Square44x44Logo.scale-200.png
--------------------------------------------------------------------------------
/TrayUWP/Assets/Wide310x150Logo.scale-200.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sovetskyfish/uwp-trayicon/HEAD/TrayUWP/Assets/Wide310x150Logo.scale-200.png
--------------------------------------------------------------------------------
/TrayUWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sovetskyfish/uwp-trayicon/HEAD/TrayUWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png
--------------------------------------------------------------------------------
/TrayEXE/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/TrayUWP/App.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Show an icon in the tray for UWP/为UWP显示托盘图标
2 |
3 | It will stay running in the tray after you close the UWP main window.
4 |
5 | 在关闭UWP的主窗口后,托盘图标将继续运行,常驻于托盘。
6 |
7 | 
8 |
9 | # How does it work/如何工作
10 |
11 | By declaring the `runFullTrust` capability in `Package.appxmanifest`, we can launch a bundled non-UWP executable when launching the app. We rely on that non-UWP exe to show the tray icon and its context menu. They use AppService to communicate with each other.
12 |
13 | We also declared a command line alias for this UWP, so we can use command line to launch the UWP part in the non-UWP part after the UWP is closed.
14 |
15 | 通过在`Package.appxmanifest`里声明`runFullTrust`能力,我们可以在应用启动的同时启动一个非UWP的可执行文件;我们依赖它显示托盘图标和上下文菜单。二者通过AppService交流。
16 |
17 | 我们同时为应用声明了一个命令行别名,以便于我们在UWP关闭后唤起它。
18 |
--------------------------------------------------------------------------------
/TrayUWP/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的一般信息由以下
6 | // 控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("TrayUWP")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("TrayUWP")]
13 | [assembly: AssemblyCopyright("Copyright © 2019")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 程序集的版本信息由下列四个值组成:
18 | //
19 | // 主版本
20 | // 次版本
21 | // 生成号
22 | // 修订号
23 | //
24 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
25 | //通过使用 "*",如下所示:
26 | // [assembly: AssemblyVersion("1.0.*")]
27 | [assembly: AssemblyVersion("1.0.0.0")]
28 | [assembly: AssemblyFileVersion("1.0.0.0")]
29 | [assembly: ComVisible(false)]
--------------------------------------------------------------------------------
/TrayUWP/MainPage.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/TrayUWP/Properties/Default.rd.xml:
--------------------------------------------------------------------------------
1 |
17 |
18 |
19 |
20 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/TrayEXE/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的一般信息由以下
6 | // 控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("TrayEXE")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("TrayEXE")]
13 | [assembly: AssemblyCopyright("Copyright © 2019")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 会使此程序集中的类型
18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
19 | //请将此类型的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("b7426889-ff2d-4dc1-ba86-20e5a8de3610")]
24 |
25 | // 程序集的版本信息由下列四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
33 | //通过使用 "*",如下所示:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Communist Fish
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/TrayUWP/MainPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Runtime.InteropServices.WindowsRuntime;
6 | using Windows.ApplicationModel;
7 | using Windows.Foundation;
8 | using Windows.Foundation.Collections;
9 | using Windows.UI.Xaml;
10 | using Windows.UI.Xaml.Controls;
11 | using Windows.UI.Xaml.Controls.Primitives;
12 | using Windows.UI.Xaml.Data;
13 | using Windows.UI.Xaml.Input;
14 | using Windows.UI.Xaml.Media;
15 | using Windows.UI.Xaml.Navigation;
16 |
17 | // https://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x804 上介绍了“空白页”项模板
18 |
19 | namespace TrayUWP
20 | {
21 | ///
22 | /// 可用于自身或导航至 Frame 内部的空白页。
23 | ///
24 | public sealed partial class MainPage : Page
25 | {
26 | public MainPage()
27 | {
28 | this.InitializeComponent();
29 | }
30 |
31 | protected override void OnNavigatedTo(NavigationEventArgs e)
32 | {
33 | base.OnNavigatedTo(e);
34 |
35 | //Run the bundled EXE to show a tray icon.
36 | //You must configure your Package.appxmanifest correctly.
37 | if (string.IsNullOrEmpty(e.Parameter as string))
38 | _ = App.LaunchFullTrustProcess();
39 |
40 | //Receive the commands.
41 | if (e.Parameter as string == "sync")
42 | {
43 | blk.Text = "Synchronizing...";
44 | //Tell the non-UWP part to sync
45 | _ = App.LaunchFullTrustProcess("sync");
46 | }
47 | else blk.Text = string.IsNullOrEmpty(e.Parameter as string) ? "Stand by." : (e.Parameter as string);
48 | }
49 |
50 | private async void Button_Click(object sender, RoutedEventArgs e)
51 | {
52 | var res = await App.Connection.SendMessageAsync(new ValueSet()
53 | {
54 | new KeyValuePair("request", "ping")
55 | });
56 | blk.Text = (string)res.Message.Values.First();
57 | }
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/TrayUWP/Package.appxmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
14 |
15 |
19 |
20 |
21 |
22 |
23 | TrayUWP
24 | tobii
25 | Assets\StoreLogo.png
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
40 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
73 |
74 |
75 |
--------------------------------------------------------------------------------
/TrayEXE/TrayEXE.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {B7426889-FF2D-4DC1-BA86-20E5A8DE3610}
8 | WinExe
9 | TrayEXE
10 | TrayEXE
11 | v4.7.2
12 | 512
13 | true
14 | true
15 |
16 |
17 | AnyCPU
18 | true
19 | full
20 | false
21 | bin\Debug\
22 | DEBUG;TRACE
23 | prompt
24 | 4
25 |
26 |
27 | AnyCPU
28 | pdbonly
29 | true
30 | bin\Release\
31 | TRACE
32 | prompt
33 | 4
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 | False
44 | C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5\System.Runtime.WindowsRuntime.dll
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 | C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.18362.0\Windows.winmd
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/UWPTrayIcon.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.29409.12
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TrayEXE", "TrayEXE\TrayEXE.csproj", "{B7426889-FF2D-4DC1-BA86-20E5A8DE3610}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TrayUWP", "TrayUWP\TrayUWP.csproj", "{05D91D58-B963-4D20-9390-9F979A0926E8}"
9 | EndProject
10 | Global
11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
12 | Debug|Any CPU = Debug|Any CPU
13 | Debug|ARM = Debug|ARM
14 | Debug|ARM64 = Debug|ARM64
15 | Debug|x64 = Debug|x64
16 | Debug|x86 = Debug|x86
17 | Release|Any CPU = Release|Any CPU
18 | Release|ARM = Release|ARM
19 | Release|ARM64 = Release|ARM64
20 | Release|x64 = Release|x64
21 | Release|x86 = Release|x86
22 | EndGlobalSection
23 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
24 | {B7426889-FF2D-4DC1-BA86-20E5A8DE3610}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
25 | {B7426889-FF2D-4DC1-BA86-20E5A8DE3610}.Debug|Any CPU.Build.0 = Debug|Any CPU
26 | {B7426889-FF2D-4DC1-BA86-20E5A8DE3610}.Debug|ARM.ActiveCfg = Debug|Any CPU
27 | {B7426889-FF2D-4DC1-BA86-20E5A8DE3610}.Debug|ARM.Build.0 = Debug|Any CPU
28 | {B7426889-FF2D-4DC1-BA86-20E5A8DE3610}.Debug|ARM64.ActiveCfg = Debug|Any CPU
29 | {B7426889-FF2D-4DC1-BA86-20E5A8DE3610}.Debug|ARM64.Build.0 = Debug|Any CPU
30 | {B7426889-FF2D-4DC1-BA86-20E5A8DE3610}.Debug|x64.ActiveCfg = Debug|Any CPU
31 | {B7426889-FF2D-4DC1-BA86-20E5A8DE3610}.Debug|x64.Build.0 = Debug|Any CPU
32 | {B7426889-FF2D-4DC1-BA86-20E5A8DE3610}.Debug|x86.ActiveCfg = Debug|Any CPU
33 | {B7426889-FF2D-4DC1-BA86-20E5A8DE3610}.Debug|x86.Build.0 = Debug|Any CPU
34 | {B7426889-FF2D-4DC1-BA86-20E5A8DE3610}.Release|Any CPU.ActiveCfg = Release|Any CPU
35 | {B7426889-FF2D-4DC1-BA86-20E5A8DE3610}.Release|Any CPU.Build.0 = Release|Any CPU
36 | {B7426889-FF2D-4DC1-BA86-20E5A8DE3610}.Release|ARM.ActiveCfg = Release|Any CPU
37 | {B7426889-FF2D-4DC1-BA86-20E5A8DE3610}.Release|ARM.Build.0 = Release|Any CPU
38 | {B7426889-FF2D-4DC1-BA86-20E5A8DE3610}.Release|ARM64.ActiveCfg = Release|Any CPU
39 | {B7426889-FF2D-4DC1-BA86-20E5A8DE3610}.Release|ARM64.Build.0 = Release|Any CPU
40 | {B7426889-FF2D-4DC1-BA86-20E5A8DE3610}.Release|x64.ActiveCfg = Release|Any CPU
41 | {B7426889-FF2D-4DC1-BA86-20E5A8DE3610}.Release|x64.Build.0 = Release|Any CPU
42 | {B7426889-FF2D-4DC1-BA86-20E5A8DE3610}.Release|x86.ActiveCfg = Release|Any CPU
43 | {B7426889-FF2D-4DC1-BA86-20E5A8DE3610}.Release|x86.Build.0 = Release|Any CPU
44 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Debug|Any CPU.ActiveCfg = Debug|x86
45 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Debug|Any CPU.Build.0 = Debug|x86
46 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Debug|Any CPU.Deploy.0 = Debug|x86
47 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Debug|ARM.ActiveCfg = Debug|ARM
48 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Debug|ARM.Build.0 = Debug|ARM
49 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Debug|ARM.Deploy.0 = Debug|ARM
50 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Debug|ARM64.ActiveCfg = Debug|ARM64
51 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Debug|ARM64.Build.0 = Debug|ARM64
52 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Debug|ARM64.Deploy.0 = Debug|ARM64
53 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Debug|x64.ActiveCfg = Debug|x64
54 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Debug|x64.Build.0 = Debug|x64
55 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Debug|x64.Deploy.0 = Debug|x64
56 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Debug|x86.ActiveCfg = Debug|x86
57 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Debug|x86.Build.0 = Debug|x86
58 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Debug|x86.Deploy.0 = Debug|x86
59 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Release|Any CPU.ActiveCfg = Release|x86
60 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Release|ARM.ActiveCfg = Release|ARM
61 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Release|ARM.Build.0 = Release|ARM
62 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Release|ARM.Deploy.0 = Release|ARM
63 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Release|ARM64.ActiveCfg = Release|ARM64
64 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Release|ARM64.Build.0 = Release|ARM64
65 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Release|ARM64.Deploy.0 = Release|ARM64
66 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Release|x64.ActiveCfg = Release|x64
67 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Release|x64.Build.0 = Release|x64
68 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Release|x64.Deploy.0 = Release|x64
69 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Release|x86.ActiveCfg = Release|x86
70 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Release|x86.Build.0 = Release|x86
71 | {05D91D58-B963-4D20-9390-9F979A0926E8}.Release|x86.Deploy.0 = Release|x86
72 | EndGlobalSection
73 | GlobalSection(SolutionProperties) = preSolution
74 | HideSolutionNode = FALSE
75 | EndGlobalSection
76 | GlobalSection(ExtensibilityGlobals) = postSolution
77 | SolutionGuid = {A0E19813-BE73-4A31-8A11-9F5DC3613EAB}
78 | EndGlobalSection
79 | EndGlobal
80 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.rsuser
8 | *.suo
9 | *.user
10 | *.userosscache
11 | *.sln.docstates
12 |
13 | # User-specific files (MonoDevelop/Xamarin Studio)
14 | *.userprefs
15 |
16 | # Build results
17 | [Dd]ebug/
18 | [Dd]ebugPublic/
19 | [Rr]elease/
20 | [Rr]eleases/
21 | x64/
22 | x86/
23 | [Aa][Rr][Mm]/
24 | [Aa][Rr][Mm]64/
25 | bld/
26 | [Bb]in/
27 | [Oo]bj/
28 | [Ll]og/
29 |
30 | # Visual Studio 2015/2017 cache/options directory
31 | .vs/
32 | # Uncomment if you have tasks that create the project's static files in wwwroot
33 | #wwwroot/
34 |
35 | # Visual Studio 2017 auto generated files
36 | Generated\ Files/
37 |
38 | # MSTest test Results
39 | [Tt]est[Rr]esult*/
40 | [Bb]uild[Ll]og.*
41 |
42 | # NUNIT
43 | *.VisualState.xml
44 | TestResult.xml
45 |
46 | # Build Results of an ATL Project
47 | [Dd]ebugPS/
48 | [Rr]eleasePS/
49 | dlldata.c
50 |
51 | # Benchmark Results
52 | BenchmarkDotNet.Artifacts/
53 |
54 | # .NET Core
55 | project.lock.json
56 | project.fragment.lock.json
57 | artifacts/
58 |
59 | # StyleCop
60 | StyleCopReport.xml
61 |
62 | # Files built by Visual Studio
63 | *_i.c
64 | *_p.c
65 | *_h.h
66 | *.ilk
67 | *.meta
68 | *.obj
69 | *.iobj
70 | *.pch
71 | *.pdb
72 | *.ipdb
73 | *.pgc
74 | *.pgd
75 | *.rsp
76 | *.sbr
77 | *.tlb
78 | *.tli
79 | *.tlh
80 | *.tmp
81 | *.tmp_proj
82 | *_wpftmp.csproj
83 | *.log
84 | *.vspscc
85 | *.vssscc
86 | .builds
87 | *.pidb
88 | *.svclog
89 | *.scc
90 |
91 | # Chutzpah Test files
92 | _Chutzpah*
93 |
94 | # Visual C++ cache files
95 | ipch/
96 | *.aps
97 | *.ncb
98 | *.opendb
99 | *.opensdf
100 | *.sdf
101 | *.cachefile
102 | *.VC.db
103 | *.VC.VC.opendb
104 |
105 | # Visual Studio profiler
106 | *.psess
107 | *.vsp
108 | *.vspx
109 | *.sap
110 |
111 | # Visual Studio Trace Files
112 | *.e2e
113 |
114 | # TFS 2012 Local Workspace
115 | $tf/
116 |
117 | # Guidance Automation Toolkit
118 | *.gpState
119 |
120 | # ReSharper is a .NET coding add-in
121 | _ReSharper*/
122 | *.[Rr]e[Ss]harper
123 | *.DotSettings.user
124 |
125 | # JustCode is a .NET coding add-in
126 | .JustCode
127 |
128 | # TeamCity is a build add-in
129 | _TeamCity*
130 |
131 | # DotCover is a Code Coverage Tool
132 | *.dotCover
133 |
134 | # AxoCover is a Code Coverage Tool
135 | .axoCover/*
136 | !.axoCover/settings.json
137 |
138 | # Visual Studio code coverage results
139 | *.coverage
140 | *.coveragexml
141 |
142 | # NCrunch
143 | _NCrunch_*
144 | .*crunch*.local.xml
145 | nCrunchTemp_*
146 |
147 | # MightyMoose
148 | *.mm.*
149 | AutoTest.Net/
150 |
151 | # Web workbench (sass)
152 | .sass-cache/
153 |
154 | # Installshield output folder
155 | [Ee]xpress/
156 |
157 | # DocProject is a documentation generator add-in
158 | DocProject/buildhelp/
159 | DocProject/Help/*.HxT
160 | DocProject/Help/*.HxC
161 | DocProject/Help/*.hhc
162 | DocProject/Help/*.hhk
163 | DocProject/Help/*.hhp
164 | DocProject/Help/Html2
165 | DocProject/Help/html
166 |
167 | # Click-Once directory
168 | publish/
169 |
170 | # Publish Web Output
171 | *.[Pp]ublish.xml
172 | *.azurePubxml
173 | # Note: Comment the next line if you want to checkin your web deploy settings,
174 | # but database connection strings (with potential passwords) will be unencrypted
175 | *.pubxml
176 | *.publishproj
177 |
178 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
179 | # checkin your Azure Web App publish settings, but sensitive information contained
180 | # in these scripts will be unencrypted
181 | PublishScripts/
182 |
183 | # NuGet Packages
184 | *.nupkg
185 | # The packages folder can be ignored because of Package Restore
186 | **/[Pp]ackages/*
187 | # except build/, which is used as an MSBuild target.
188 | !**/[Pp]ackages/build/
189 | # Uncomment if necessary however generally it will be regenerated when needed
190 | #!**/[Pp]ackages/repositories.config
191 | # NuGet v3's project.json files produces more ignorable files
192 | *.nuget.props
193 | *.nuget.targets
194 |
195 | # Microsoft Azure Build Output
196 | csx/
197 | *.build.csdef
198 |
199 | # Microsoft Azure Emulator
200 | ecf/
201 | rcf/
202 |
203 | # Windows Store app package directories and files
204 | AppPackages/
205 | BundleArtifacts/
206 | Package.StoreAssociation.xml
207 | _pkginfo.txt
208 | *.appx
209 |
210 | # Visual Studio cache files
211 | # files ending in .cache can be ignored
212 | *.[Cc]ache
213 | # but keep track of directories ending in .cache
214 | !?*.[Cc]ache/
215 |
216 | # Others
217 | ClientBin/
218 | ~$*
219 | *~
220 | *.dbmdl
221 | *.dbproj.schemaview
222 | *.jfm
223 | *.pfx
224 | *.publishsettings
225 | orleans.codegen.cs
226 |
227 | # Including strong name files can present a security risk
228 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
229 | #*.snk
230 |
231 | # Since there are multiple workflows, uncomment next line to ignore bower_components
232 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
233 | #bower_components/
234 |
235 | # RIA/Silverlight projects
236 | Generated_Code/
237 |
238 | # Backup & report files from converting an old project file
239 | # to a newer Visual Studio version. Backup files are not needed,
240 | # because we have git ;-)
241 | _UpgradeReport_Files/
242 | Backup*/
243 | UpgradeLog*.XML
244 | UpgradeLog*.htm
245 | ServiceFabricBackup/
246 | *.rptproj.bak
247 |
248 | # SQL Server files
249 | *.mdf
250 | *.ldf
251 | *.ndf
252 |
253 | # Business Intelligence projects
254 | *.rdl.data
255 | *.bim.layout
256 | *.bim_*.settings
257 | *.rptproj.rsuser
258 | *- Backup*.rdl
259 |
260 | # Microsoft Fakes
261 | FakesAssemblies/
262 |
263 | # GhostDoc plugin setting file
264 | *.GhostDoc.xml
265 |
266 | # Node.js Tools for Visual Studio
267 | .ntvs_analysis.dat
268 | node_modules/
269 |
270 | # Visual Studio 6 build log
271 | *.plg
272 |
273 | # Visual Studio 6 workspace options file
274 | *.opt
275 |
276 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
277 | *.vbw
278 |
279 | # Visual Studio LightSwitch build output
280 | **/*.HTMLClient/GeneratedArtifacts
281 | **/*.DesktopClient/GeneratedArtifacts
282 | **/*.DesktopClient/ModelManifest.xml
283 | **/*.Server/GeneratedArtifacts
284 | **/*.Server/ModelManifest.xml
285 | _Pvt_Extensions
286 |
287 | # Paket dependency manager
288 | .paket/paket.exe
289 | paket-files/
290 |
291 | # FAKE - F# Make
292 | .fake/
293 |
294 | # JetBrains Rider
295 | .idea/
296 | *.sln.iml
297 |
298 | # CodeRush personal settings
299 | .cr/personal
300 |
301 | # Python Tools for Visual Studio (PTVS)
302 | __pycache__/
303 | *.pyc
304 |
305 | # Cake - Uncomment if you are using it
306 | # tools/**
307 | # !tools/packages.config
308 |
309 | # Tabs Studio
310 | *.tss
311 |
312 | # Telerik's JustMock configuration file
313 | *.jmconfig
314 |
315 | # BizTalk build output
316 | *.btp.cs
317 | *.btm.cs
318 | *.odx.cs
319 | *.xsd.cs
320 |
321 | # OpenCover UI analysis results
322 | OpenCover/
323 |
324 | # Azure Stream Analytics local run output
325 | ASALocalRun/
326 |
327 | # MSBuild Binary and Structured Log
328 | *.binlog
329 |
330 | # NVidia Nsight GPU debugger configuration file
331 | *.nvuser
332 |
333 | # MFractors (Xamarin productivity tool) working folder
334 | .mfractor/
335 |
336 | # Local History for Visual Studio
337 | .localhistory/
338 |
339 | # BeatPulse healthcheck temp database
340 | healthchecksdb
--------------------------------------------------------------------------------
/TrayUWP/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Runtime.InteropServices.WindowsRuntime;
6 | using System.Threading.Tasks;
7 | using Windows.ApplicationModel;
8 | using Windows.ApplicationModel.Activation;
9 | using Windows.ApplicationModel.AppService;
10 | using Windows.ApplicationModel.Background;
11 | using Windows.Foundation;
12 | using Windows.Foundation.Collections;
13 | using Windows.Storage;
14 | using Windows.UI.Xaml;
15 | using Windows.UI.Xaml.Controls;
16 | using Windows.UI.Xaml.Controls.Primitives;
17 | using Windows.UI.Xaml.Data;
18 | using Windows.UI.Xaml.Input;
19 | using Windows.UI.Xaml.Media;
20 | using Windows.UI.Xaml.Media.Animation;
21 | using Windows.UI.Xaml.Navigation;
22 |
23 | namespace TrayUWP
24 | {
25 | ///
26 | /// 提供特定于应用程序的行为,以补充默认的应用程序类。
27 | ///
28 | sealed partial class App : Application
29 | {
30 | ///
31 | /// 初始化单一实例应用程序对象。这是执行的创作代码的第一行,
32 | /// 已执行,逻辑上等同于 main() 或 WinMain()。
33 | ///
34 | public App()
35 | {
36 | this.InitializeComponent();
37 | this.Suspending += OnSuspending;
38 | }
39 |
40 | //Command line arguments
41 | string cmdArgs = null;
42 |
43 | //The connection
44 | public static AppServiceConnection Connection = null;
45 |
46 | BackgroundTaskDeferral appServiceDeferral = null;
47 |
48 | //Initializes the app service on the host process
49 | protected override void OnBackgroundActivated(BackgroundActivatedEventArgs args)
50 | {
51 | base.OnBackgroundActivated(args);
52 | if (args.TaskInstance.TriggerDetails is AppServiceTriggerDetails)
53 | {
54 | appServiceDeferral = args.TaskInstance.GetDeferral();
55 | args.TaskInstance.Canceled += OnTaskCanceled;
56 |
57 | AppServiceTriggerDetails details = args.TaskInstance.TriggerDetails as AppServiceTriggerDetails;
58 | Connection = details.AppServiceConnection;
59 | Connection.RequestReceived += Connection_RequestReceived;
60 | }
61 | }
62 |
63 | Frame rootFrame;
64 |
65 | private async void Connection_RequestReceived(AppServiceConnection sender, AppServiceRequestReceivedEventArgs args)
66 | {
67 | var messageDeferral = args.GetDeferral();
68 | try
69 | {
70 | string value = args.Request.Message.First().Value.ToString();
71 | //Send a response, prevent the non-UWP part from waiting.
72 | await args.Request.SendResponseAsync(new ValueSet() { new KeyValuePair("response", value) });
73 | if (value == "Exit")
74 | {
75 | Current.Exit();
76 | }
77 | await rootFrame.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
78 | {
79 | rootFrame.Navigate(typeof(MainPage), value, new SuppressNavigationTransitionInfo());
80 | });
81 | }
82 | finally
83 | {
84 | //Complete the deferral, telling the system we have completed the response.
85 | messageDeferral.Complete();
86 | }
87 | }
88 |
89 | //Associate the cancellation handler with the background task
90 | private void OnTaskCanceled(IBackgroundTaskInstance sender, BackgroundTaskCancellationReason reason)
91 | {
92 | if (this.appServiceDeferral != null)
93 | {
94 | //Complete the service deferral.
95 | this.appServiceDeferral.Complete();
96 | }
97 | }
98 |
99 | protected override void OnActivated(IActivatedEventArgs args)
100 | {
101 | //When activated by command line
102 | if (args.Kind == ActivationKind.CommandLineLaunch)
103 | {
104 | var commandLine = args as CommandLineActivatedEventArgs;
105 | if (commandLine != null)
106 | {
107 | var operation = commandLine.Operation;
108 | cmdArgs = operation.Arguments;
109 | }
110 | }
111 |
112 | rootFrame = Window.Current.Content as Frame;
113 |
114 | if (rootFrame == null)
115 | {
116 | rootFrame = new Frame();
117 | rootFrame.NavigationFailed += OnNavigationFailed;
118 | Window.Current.Content = rootFrame;
119 | }
120 |
121 | rootFrame.Navigate(typeof(MainPage), cmdArgs);
122 |
123 | Window.Current.Activate();
124 | base.OnActivated(args);
125 | }
126 |
127 | //LaunchFullTrustProcess with a string passed via local settings container
128 | public static async Task LaunchFullTrustProcess(string Parameter = "nothing")
129 | {
130 | var settings = ApplicationData.Current.LocalSettings;
131 | settings.Values["Parameter"] = Parameter;
132 | await FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync();
133 | }
134 |
135 | ///
136 | /// 在应用程序由最终用户正常启动时进行调用。
137 | /// 将在启动应用程序以打开特定文件等情况下使用。
138 | ///
139 | /// 有关启动请求和过程的详细信息。
140 | protected override void OnLaunched(LaunchActivatedEventArgs e)
141 | {
142 | rootFrame = Window.Current.Content as Frame;
143 |
144 | // 不要在窗口已包含内容时重复应用程序初始化,
145 | // 只需确保窗口处于活动状态
146 | if (rootFrame == null)
147 | {
148 | // 创建要充当导航上下文的框架,并导航到第一页
149 | rootFrame = new Frame();
150 |
151 | rootFrame.NavigationFailed += OnNavigationFailed;
152 |
153 | if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
154 | {
155 | //TODO: 从之前挂起的应用程序加载状态
156 | }
157 |
158 | // 将框架放在当前窗口中
159 | Window.Current.Content = rootFrame;
160 | }
161 |
162 | if (e.PrelaunchActivated == false)
163 | {
164 | if (rootFrame.Content == null)
165 | {
166 | // 当导航堆栈尚未还原时,导航到第一页,
167 | // 并通过将所需信息作为导航参数传入来配置
168 | // 参数
169 | rootFrame.Navigate(typeof(MainPage), e.Arguments);
170 | }
171 | // 确保当前窗口处于活动状态
172 | Window.Current.Activate();
173 | }
174 | }
175 |
176 | ///
177 | /// 导航到特定页失败时调用
178 | ///
179 | ///导航失败的框架
180 | ///有关导航失败的详细信息
181 | void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
182 | {
183 | throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
184 | }
185 |
186 | ///
187 | /// 在将要挂起应用程序执行时调用。 在不知道应用程序
188 | /// 无需知道应用程序会被终止还是会恢复,
189 | /// 并让内存内容保持不变。
190 | ///
191 | /// 挂起的请求的源。
192 | /// 有关挂起请求的详细信息。
193 | private void OnSuspending(object sender, SuspendingEventArgs e)
194 | {
195 | var deferral = e.SuspendingOperation.GetDeferral();
196 | //TODO: 保存应用程序状态并停止任何后台活动
197 | deferral.Complete();
198 | }
199 | }
200 | }
201 |
--------------------------------------------------------------------------------
/TrayEXE/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Diagnostics;
3 | using System.Drawing;
4 | using System.Linq;
5 | using System.Threading;
6 | using System.Threading.Tasks;
7 | using System.Windows.Forms;
8 | using System.Collections.Generic;
9 | using Windows.Foundation.Collections;
10 | using Windows.ApplicationModel.AppService;
11 | using System.IO.Pipes;
12 | using System.IO;
13 | using Windows.Storage;
14 |
15 | namespace TrayEXE
16 | {
17 | class Program
18 | {
19 | //A mutex to prevent the UWP part from launching multiple instances of the EXE part.
20 | static Mutex mutex = new Mutex(true, "{4291b888-e528-4f46-a5fd-f7d669aad428}");
21 |
22 | static AppServiceConnection connection;
23 | static bool isServiceOpen = false;
24 | static string currentSIG = "nothing";
25 |
26 | static Thread pipeThread = new Thread(new ThreadStart(pipeTask));
27 |
28 | static void Main(string[] args)
29 | {
30 | if (mutex.WaitOne(TimeSpan.Zero, true))
31 | {
32 | //Create an AppService connection
33 | CreateConnection().Wait();
34 | //Start the pipe server
35 | pipeThread.Start();
36 | //Construct and show the tray icon and its context menu
37 | NotifyIcon trayIcon = new NotifyIcon();
38 | trayIcon.Text = "UWP Tray Icon";
39 | trayIcon.Icon = new Icon(SystemIcons.Application, 40, 40);
40 | trayIcon.Click += (s, e) =>
41 | {
42 | if ((e as MouseEventArgs).Button == MouseButtons.Left)
43 | SendSIG("You clicked the tray icon.");
44 | };
45 | ContextMenu trayMenu = new ContextMenu();
46 | trayMenu.MenuItems.Add("Menu item 1", (s, e) => SendSIG("You clicked menu item 1."));
47 | trayMenu.MenuItems.Add("Menu item 2", (s, e) => SendSIG("You clicked menu item 2."));
48 | trayMenu.MenuItems.Add("Menu item 3", (s, e) => SendSIG("You clicked menu item 3."));
49 | trayMenu.MenuItems.Add("-");
50 | trayMenu.MenuItems.Add("Exit", (s, e) =>
51 | {
52 | SendSIG("Exit");
53 | Environment.Exit(0);
54 | }
55 | );
56 | trayIcon.ContextMenu = trayMenu;
57 | trayIcon.Visible = true;
58 | Application.Run();
59 | mutex.ReleaseMutex();
60 | }
61 | else
62 | {
63 | //There is already an instance running
64 | var settings = ApplicationData.Current.LocalSettings;
65 | //Tell the original instance to re-establish connection
66 | using (NamedPipeClientStream pipeClient = new NamedPipeClientStream(".", "ArgPipe", PipeDirection.Out))
67 | {
68 | //Connect to the pipe or wait until the pipe is available.
69 | pipeClient.Connect();
70 | using (StreamWriter sw = new StreamWriter(pipeClient))
71 | {
72 | sw.AutoFlush = true;
73 | sw.Write((string)settings.Values["Parameter"]);
74 | }
75 | }
76 | settings.Values["Parameter"] = "nothing";
77 | Environment.Exit(0);
78 | }
79 | }
80 |
81 | //Use pipes to communicate between instances
82 | static async void pipeTask()
83 | {
84 | while (true)
85 | {
86 | using (NamedPipeServerStream pipeServer = new NamedPipeServerStream("ArgPipe", PipeDirection.In))
87 | {
88 | //Wait for a client to connect
89 | pipeServer.WaitForConnection();
90 | try
91 | {
92 | using (StreamReader sr = new StreamReader(pipeServer))
93 | {
94 | var input = await sr.ReadToEndAsync();
95 | Console.WriteLine(input);
96 | if (input == "sync" || input == "nothing")
97 | {
98 | await CreateConnection();
99 | if (input == "nothing") currentSIG = "You launched the app from Start again.";
100 | //Sync signal
101 | var task = connection.SendMessageAsync(new ValueSet()
102 | {
103 | new KeyValuePair("signal", currentSIG)
104 | }).AsTask();
105 | task.Wait();
106 | currentSIG = "nothing";
107 | }
108 | }
109 | }
110 | //Swallow the IOException that is raised if the pipe is broken
111 | //or disconnected.
112 | catch (IOException) { }
113 | }
114 | }
115 | }
116 |
117 | static void SendSIG(string SIG)
118 | {
119 | //Communicate with the UWP part using AppService
120 | if (isServiceOpen == true)
121 | {
122 | //Cannot use await, or SendMessageAsync will never return.
123 | //I don't know why.
124 | var task = connection.SendMessageAsync(new ValueSet()
125 | {
126 | new KeyValuePair("signal", SIG)
127 | }).AsTask();
128 | task.Wait();
129 | //Sometimes Connection_ServiceClosed won't be called when you close the UWP.
130 | if (task.Result.Status == AppServiceResponseStatus.Failure)
131 | {
132 | isServiceOpen = false;
133 | SendSIG(SIG);
134 | }
135 | }
136 | else
137 | {
138 | //If AppService is closed, it means the UWP part has terminated.
139 | //Use command line to launch the UWP part and tell it to sync.
140 | if (SIG == "Exit") Environment.Exit(0);
141 | currentSIG = SIG;
142 | ProcessStartInfo procStartInfo = new ProcessStartInfo("cmd", "/c TrayUWP.exe sync");
143 | procStartInfo.UseShellExecute = false;
144 | procStartInfo.CreateNoWindow = true;
145 | using (Process process = new Process())
146 | {
147 | process.StartInfo = procStartInfo;
148 | process.Start();
149 | process.WaitForExit();
150 | }
151 | }
152 | }
153 |
154 | static async Task CreateConnection()
155 | {
156 | connection = new AppServiceConnection();
157 | connection.AppServiceName = "CommunicationService";
158 | connection.PackageFamilyName = Windows.ApplicationModel.Package.Current.Id.FamilyName;
159 | connection.RequestReceived += Connection_RequestReceived;
160 | connection.ServiceClosed += Connection_ServiceClosed;
161 | var res = await connection.OpenAsync();
162 | if (res == AppServiceConnectionStatus.Success) isServiceOpen = true;
163 | else isServiceOpen = false;
164 | }
165 |
166 | private static void Connection_ServiceClosed(AppServiceConnection sender, AppServiceClosedEventArgs args)
167 | {
168 | isServiceOpen = false;
169 | }
170 |
171 | private static async void Connection_RequestReceived(AppServiceConnection sender, AppServiceRequestReceivedEventArgs args)
172 | {
173 | var messageDeferral = args.GetDeferral();
174 | try
175 | {
176 | string key = args.Request.Message.First().Key;
177 | string value = args.Request.Message.First().Value.ToString();
178 | if ((key, value) == ("request", "ping"))
179 | await args.Request.SendResponseAsync(new ValueSet()
180 | {
181 | new KeyValuePair("response", "From TrayEXE: Pong!")
182 | });
183 | }
184 | finally
185 | {
186 | messageDeferral.Complete();
187 | }
188 | }
189 | }
190 | }
191 |
--------------------------------------------------------------------------------
/TrayUWP/TrayUWP.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | x86
7 | {05D91D58-B963-4D20-9390-9F979A0926E8}
8 | AppContainerExe
9 | Properties
10 | TrayUWP
11 | TrayUWP
12 | zh-CN
13 | UAP
14 | 10.0.18362.0
15 | 10.0.17763.0
16 | 14
17 | 512
18 | {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
19 | true
20 | True
21 | False
22 | D:\tobii\Documents\Sources\pixivfs-uwp\PixivFSUWP\PixivFSUWP_TemporaryKey.pfx
23 | 1916018EA4ED6DCCA953B367D15B16E848E938DB
24 | SHA256
25 | True
26 | True
27 | Always
28 | x86|x64
29 | 0
30 |
31 |
32 | true
33 | bin\x86\Debug\
34 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
35 | ;2008
36 | full
37 | x86
38 | false
39 | prompt
40 | true
41 |
42 |
43 | bin\x86\Release\
44 | TRACE;NETFX_CORE;WINDOWS_UWP
45 | true
46 | ;2008
47 | pdbonly
48 | x86
49 | false
50 | prompt
51 | true
52 | true
53 |
54 |
55 | true
56 | bin\ARM\Debug\
57 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
58 | ;2008
59 | full
60 | ARM
61 | false
62 | prompt
63 | true
64 |
65 |
66 | bin\ARM\Release\
67 | TRACE;NETFX_CORE;WINDOWS_UWP
68 | true
69 | ;2008
70 | pdbonly
71 | ARM
72 | false
73 | prompt
74 | true
75 | true
76 |
77 |
78 | true
79 | bin\ARM64\Debug\
80 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
81 | ;2008
82 | full
83 | ARM64
84 | false
85 | prompt
86 | true
87 | true
88 |
89 |
90 | bin\ARM64\Release\
91 | TRACE;NETFX_CORE;WINDOWS_UWP
92 | true
93 | ;2008
94 | pdbonly
95 | ARM64
96 | false
97 | prompt
98 | true
99 | true
100 |
101 |
102 | true
103 | bin\x64\Debug\
104 | DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
105 | ;2008
106 | full
107 | x64
108 | false
109 | prompt
110 | true
111 |
112 |
113 | bin\x64\Release\
114 | TRACE;NETFX_CORE;WINDOWS_UWP
115 | true
116 | ;2008
117 | pdbonly
118 | x64
119 | false
120 | prompt
121 | true
122 | true
123 |
124 |
125 | PackageReference
126 |
127 |
128 |
129 | App.xaml
130 |
131 |
132 | MainPage.xaml
133 |
134 |
135 |
136 |
137 |
138 | Designer
139 |
140 |
141 |
142 |
143 | Assets\TrayEXE.exe
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 | MSBuild:Compile
157 | Designer
158 |
159 |
160 | MSBuild:Compile
161 | Designer
162 |
163 |
164 |
165 |
166 | 6.2.9
167 |
168 |
169 |
170 |
171 | Windows Desktop Extensions for the UWP
172 |
173 |
174 |
175 | 14.0
176 |
177 |
178 |
185 |
--------------------------------------------------------------------------------