├── WinRTServerTest (Package) ├── Images │ ├── 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 ├── Package.appxmanifest └── WinRTServerTest (Package).wapproj ├── WinRTServerTest ├── Program.cs └── WinRTServerTest.csproj ├── WinRTServer ├── InternalModule.cs ├── Impls.cs ├── WinRTServer.csproj └── Program.cs ├── LICENSE ├── .gitattributes ├── README.md ├── WinRTServer.sln └── .gitignore /WinRTServerTest (Package)/Images/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hez2010/WinRTServer/HEAD/WinRTServerTest (Package)/Images/StoreLogo.png -------------------------------------------------------------------------------- /WinRTServerTest (Package)/Images/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hez2010/WinRTServer/HEAD/WinRTServerTest (Package)/Images/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /WinRTServerTest (Package)/Images/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hez2010/WinRTServer/HEAD/WinRTServerTest (Package)/Images/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /WinRTServerTest (Package)/Images/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hez2010/WinRTServer/HEAD/WinRTServerTest (Package)/Images/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /WinRTServerTest (Package)/Images/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hez2010/WinRTServer/HEAD/WinRTServerTest (Package)/Images/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /WinRTServerTest (Package)/Images/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hez2010/WinRTServer/HEAD/WinRTServerTest (Package)/Images/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /WinRTServerTest (Package)/Images/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hez2010/WinRTServer/HEAD/WinRTServerTest (Package)/Images/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /WinRTServerTest/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using WinRTServer; 3 | 4 | Console.WriteLine("This is client."); 5 | 6 | Console.WriteLine("Activating the class..."); 7 | 8 | var obj = new TestClass(); 9 | 10 | Console.WriteLine("Calling into the class..."); 11 | 12 | var result = await obj.HelloAsync((x, y) => 13 | { 14 | Console.WriteLine($"Calculating {x} * {y}"); 15 | return x * y; 16 | }, 24, 35); 17 | 18 | Console.WriteLine($"Get message \"{result.Message}\" after Task.Delay({result.Duration.TotalMilliseconds})"); 19 | 20 | Console.WriteLine(CalcClass.Add(12, 34)); 21 | 22 | Console.ReadLine(); 23 | -------------------------------------------------------------------------------- /WinRTServer/InternalModule.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.InteropServices; 2 | using WinRT; 3 | 4 | namespace WinRTServer; 5 | 6 | unsafe class InternalModule 7 | { 8 | public static int GetActivationFactory(void* activatableClassId, void** factory) 9 | { 10 | const int E_INVALIDARG = unchecked((int)0x80070057); 11 | const int CLASS_E_CLASSNOTAVAILABLE = unchecked((int)0x80040111); 12 | const int S_OK = 0; 13 | 14 | if (activatableClassId is null || factory is null) 15 | { 16 | return E_INVALIDARG; 17 | } 18 | 19 | try 20 | { 21 | IntPtr obj = Module.GetActivationFactory(MarshalString.FromAbi((IntPtr)activatableClassId)); 22 | 23 | if ((void*)obj is null) 24 | { 25 | return CLASS_E_CLASSNOTAVAILABLE; 26 | } 27 | 28 | *factory = (void*)obj; 29 | return S_OK; 30 | } 31 | catch (Exception e) 32 | { 33 | ExceptionHelpers.SetErrorInfo(e); 34 | return ExceptionHelpers.GetHRForException(e); 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 hez2010 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 | -------------------------------------------------------------------------------- /WinRTServer/Impls.cs: -------------------------------------------------------------------------------- 1 | using Windows.Foundation; 2 | 3 | namespace WinRTServer 4 | { 5 | public struct HelloStruct 6 | { 7 | public string Message; 8 | public TimeSpan Duration; 9 | } 10 | 11 | public delegate int BinaryDelegate(int x, int y); 12 | 13 | public sealed class CalcClass 14 | { 15 | public static int Add(int x, int y) 16 | { 17 | Console.WriteLine($"Calculating {x} + {y}"); 18 | return x + y; 19 | } 20 | } 21 | 22 | public sealed class TestClass 23 | { 24 | public TestClass() 25 | { 26 | Console.WriteLine("TestClass has been activated."); 27 | } 28 | 29 | public IAsyncOperation HelloAsync(BinaryDelegate func, int x, int y) 30 | { 31 | Console.WriteLine("HelloAsync has been called."); 32 | Console.WriteLine($"Calling into the client, result = {func(x, y)}"); 33 | 34 | async Task HelloAsyncCore(BinaryDelegate func, int x, int y) 35 | { 36 | await Task.Delay(1000); 37 | return new HelloStruct 38 | { 39 | Message = "Hello from server", 40 | Duration = TimeSpan.FromSeconds(1) 41 | }; 42 | } 43 | 44 | return HelloAsyncCore(func, x, y).AsAsyncOperation(); 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /WinRTServerTest/WinRTServerTest.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | Exe 4 | net8.0-windows10.0.22621.0 5 | x86;x64;ARM64 6 | true 7 | win-x86;win-x64;win-arm64 8 | win-x86 9 | win-x64 10 | win-arm64 11 | WinRTServer 12 | 10.0.22621.0 13 | native;net481;$(AssetTargetFallback) 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | %(Filename) 22 | true 23 | 24 | 25 | PreserveNewest 26 | %(Filename).winmd 27 | false 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /WinRTServer/WinRTServer.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Exe 6 | net8.0-windows10.0.22621.0 7 | enable 8 | enable 9 | true 10 | true 11 | false 12 | true 13 | x86;x64;ARM64 14 | win-x86;win-x64;win-arm64 15 | win-x86 16 | win-x64 17 | win-arm64 18 | 10.0.22621.0 19 | native;net481;$(AssetTargetFallback) 20 | true 21 | 22 | 23 | 24 | 25 | 26 | PreserveNewest 27 | %(Filename).winmd 28 | false 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /WinRTServerTest (Package)/Package.appxmanifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 11 | 15 | 16 | 17 | 18 | 19 | WinRTServerTest (Package) 20 | i 21 | Images\StoreLogo.png 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 36 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 57 | 58 | 59 | 60 | 61 | WinRTServer\WinRTServer.exe 62 | singleInstance 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WinRT Server with C# + CsWinRT 2 | 3 | A sample demonstrates both in-process and out-of-process WinRT server with C# + CsWinRT. 4 | 5 | ## What is an in-proc WinRT Server 6 | 7 | The Windows Runtime (WinRT) supports the concept of In Process Servers, which allows for using objects that are in a different dlls with super-fast performance and easy-to-use ABI. 8 | 9 | ## What is an out-of-proc WinRT Server 10 | 11 | The Windows Runtime (WinRT) supports the concept of Out Of Process (OOP) Servers, which allows for using objects that are in a different process (or even a different machine) as though they were in the local process. 12 | 13 | ## Why? 14 | 15 | ### Cross language 16 | 17 | It uses WinRT for communication so that any language that can use WinRT is able to be a WinRT server or serve as a client of a WinRT server. 18 | 19 | ### Easy to use with async support 20 | 21 | With built-in support for async primitives such as `IAsyncAction`, `IAsyncOperation` and etc., it is easy to work with async code. 22 | 23 | ### Complex types 24 | 25 | Most RPC/ICP systems are just sending messages between the two processes. At most they can serialize and deserialize an object. 26 | 27 | WinRT allows for more complicated objects, where the returned types can have methods, events, and properties. If you could do it with a local object, you can do it with a remote object. 28 | 29 | ## Usage 30 | 31 | ### Server project 32 | 33 | The server project needs to provide the implementation of types, and it uses CsWinRT to automatically generate interop code and winmd file, where the winmd file is served as a contract to be used between server and clients. 34 | 35 | Structs, classes and delegates are supported, to add a type in the WinRT server: 36 | 1. If you are adding a class, it must be sealed, and make sure you also add the type as an `ActivatableClass` in `Package.appxmanifest` under `OutOfProcessServer` (or `InProcessServer` if you are using the in-proc server), and if you are using the out-of-proc WinRT server, you also need to register an activation factory for it in the `RoRegisterActivationFactories` call. 37 | 3. Methods, properties and events for both static and non-static are supported, but the type must have a projection (primitive types, types that have a [.NET/WinRT mapping](https://learn.microsoft.com/en-us/windows/apps/develop/platform/csharp-winrt/net-mappings-of-winrt-types), WinRT types and types defined in the server project) before it can be used in the signature. 38 | 39 | ### Client project 40 | 41 | The client project only needs to consume the winmd file generated by the server project, all the server activation, type instantiation and marshaling things will be automatically done by CsWinRT. 42 | 43 | ### Switch between in-process and out-of-process model 44 | 45 | To switch the out-of-process WinRT server to in-process WinRT server: 46 | 47 | 1. Change the OutputType of the server project to `Library`. 48 | 2. Open Package.appxmanifest, uncomment the in-process server manifest, and comment the out-of-process server manifest 49 | 50 | ## Notes for workaround 51 | 52 | Current the DesktopBridge project system (i.e. wapproj) has two issues need to workaround. 53 | 54 | 1. The winmd needs to be removed from `_AppxWinmdFilesToHarvest`, see the target `RemoveWinMDRefForManifestAutoGen` in the wapproj. Otherwise an incorrect `inProcessServer` entry will be added to the manifest which will cause the build to fail. 55 | 2. The server project also needs to include the winmd file in the `ItemGroup`, otherwise the server implementation (i.e. `WinRTServer.dll` in this demo) will be removed from the package layout if you publish it to appx package, which can lead to failure while starting the server. This is because in the in-process server case, the server implementation should be placed next to the client as it will be loaded into the client process, however, it's not the case for out-of-process. Here the toolchain again assumes we are using an in-process server and does this unnecessary thing for us. 56 | 57 | -------------------------------------------------------------------------------- /WinRTServerTest (Package)/WinRTServerTest (Package).wapproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 15.0 5 | 6 | 7 | 8 | Debug 9 | x86 10 | 11 | 12 | Release 13 | x86 14 | 15 | 16 | Debug 17 | x64 18 | 19 | 20 | Release 21 | x64 22 | 23 | 24 | Debug 25 | ARM64 26 | 27 | 28 | Release 29 | ARM64 30 | 31 | 32 | 33 | $(MSBuildExtensionsPath)\Microsoft\DesktopBridge\ 34 | WinRTServerTest\ 35 | 36 | 37 | 38 | 9676fa79-9732-4198-8a9b-d295879e5ed1 39 | 10.0.22621.0 40 | 10.0.22621.0 41 | net8.0-windows$(TargetPlatformVersion);$(AssetTargetFallback) 42 | ja-JP 43 | false 44 | ..\WinRTServerTest\WinRTServerTest.csproj 45 | 46 | 47 | 48 | Designer 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | True 64 | Properties\PublishProfiles\win10-$(Platform).pubxml 65 | 66 | 67 | 68 | 69 | build 70 | 71 | 72 | build 73 | 74 | 75 | 76 | 77 | 78 | <_AppxWinmdFilesToHarvest Condition="'%(FileName)' == 'WinRTServer'" Remove="@(_AppxWinmdFilesToHarvest)" /> 79 | 80 | 81 | -------------------------------------------------------------------------------- /WinRTServer/Program.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.InteropServices; 2 | using WinRTServer; 3 | 4 | class Program 5 | { 6 | // only used for out-of-process WinRT server 7 | static void Main(string[] args) 8 | { 9 | unsafe 10 | { 11 | PInvoke.RoInitialize(PInvoke.RO_INIT_TYPE.RO_INIT_MULTITHREADED); 12 | 13 | if (PInvoke.WindowsCreateString("WinRTServer.TestClass", (uint)"WinRTServer.TestClass".Length, out var classId1) != 0) 14 | { 15 | Console.WriteLine("Failed to create string."); 16 | } 17 | 18 | if (PInvoke.WindowsCreateString("WinRTServer.CalcClass", (uint)"WinRTServer.CalcClass".Length, out var classId2) != 0) 19 | { 20 | Console.WriteLine("Failed to create string."); 21 | } 22 | 23 | if (PInvoke.RoRegisterActivationFactories([classId1, classId2], [InternalModule.GetActivationFactory, InternalModule.GetActivationFactory], out var cookie) != 0) 24 | { 25 | Console.WriteLine("Failed to register activation factories."); 26 | } 27 | 28 | Console.WriteLine("Server is ready. Press any key to exit the server."); 29 | Console.ReadLine(); 30 | } 31 | } 32 | } 33 | 34 | 35 | internal partial class PInvoke 36 | { 37 | [UnmanagedFunctionPointer(CallingConvention.StdCall)] 38 | internal unsafe delegate int PfnActivationFactoryCallback(void* classId, void** activationFactory); 39 | 40 | internal static unsafe int RoRegisterActivationFactories(void*[] activatableClassIds, PfnActivationFactoryCallback[] activationFactoryCallbacks, out nint cookie) 41 | { 42 | fixed (nint* cookieLocal = &cookie) 43 | { 44 | fixed (void* activatableClassIdsLocal = activatableClassIds) 45 | { 46 | if (activatableClassIds.Length != activationFactoryCallbacks.Length) throw new ArgumentException(); 47 | int result = RoRegisterActivationFactories(activatableClassIdsLocal, activationFactoryCallbacks, (uint)activationFactoryCallbacks.Length, cookieLocal); 48 | return result; 49 | } 50 | } 51 | } 52 | 53 | [LibraryImport("api-ms-win-core-winrt-l1-1-0.dll")] 54 | [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] 55 | internal static unsafe partial int RoRegisterActivationFactories(void* activatableClassIds, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 2), In] PfnActivationFactoryCallback[] activationFactoryCallbacks, uint count, nint* cookie); 56 | 57 | [LibraryImport("api-ms-win-core-winrt-l1-1-0.dll")] 58 | [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] 59 | internal static partial void RoRevokeActivationFactories(nint cookie); 60 | 61 | internal static unsafe int WindowsCreateString(string sourceString, uint length, out void* str) 62 | { 63 | fixed (char* sourceStringLocal = sourceString) 64 | { 65 | void* strLocal; 66 | int result = WindowsCreateString(sourceStringLocal, length, &strLocal); 67 | str = strLocal; 68 | return result; 69 | } 70 | } 71 | 72 | [LibraryImport("api-ms-win-core-winrt-string-l1-1-0.dll")] 73 | [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] 74 | internal static unsafe partial int WindowsCreateString(char* sourceString, uint length, void* @string); 75 | 76 | [LibraryImport("api-ms-win-core-winrt-string-l1-1-0.dll")] 77 | [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] 78 | internal static unsafe partial int WindowsDeleteString(void* @string); 79 | 80 | [LibraryImport("api-ms-win-core-winrt-l1-1-0.dll")] 81 | [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] 82 | internal static partial int RoInitialize(RO_INIT_TYPE initType); 83 | 84 | [LibraryImport("api-ms-win-core-winrt-l1-1-0.dll")] 85 | [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] 86 | internal static partial void RoUninitialize(); 87 | 88 | internal enum RO_INIT_TYPE 89 | { 90 | RO_INIT_SINGLETHREADED = 0, 91 | RO_INIT_MULTITHREADED = 1, 92 | } 93 | } 94 | -------------------------------------------------------------------------------- /WinRTServer.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.8.34316.72 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{C7167F0D-BC9F-4E6E-AFE1-012C56B48DB5}") = "WinRTServerTest (Package)", "WinRTServerTest (Package)\WinRTServerTest (Package).wapproj", "{9676FA79-9732-4198-8A9B-D295879E5ED1}" 7 | EndProject 8 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WinRTServerTest", "WinRTServerTest\WinRTServerTest.csproj", "{DA8098EA-C676-447F-9D9F-DDF6DF556C89}" 9 | ProjectSection(ProjectDependencies) = postProject 10 | {D36D4D64-25C4-4746-B7EF-8D39710EA040} = {D36D4D64-25C4-4746-B7EF-8D39710EA040} 11 | EndProjectSection 12 | EndProject 13 | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WinRTServer", "WinRTServer\WinRTServer.csproj", "{D36D4D64-25C4-4746-B7EF-8D39710EA040}" 14 | EndProject 15 | Global 16 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 17 | Debug|ARM64 = Debug|ARM64 18 | Debug|x64 = Debug|x64 19 | Debug|x86 = Debug|x86 20 | Release|ARM64 = Release|ARM64 21 | Release|x64 = Release|x64 22 | Release|x86 = Release|x86 23 | EndGlobalSection 24 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 25 | {9676FA79-9732-4198-8A9B-D295879E5ED1}.Debug|ARM64.ActiveCfg = Debug|ARM64 26 | {9676FA79-9732-4198-8A9B-D295879E5ED1}.Debug|ARM64.Build.0 = Debug|ARM64 27 | {9676FA79-9732-4198-8A9B-D295879E5ED1}.Debug|ARM64.Deploy.0 = Debug|ARM64 28 | {9676FA79-9732-4198-8A9B-D295879E5ED1}.Debug|x64.ActiveCfg = Debug|x64 29 | {9676FA79-9732-4198-8A9B-D295879E5ED1}.Debug|x64.Build.0 = Debug|x64 30 | {9676FA79-9732-4198-8A9B-D295879E5ED1}.Debug|x64.Deploy.0 = Debug|x64 31 | {9676FA79-9732-4198-8A9B-D295879E5ED1}.Debug|x86.ActiveCfg = Debug|x86 32 | {9676FA79-9732-4198-8A9B-D295879E5ED1}.Debug|x86.Build.0 = Debug|x86 33 | {9676FA79-9732-4198-8A9B-D295879E5ED1}.Debug|x86.Deploy.0 = Debug|x86 34 | {9676FA79-9732-4198-8A9B-D295879E5ED1}.Release|ARM64.ActiveCfg = Release|ARM64 35 | {9676FA79-9732-4198-8A9B-D295879E5ED1}.Release|ARM64.Build.0 = Release|ARM64 36 | {9676FA79-9732-4198-8A9B-D295879E5ED1}.Release|ARM64.Deploy.0 = Release|ARM64 37 | {9676FA79-9732-4198-8A9B-D295879E5ED1}.Release|x64.ActiveCfg = Release|x64 38 | {9676FA79-9732-4198-8A9B-D295879E5ED1}.Release|x64.Build.0 = Release|x64 39 | {9676FA79-9732-4198-8A9B-D295879E5ED1}.Release|x64.Deploy.0 = Release|x64 40 | {9676FA79-9732-4198-8A9B-D295879E5ED1}.Release|x86.ActiveCfg = Release|x86 41 | {9676FA79-9732-4198-8A9B-D295879E5ED1}.Release|x86.Build.0 = Release|x86 42 | {9676FA79-9732-4198-8A9B-D295879E5ED1}.Release|x86.Deploy.0 = Release|x86 43 | {DA8098EA-C676-447F-9D9F-DDF6DF556C89}.Debug|ARM64.ActiveCfg = Debug|ARM64 44 | {DA8098EA-C676-447F-9D9F-DDF6DF556C89}.Debug|ARM64.Build.0 = Debug|ARM64 45 | {DA8098EA-C676-447F-9D9F-DDF6DF556C89}.Debug|x64.ActiveCfg = Debug|x64 46 | {DA8098EA-C676-447F-9D9F-DDF6DF556C89}.Debug|x64.Build.0 = Debug|x64 47 | {DA8098EA-C676-447F-9D9F-DDF6DF556C89}.Debug|x86.ActiveCfg = Debug|x86 48 | {DA8098EA-C676-447F-9D9F-DDF6DF556C89}.Debug|x86.Build.0 = Debug|x86 49 | {DA8098EA-C676-447F-9D9F-DDF6DF556C89}.Release|ARM64.ActiveCfg = Release|ARM64 50 | {DA8098EA-C676-447F-9D9F-DDF6DF556C89}.Release|ARM64.Build.0 = Release|ARM64 51 | {DA8098EA-C676-447F-9D9F-DDF6DF556C89}.Release|x64.ActiveCfg = Release|x64 52 | {DA8098EA-C676-447F-9D9F-DDF6DF556C89}.Release|x64.Build.0 = Release|x64 53 | {DA8098EA-C676-447F-9D9F-DDF6DF556C89}.Release|x86.ActiveCfg = Release|x86 54 | {DA8098EA-C676-447F-9D9F-DDF6DF556C89}.Release|x86.Build.0 = Release|x86 55 | {D36D4D64-25C4-4746-B7EF-8D39710EA040}.Debug|ARM64.ActiveCfg = Debug|ARM64 56 | {D36D4D64-25C4-4746-B7EF-8D39710EA040}.Debug|ARM64.Build.0 = Debug|ARM64 57 | {D36D4D64-25C4-4746-B7EF-8D39710EA040}.Debug|x64.ActiveCfg = Debug|x64 58 | {D36D4D64-25C4-4746-B7EF-8D39710EA040}.Debug|x64.Build.0 = Debug|x64 59 | {D36D4D64-25C4-4746-B7EF-8D39710EA040}.Debug|x86.ActiveCfg = Debug|x86 60 | {D36D4D64-25C4-4746-B7EF-8D39710EA040}.Debug|x86.Build.0 = Debug|x86 61 | {D36D4D64-25C4-4746-B7EF-8D39710EA040}.Release|ARM64.ActiveCfg = Release|ARM64 62 | {D36D4D64-25C4-4746-B7EF-8D39710EA040}.Release|ARM64.Build.0 = Release|ARM64 63 | {D36D4D64-25C4-4746-B7EF-8D39710EA040}.Release|x64.ActiveCfg = Release|x64 64 | {D36D4D64-25C4-4746-B7EF-8D39710EA040}.Release|x64.Build.0 = Release|x64 65 | {D36D4D64-25C4-4746-B7EF-8D39710EA040}.Release|x86.ActiveCfg = Release|Any CPU 66 | {D36D4D64-25C4-4746-B7EF-8D39710EA040}.Release|x86.Build.0 = Release|Any CPU 67 | EndGlobalSection 68 | GlobalSection(SolutionProperties) = preSolution 69 | HideSolutionNode = FALSE 70 | EndGlobalSection 71 | GlobalSection(ExtensibilityGlobals) = postSolution 72 | SolutionGuid = {4E4F2AF8-9CFB-425B-86AE-B4478125CE92} 73 | EndGlobalSection 74 | EndGlobal 75 | -------------------------------------------------------------------------------- /.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 | # Mono auto generated files 17 | mono_crash.* 18 | 19 | # Build results 20 | [Dd]ebug/ 21 | [Dd]ebugPublic/ 22 | [Rr]elease/ 23 | [Rr]eleases/ 24 | x64/ 25 | x86/ 26 | [Ww][Ii][Nn]32/ 27 | [Aa][Rr][Mm]/ 28 | [Aa][Rr][Mm]64/ 29 | bld/ 30 | [Bb]in/ 31 | [Oo]bj/ 32 | [Oo]ut/ 33 | [Ll]og/ 34 | [Ll]ogs/ 35 | 36 | # Visual Studio 2015/2017 cache/options directory 37 | .vs/ 38 | # Uncomment if you have tasks that create the project's static files in wwwroot 39 | #wwwroot/ 40 | 41 | # Visual Studio 2017 auto generated files 42 | Generated\ Files/ 43 | 44 | # MSTest test Results 45 | [Tt]est[Rr]esult*/ 46 | [Bb]uild[Ll]og.* 47 | 48 | # NUnit 49 | *.VisualState.xml 50 | TestResult.xml 51 | nunit-*.xml 52 | 53 | # Build Results of an ATL Project 54 | [Dd]ebugPS/ 55 | [Rr]eleasePS/ 56 | dlldata.c 57 | 58 | # Benchmark Results 59 | BenchmarkDotNet.Artifacts/ 60 | 61 | # .NET Core 62 | project.lock.json 63 | project.fragment.lock.json 64 | artifacts/ 65 | 66 | # ASP.NET Scaffolding 67 | ScaffoldingReadMe.txt 68 | 69 | # StyleCop 70 | StyleCopReport.xml 71 | 72 | # Files built by Visual Studio 73 | *_i.c 74 | *_p.c 75 | *_h.h 76 | *.ilk 77 | *.meta 78 | *.obj 79 | *.iobj 80 | *.pch 81 | *.pdb 82 | *.ipdb 83 | *.pgc 84 | *.pgd 85 | *.rsp 86 | *.sbr 87 | *.tlb 88 | *.tli 89 | *.tlh 90 | *.tmp 91 | *.tmp_proj 92 | *_wpftmp.csproj 93 | *.log 94 | *.vspscc 95 | *.vssscc 96 | .builds 97 | *.pidb 98 | *.svclog 99 | *.scc 100 | 101 | # Chutzpah Test files 102 | _Chutzpah* 103 | 104 | # Visual C++ cache files 105 | ipch/ 106 | *.aps 107 | *.ncb 108 | *.opendb 109 | *.opensdf 110 | *.sdf 111 | *.cachefile 112 | *.VC.db 113 | *.VC.VC.opendb 114 | 115 | # Visual Studio profiler 116 | *.psess 117 | *.vsp 118 | *.vspx 119 | *.sap 120 | 121 | # Visual Studio Trace Files 122 | *.e2e 123 | 124 | # TFS 2012 Local Workspace 125 | $tf/ 126 | 127 | # Guidance Automation Toolkit 128 | *.gpState 129 | 130 | # ReSharper is a .NET coding add-in 131 | _ReSharper*/ 132 | *.[Rr]e[Ss]harper 133 | *.DotSettings.user 134 | 135 | # TeamCity is a build add-in 136 | _TeamCity* 137 | 138 | # DotCover is a Code Coverage Tool 139 | *.dotCover 140 | 141 | # AxoCover is a Code Coverage Tool 142 | .axoCover/* 143 | !.axoCover/settings.json 144 | 145 | # Coverlet is a free, cross platform Code Coverage Tool 146 | coverage*.json 147 | coverage*.xml 148 | coverage*.info 149 | 150 | # Visual Studio code coverage results 151 | *.coverage 152 | *.coveragexml 153 | 154 | # NCrunch 155 | _NCrunch_* 156 | .*crunch*.local.xml 157 | nCrunchTemp_* 158 | 159 | # MightyMoose 160 | *.mm.* 161 | AutoTest.Net/ 162 | 163 | # Web workbench (sass) 164 | .sass-cache/ 165 | 166 | # Installshield output folder 167 | [Ee]xpress/ 168 | 169 | # DocProject is a documentation generator add-in 170 | DocProject/buildhelp/ 171 | DocProject/Help/*.HxT 172 | DocProject/Help/*.HxC 173 | DocProject/Help/*.hhc 174 | DocProject/Help/*.hhk 175 | DocProject/Help/*.hhp 176 | DocProject/Help/Html2 177 | DocProject/Help/html 178 | 179 | # Click-Once directory 180 | publish/ 181 | 182 | # Publish Web Output 183 | *.[Pp]ublish.xml 184 | *.azurePubxml 185 | # Note: Comment the next line if you want to checkin your web deploy settings, 186 | # but database connection strings (with potential passwords) will be unencrypted 187 | *.pubxml 188 | *.publishproj 189 | 190 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 191 | # checkin your Azure Web App publish settings, but sensitive information contained 192 | # in these scripts will be unencrypted 193 | PublishScripts/ 194 | 195 | # NuGet Packages 196 | *.nupkg 197 | # NuGet Symbol Packages 198 | *.snupkg 199 | # The packages folder can be ignored because of Package Restore 200 | **/[Pp]ackages/* 201 | # except build/, which is used as an MSBuild target. 202 | !**/[Pp]ackages/build/ 203 | # Uncomment if necessary however generally it will be regenerated when needed 204 | #!**/[Pp]ackages/repositories.config 205 | # NuGet v3's project.json files produces more ignorable files 206 | *.nuget.props 207 | *.nuget.targets 208 | 209 | # Microsoft Azure Build Output 210 | csx/ 211 | *.build.csdef 212 | 213 | # Microsoft Azure Emulator 214 | ecf/ 215 | rcf/ 216 | 217 | # Windows Store app package directories and files 218 | AppPackages/ 219 | BundleArtifacts/ 220 | Package.StoreAssociation.xml 221 | _pkginfo.txt 222 | *.appx 223 | *.appxbundle 224 | *.appxupload 225 | 226 | # Visual Studio cache files 227 | # files ending in .cache can be ignored 228 | *.[Cc]ache 229 | # but keep track of directories ending in .cache 230 | !?*.[Cc]ache/ 231 | 232 | # Others 233 | ClientBin/ 234 | ~$* 235 | *~ 236 | *.dbmdl 237 | *.dbproj.schemaview 238 | *.jfm 239 | *.pfx 240 | *.publishsettings 241 | orleans.codegen.cs 242 | 243 | # Including strong name files can present a security risk 244 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 245 | #*.snk 246 | 247 | # Since there are multiple workflows, uncomment next line to ignore bower_components 248 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 249 | #bower_components/ 250 | 251 | # RIA/Silverlight projects 252 | Generated_Code/ 253 | 254 | # Backup & report files from converting an old project file 255 | # to a newer Visual Studio version. Backup files are not needed, 256 | # because we have git ;-) 257 | _UpgradeReport_Files/ 258 | Backup*/ 259 | UpgradeLog*.XML 260 | UpgradeLog*.htm 261 | ServiceFabricBackup/ 262 | *.rptproj.bak 263 | 264 | # SQL Server files 265 | *.mdf 266 | *.ldf 267 | *.ndf 268 | 269 | # Business Intelligence projects 270 | *.rdl.data 271 | *.bim.layout 272 | *.bim_*.settings 273 | *.rptproj.rsuser 274 | *- [Bb]ackup.rdl 275 | *- [Bb]ackup ([0-9]).rdl 276 | *- [Bb]ackup ([0-9][0-9]).rdl 277 | 278 | # Microsoft Fakes 279 | FakesAssemblies/ 280 | 281 | # GhostDoc plugin setting file 282 | *.GhostDoc.xml 283 | 284 | # Node.js Tools for Visual Studio 285 | .ntvs_analysis.dat 286 | node_modules/ 287 | 288 | # Visual Studio 6 build log 289 | *.plg 290 | 291 | # Visual Studio 6 workspace options file 292 | *.opt 293 | 294 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 295 | *.vbw 296 | 297 | # Visual Studio LightSwitch build output 298 | **/*.HTMLClient/GeneratedArtifacts 299 | **/*.DesktopClient/GeneratedArtifacts 300 | **/*.DesktopClient/ModelManifest.xml 301 | **/*.Server/GeneratedArtifacts 302 | **/*.Server/ModelManifest.xml 303 | _Pvt_Extensions 304 | 305 | # Paket dependency manager 306 | .paket/paket.exe 307 | paket-files/ 308 | 309 | # FAKE - F# Make 310 | .fake/ 311 | 312 | # CodeRush personal settings 313 | .cr/personal 314 | 315 | # Python Tools for Visual Studio (PTVS) 316 | __pycache__/ 317 | *.pyc 318 | 319 | # Cake - Uncomment if you are using it 320 | # tools/** 321 | # !tools/packages.config 322 | 323 | # Tabs Studio 324 | *.tss 325 | 326 | # Telerik's JustMock configuration file 327 | *.jmconfig 328 | 329 | # BizTalk build output 330 | *.btp.cs 331 | *.btm.cs 332 | *.odx.cs 333 | *.xsd.cs 334 | 335 | # OpenCover UI analysis results 336 | OpenCover/ 337 | 338 | # Azure Stream Analytics local run output 339 | ASALocalRun/ 340 | 341 | # MSBuild Binary and Structured Log 342 | *.binlog 343 | 344 | # NVidia Nsight GPU debugger configuration file 345 | *.nvuser 346 | 347 | # MFractors (Xamarin productivity tool) working folder 348 | .mfractor/ 349 | 350 | # Local History for Visual Studio 351 | .localhistory/ 352 | 353 | # BeatPulse healthcheck temp database 354 | healthchecksdb 355 | 356 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 357 | MigrationBackup/ 358 | 359 | # Ionide (cross platform F# VS Code tools) working folder 360 | .ionide/ 361 | 362 | # Fody - auto-generated XML schema 363 | FodyWeavers.xsd --------------------------------------------------------------------------------