Skip to content

Commit 6ed01fd

Browse files
author
Jayson Ragasa
committed
Added AppCenter stuff
1 parent 2278324 commit 6ed01fd

File tree

3 files changed

+80
-6
lines changed

3 files changed

+80
-6
lines changed

RemoteDesktopClient/MultiRemoteDesktopClient.csproj

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
<UpgradeBackupLocation>
2020
</UpgradeBackupLocation>
2121
<OldToolsVersion>3.5</OldToolsVersion>
22-
<NuGetPackageImportStamp>c2b78731</NuGetPackageImportStamp>
22+
<NuGetPackageImportStamp>
23+
</NuGetPackageImportStamp>
24+
<TargetFrameworkProfile />
2325
<PublishUrl>publish\</PublishUrl>
2426
<Install>true</Install>
2527
<InstallFrom>Disk</InstallFrom>
@@ -30,12 +32,11 @@
3032
<UpdatePeriodically>false</UpdatePeriodically>
3133
<UpdateRequired>false</UpdateRequired>
3234
<MapFileExtensions>true</MapFileExtensions>
33-
<ApplicationRevision>1</ApplicationRevision>
35+
<ApplicationRevision>3</ApplicationRevision>
3436
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
3537
<UseApplicationTrust>false</UseApplicationTrust>
3638
<PublishWizardCompleted>true</PublishWizardCompleted>
3739
<BootstrapperEnabled>true</BootstrapperEnabled>
38-
<TargetFrameworkProfile />
3940
</PropertyGroup>
4041
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
4142
<DebugSymbols>true</DebugSymbols>
@@ -73,19 +74,58 @@
7374
<SpecificVersion>False</SpecificVersion>
7475
<HintPath>.\MagicLibrary.dll</HintPath>
7576
</Reference>
77+
<Reference Include="Microsoft.AppCenter, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
78+
<HintPath>..\packages\Microsoft.AppCenter.3.2.1\lib\net461\Microsoft.AppCenter.dll</HintPath>
79+
</Reference>
80+
<Reference Include="Microsoft.AppCenter.Analytics, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
81+
<HintPath>..\packages\Microsoft.AppCenter.Analytics.3.2.1\lib\net461\Microsoft.AppCenter.Analytics.dll</HintPath>
82+
</Reference>
83+
<Reference Include="Microsoft.AppCenter.Crashes, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
84+
<HintPath>..\packages\Microsoft.AppCenter.Crashes.3.2.1\lib\net461\Microsoft.AppCenter.Crashes.dll</HintPath>
85+
</Reference>
7686
<Reference Include="Microsoft.VisualBasic" />
7787
<Reference Include="MSTSCLib, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
7888
<SpecificVersion>False</SpecificVersion>
7989
<HintPath>..\MsTscAxWrapper\MSTSCLib.dll</HintPath>
8090
</Reference>
91+
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
92+
<HintPath>..\packages\Newtonsoft.Json.12.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
93+
</Reference>
94+
<Reference Include="SQLitePCLRaw.batteries_v2, Version=2.0.2.669, Culture=neutral, PublicKeyToken=8226ea5df37bcae9, processorArchitecture=MSIL">
95+
<HintPath>..\packages\SQLitePCLRaw.bundle_green.2.0.2\lib\net461\SQLitePCLRaw.batteries_v2.dll</HintPath>
96+
</Reference>
97+
<Reference Include="SQLitePCLRaw.core, Version=2.0.2.669, Culture=neutral, PublicKeyToken=1488e028ca7ab535, processorArchitecture=MSIL">
98+
<HintPath>..\packages\SQLitePCLRaw.core.2.0.2\lib\netstandard2.0\SQLitePCLRaw.core.dll</HintPath>
99+
</Reference>
100+
<Reference Include="SQLitePCLRaw.nativelibrary, Version=2.0.2.669, Culture=neutral, PublicKeyToken=502ed628492ab262, processorArchitecture=MSIL">
101+
<HintPath>..\packages\SQLitePCLRaw.bundle_green.2.0.2\lib\net461\SQLitePCLRaw.nativelibrary.dll</HintPath>
102+
</Reference>
103+
<Reference Include="SQLitePCLRaw.provider.dynamic_cdecl, Version=2.0.2.669, Culture=neutral, PublicKeyToken=b68184102cba0b3b, processorArchitecture=MSIL">
104+
<HintPath>..\packages\SQLitePCLRaw.provider.dynamic_cdecl.2.0.2\lib\netstandard2.0\SQLitePCLRaw.provider.dynamic_cdecl.dll</HintPath>
105+
</Reference>
81106
<Reference Include="System" />
107+
<Reference Include="System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
108+
<HintPath>..\packages\System.Buffers.4.4.0\lib\netstandard2.0\System.Buffers.dll</HintPath>
109+
</Reference>
82110
<Reference Include="System.configuration" />
83111
<Reference Include="System.Core">
84112
<RequiredTargetFramework>3.5</RequiredTargetFramework>
85113
</Reference>
86114
<Reference Include="System.Data" />
87115
<Reference Include="System.Deployment" />
88116
<Reference Include="System.Drawing" />
117+
<Reference Include="System.Management" />
118+
<Reference Include="System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
119+
<HintPath>..\packages\System.Memory.4.5.3\lib\netstandard2.0\System.Memory.dll</HintPath>
120+
</Reference>
121+
<Reference Include="System.Net.Http" />
122+
<Reference Include="System.Numerics" />
123+
<Reference Include="System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
124+
<HintPath>..\packages\System.Numerics.Vectors.4.4.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
125+
</Reference>
126+
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
127+
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.5.2\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
128+
</Reference>
89129
<Reference Include="System.Windows.Forms" />
90130
<Reference Include="System.Xml" />
91131
</ItemGroup>
@@ -310,6 +350,7 @@
310350
<None Include="ICO\open_16.ico" />
311351
<None Include="ICO\pin_out.ico" />
312352
<None Include="MultiRemoteDesktopClient_TemporaryKey.pfx" />
353+
<None Include="packages.config" />
313354
<None Include="Resources\pin_in.ico" />
314355
<None Include="ICO\pin_in.ico" />
315356
<None Include="ICO\password_48.png" />
@@ -404,6 +445,13 @@
404445
</BootstrapperPackage>
405446
</ItemGroup>
406447
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
448+
<Import Project="..\packages\SQLitePCLRaw.lib.e_sqlite3.2.0.2\build\net461\SQLitePCLRaw.lib.e_sqlite3.targets" Condition="Exists('..\packages\SQLitePCLRaw.lib.e_sqlite3.2.0.2\build\net461\SQLitePCLRaw.lib.e_sqlite3.targets')" />
449+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
450+
<PropertyGroup>
451+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
452+
</PropertyGroup>
453+
<Error Condition="!Exists('..\packages\SQLitePCLRaw.lib.e_sqlite3.2.0.2\build\net461\SQLitePCLRaw.lib.e_sqlite3.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\SQLitePCLRaw.lib.e_sqlite3.2.0.2\build\net461\SQLitePCLRaw.lib.e_sqlite3.targets'))" />
454+
</Target>
407455
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
408456
Other similar extension points exist, see Microsoft.Common.targets.
409457
<Target Name="BeforeBuild">

RemoteDesktopClient/Program.cs

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Windows.Forms;
1+
using Microsoft.AppCenter;
2+
using Microsoft.AppCenter.Analytics;
3+
using Microsoft.AppCenter.Crashes;
44
using Microsoft.VisualBasic.ApplicationServices;
5+
using System;
6+
using System.Windows.Forms;
57

68
namespace MultiRemoteDesktopClient
79
{
@@ -16,6 +18,15 @@ static void Main()
1618
Application.SetCompatibleTextRenderingDefault(false);
1719
Application.EnableVisualStyles();
1820

21+
AppCenter.Start("8e9dbe40-0b00-46ee-8a37-738dcb1a9e4d",
22+
typeof(Analytics), typeof(Crashes));
23+
24+
#if DEBUG
25+
Microsoft.AppCenter.Analytics.Analytics.TrackEvent("Starting in DEBUG");
26+
#else
27+
Microsoft.AppCenter.Analytics.Analytics.TrackEvent("Starting in RELEASE");
28+
#endif
29+
1930
SingleInstanceController controler = new SingleInstanceController();
2031
controler.Run(Environment.GetCommandLineArgs());
2132
}

RemoteDesktopClient/packages.config

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="Microsoft.AppCenter" version="3.2.1" targetFramework="net48" />
4+
<package id="Microsoft.AppCenter.Analytics" version="3.2.1" targetFramework="net48" />
5+
<package id="Microsoft.AppCenter.Crashes" version="3.2.1" targetFramework="net48" />
6+
<package id="Newtonsoft.Json" version="12.0.2" targetFramework="net48" />
7+
<package id="SQLitePCLRaw.bundle_green" version="2.0.2" targetFramework="net48" />
8+
<package id="SQLitePCLRaw.core" version="2.0.2" targetFramework="net48" />
9+
<package id="SQLitePCLRaw.lib.e_sqlite3" version="2.0.2" targetFramework="net48" />
10+
<package id="SQLitePCLRaw.provider.dynamic_cdecl" version="2.0.2" targetFramework="net48" />
11+
<package id="System.Buffers" version="4.4.0" targetFramework="net48" />
12+
<package id="System.Memory" version="4.5.3" targetFramework="net48" />
13+
<package id="System.Numerics.Vectors" version="4.4.0" targetFramework="net48" />
14+
<package id="System.Runtime.CompilerServices.Unsafe" version="4.5.2" targetFramework="net48" />
15+
</packages>

0 commit comments

Comments
 (0)