Updated release notes

Moved ViewModelLocator
WIP ModernKeePass10
This commit is contained in:
Geoffroy BONNEVILLE
2020-04-28 20:14:18 +02:00
parent b8e1bbd9d7
commit 7917a8b388
12 changed files with 323 additions and 68 deletions

View File

@@ -10,13 +10,22 @@ using Windows.Storage.Pickers;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
using UnhandledExceptionEventArgs = Windows.UI.Xaml.UnhandledExceptionEventArgs;
using GalaSoft.MvvmLight.Views;
using MediatR;
using Microsoft.AppCenter;
using Microsoft.AppCenter.Analytics;
using Microsoft.AppCenter.Crashes;
using Microsoft.Extensions.DependencyInjection;
using ModernKeePass.Application;
using ModernKeePass.Application.Common.Interfaces;
using ModernKeePass.Application.Database.Commands.CloseDatabase;
using ModernKeePass.Application.Database.Commands.SaveDatabase;
using ModernKeePass.Application.Database.Queries.GetDatabase;
using ModernKeePass.Application.Database.Queries.ReOpenDatabase;
using ModernKeePass.Common;
using ModernKeePass.Domain.Dtos;
using ModernKeePass.Domain.Exceptions;
using ModernKeePass.Domain.Interfaces;
using ModernKeePass.Infrastructure;
using ModernKeePass.Views;
// The Blank Application template is documented at http://go.microsoft.com/fwlink/?LinkId=234227
@@ -28,26 +37,53 @@ namespace ModernKeePass
/// </summary>
sealed partial class App
{
private readonly IResourceProxy _resource;
private readonly IMediator _mediator;
private readonly ISettingsProxy _settings;
private readonly INavigationService _navigation;
private readonly IAppCenterService _appCenter;
private readonly IDialogService _dialog;
private readonly INotificationService _notification;
public static IServiceProvider Services { get; private set; }
/// <summary>
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
/// </summary>
public App()
{
AppCenter.Start("79d23520-a486-4f63-af81-8d90bf4e1bea", typeof(Analytics));
// Setup DI
IServiceCollection serviceCollection = new ServiceCollection();
serviceCollection.AddApplication();
serviceCollection.AddInfrastructureCommon();
serviceCollection.AddInfrastructureKeePass();
serviceCollection.AddInfrastructureUwp();
serviceCollection.AddWin10App();
Services = serviceCollection.BuildServiceProvider();
_mediator = Services.GetService<IMediator>();
_resource = Services.GetService<IResourceProxy>();
_settings = Services.GetService<ISettingsProxy>();
_navigation = Services.GetService<INavigationService>();
_dialog = Services.GetService<IDialogService>();
_notification = Services.GetService<INotificationService>();
#if DEBUG
AppCenter.Start("029ab91d-1e4b-4d4d-9661-5d438dd671a5",
typeof(Analytics), typeof(Crashes));
#else
AppCenter.Start("79d23520-a486-4f63-af81-8d90bf4e1bea", typeof(Analytics));
#endif
InitializeComponent();
Suspending += OnSuspending;
Resuming += OnResuming;
UnhandledException += OnUnhandledException;
// Setup DI
}
#region Event Handlers
// TODO: do something else here instead of showing dialog and handle save issues directly where it happens
private async void OnUnhandledException(object sender, UnhandledExceptionEventArgs unhandledExceptionEventArgs)
{
// Save the argument exception because it's cleared on first access
@@ -58,33 +94,40 @@ namespace ModernKeePass
? exception.InnerException
: exception;
var resource = Container.Resolve<IResourceService>();
if (realException is SaveException)
{
unhandledExceptionEventArgs.Handled = true;
await MessageDialogHelper.ShowActionDialog(resource.GetResourceValue("MessageDialogSaveErrorTitle"),
realException.InnerException.Message,
resource.GetResourceValue("MessageDialogSaveErrorButtonSaveAs"),
resource.GetResourceValue("MessageDialogSaveErrorButtonDiscard"),
async command =>
//_hockey.TrackException(realException);
await _dialog.ShowMessage(realException.Message,
_resource.GetResourceValue("MessageDialogSaveErrorTitle"),
_resource.GetResourceValue("MessageDialogSaveErrorButtonSaveAs"),
_resource.GetResourceValue("MessageDialogSaveErrorButtonDiscard"),
async isOk =>
{
var savePicker = new FileSavePicker
if (isOk)
{
SuggestedStartLocation = PickerLocationId.DocumentsLibrary,
SuggestedFileName = $"{_databaseService.Name} - copy"
};
savePicker.FileTypeChoices.Add(resource.GetResourceValue("MessageDialogSaveErrorFileTypeDesc"),
new List<string> {".kdbx"});
var database = await _mediator.Send(new GetDatabaseQuery());
var savePicker = new FileSavePicker
{
SuggestedStartLocation = PickerLocationId.DocumentsLibrary,
SuggestedFileName = $"{database.Name} - copy"
};
savePicker.FileTypeChoices.Add(
_resource.GetResourceValue("MessageDialogSaveErrorFileTypeDesc"),
new List<string> { ".kdbx" });
var file = await savePicker.PickSaveFileAsync();
var token = StorageApplicationPermissions.FutureAccessList.Add(file);
var fileInfo = new FileInfo
{
Path = token,
Name = file.DisplayName
};
await _databaseService.SaveAs(fileInfo);
}, null);
var file = await savePicker.PickSaveFileAsync().AsTask();
if (file != null)
{
var token = StorageApplicationPermissions.FutureAccessList.Add(file, file.Name);
await _mediator.Send(new SaveDatabaseCommand { FilePath = token });
}
}
});
}
else
{
await _dialog.ShowError(realException, realException.Message, "OK", () => { });
}
}
@@ -96,6 +139,7 @@ namespace ModernKeePass
protected override async void OnLaunched(LaunchActivatedEventArgs args)
{
await OnLaunchOrActivated(args);
//await _hockey.SendCrashesAsync(/* sendWithoutAsking: true */);
}
protected override async void OnActivated(IActivatedEventArgs args)
@@ -105,12 +149,14 @@ namespace ModernKeePass
private async Task OnLaunchOrActivated(IActivatedEventArgs e)
{
var rootFrame = Window.Current.Content as Frame;
// Do not repeat app initialization when the Window already has content,
// just ensure that the window is active
if (!(Window.Current.Content is Frame rootFrame))
if (rootFrame == null)
{
// Create a Frame to act as the navigation context and navigate to the first page
rootFrame = new Frame();
rootFrame = new Frame { Language = Windows.Globalization.ApplicationLanguages.Languages[0] };
// Set the default language
rootFrame.NavigationFailed += OnNavigationFailed;
@@ -120,7 +166,7 @@ namespace ModernKeePass
// Load state from previously terminated application
await SuspensionManager.RestoreAsync();
#if DEBUG
await MessageDialogHelper.ShowNotificationDialog("App terminated", "Windows or an error made the app terminate");
await _dialog.ShowMessage("Windows or an error made the app terminate", "App terminated");
#endif
}
@@ -128,31 +174,30 @@ namespace ModernKeePass
Window.Current.Content = rootFrame;
}
if (e is LaunchActivatedEventArgs lauchActivatedEventArgs && rootFrame.Content == null)
{
rootFrame.Navigate(typeof(MainPage10), lauchActivatedEventArgs.Arguments);
}
var launchActivatedEventArgs = e as LaunchActivatedEventArgs;
if (launchActivatedEventArgs != null && rootFrame.Content == null)
_navigation.NavigateTo(Constants.Navigation.MainPage, launchActivatedEventArgs.Arguments);
// Ensure the current window is active
Window.Current.Activate();
}
private void OnResuming(object sender, object e)
private async void OnResuming(object sender, object e)
{
var currentFrame = Window.Current.Content as Frame;
try
{
//_databaseService.ReOpen();
await _mediator.Send(new ReOpenDatabaseQuery());
#if DEBUG
ToastNotificationHelper.ShowGenericToast(_databaseService.Name, "Database reopened (changes were saved)");
_notification.Show("App resumed", "Database reopened (changes were saved)");
#endif
}
catch (Exception)
{
currentFrame?.Navigate(typeof(MainPage10));
#if DEBUG
ToastNotificationHelper.ShowGenericToast("App resumed", "Nothing to do, no previous database opened");
_notification.Show("App resumed", "Nothing to do, no previous database opened");
#endif
}
}
@@ -177,21 +222,31 @@ namespace ModernKeePass
private async void OnSuspending(object sender, SuspendingEventArgs e)
{
var deferral = e.SuspendingOperation.GetDeferral();
var settings = Container.Resolve<ISettingsService>();
try
{
// TODO: definitely do something about this to avoid DB corruption if app closes before save has completed
if (settings.GetSetting("SaveSuspend", true)) await _databaseService.Save();
_databaseService.Close();
var database = await _mediator.Send(new GetDatabaseQuery());
if (database.IsOpen)
{
if (database.Size < Constants.File.OneMegaByte && database.IsDirty &&
_settings.GetSetting(Constants.Settings.SaveSuspend, true))
{
await _mediator.Send(new SaveDatabaseCommand()).ConfigureAwait(false);
}
await _mediator.Send(new CloseDatabaseCommand()).ConfigureAwait(false);
}
}
catch (Exception exception)
{
ToastNotificationHelper.ShowErrorToast(exception);
_notification.Show(exception.Source, exception.Message);
}
finally
{
await SuspensionManager.SaveAsync().ConfigureAwait(false);
deferral.Complete();
}
await SuspensionManager.SaveAsync();
deferral.Complete();
}
/// <summary>
/// Invoked when application is launched from opening a file in Windows Explorer
/// </summary>
@@ -200,11 +255,30 @@ namespace ModernKeePass
{
base.OnFileActivated(args);
var rootFrame = new Frame();
rootFrame.Navigate(typeof(MainPage10), args.Files[0] as StorageFile);
var file = args.Files[0] as StorageFile;
Window.Current.Content = rootFrame;
if (file != null)
{
// TODO: use service
var token = StorageApplicationPermissions.MostRecentlyUsedList.Add(file, file.Path);
var fileInfo = new FileInfo
{
Id = token,
Name = file.DisplayName,
Path = file.Path
};
_navigation.NavigateTo(Constants.Navigation.MainPage, fileInfo);
}
else
{
_navigation.NavigateTo(Constants.Navigation.MainPage);
}
Window.Current.Activate();
}
#endregion
}
}

View File

@@ -0,0 +1,39 @@
using System.Reflection;
using AutoMapper;
using GalaSoft.MvvmLight.Views;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.AppCenter;
using Microsoft.AppCenter.Analytics;
using Microsoft.AppCenter.Crashes;
using ModernKeePass.Common;
using ModernKeePass.Views;
namespace ModernKeePass
{
public static class DependencyInjection
{
public static IServiceCollection AddWin10App(this IServiceCollection services)
{
var applicationAssembly = typeof(Application.DependencyInjection).GetTypeInfo().Assembly;
var infrastructureAssembly = typeof(Infrastructure.DependencyInjection).GetTypeInfo().Assembly;
services.AddAutoMapper(applicationAssembly, infrastructureAssembly);
services.AddSingleton<INavigationService>(provider =>
{
var nav = new NavigationService();
nav.Configure(Constants.Navigation.MainPage, typeof(MainPage10));
nav.Configure(Constants.Navigation.EntryPage, typeof(EntryPage));
nav.Configure(Constants.Navigation.GroupPage, typeof(EntriesPage));
return nav;
});
services.AddTransient(typeof(IDialogService), typeof(DialogService));
services.AddSingleton(provider =>
{
});
return services;
}
}
}

View File

@@ -1,5 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\runtime.win10-arm64.Microsoft.Net.Native.Compiler.2.2.4\build\runtime.win10-arm64.Microsoft.Net.Native.Compiler.props" Condition="Exists('..\packages\runtime.win10-arm64.Microsoft.Net.Native.Compiler.2.2.4\build\runtime.win10-arm64.Microsoft.Net.Native.Compiler.props')" />
<Import Project="..\packages\Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\Microsoft.Net.UWPCoreRuntimeSdk.props" Condition="Exists('..\packages\Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\Microsoft.Net.UWPCoreRuntimeSdk.props')" />
<Import Project="..\packages\runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk.props" Condition="Exists('..\packages\runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk.props')" />
<Import Project="..\packages\runtime.win10-x64.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-x64.Microsoft.Net.UWPCoreRuntimeSdk.props" Condition="Exists('..\packages\runtime.win10-x64.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-x64.Microsoft.Net.UWPCoreRuntimeSdk.props')" />
<Import Project="..\packages\runtime.win10-arm.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-arm.Microsoft.Net.UWPCoreRuntimeSdk.props" Condition="Exists('..\packages\runtime.win10-arm.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-arm.Microsoft.Net.UWPCoreRuntimeSdk.props')" />
<Import Project="..\packages\Microsoft.NETCore.UniversalWindowsPlatform.6.2.8\build\Microsoft.NETCore.UniversalWindowsPlatform.props" Condition="Exists('..\packages\Microsoft.NETCore.UniversalWindowsPlatform.6.2.8\build\Microsoft.NETCore.UniversalWindowsPlatform.props')" />
<Import Project="..\packages\Microsoft.Net.Native.Compiler.2.2.3\build\Microsoft.Net.Native.Compiler.props" Condition="Exists('..\packages\Microsoft.Net.Native.Compiler.2.2.3\build\Microsoft.Net.Native.Compiler.props')" />
<Import Project="..\packages\runtime.win10-x86.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-x86.Microsoft.Net.Native.Compiler.props" Condition="Exists('..\packages\runtime.win10-x86.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-x86.Microsoft.Net.Native.Compiler.props')" />
<Import Project="..\packages\runtime.win10-x86.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-x86.Microsoft.Net.Native.SharedLibrary.props" Condition="Exists('..\packages\runtime.win10-x86.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-x86.Microsoft.Net.Native.SharedLibrary.props')" />
<Import Project="..\packages\runtime.win10-x64.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-x64.Microsoft.Net.Native.Compiler.props" Condition="Exists('..\packages\runtime.win10-x64.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-x64.Microsoft.Net.Native.Compiler.props')" />
<Import Project="..\packages\runtime.win10-x64.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-x64.Microsoft.Net.Native.SharedLibrary.props" Condition="Exists('..\packages\runtime.win10-x64.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-x64.Microsoft.Net.Native.SharedLibrary.props')" />
<Import Project="..\packages\runtime.win10-arm64.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-arm64.Microsoft.Net.Native.SharedLibrary.props" Condition="Exists('..\packages\runtime.win10-arm64.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-arm64.Microsoft.Net.Native.SharedLibrary.props')" />
<Import Project="..\packages\runtime.win10-arm.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-arm.Microsoft.Net.Native.Compiler.props" Condition="Exists('..\packages\runtime.win10-arm.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-arm.Microsoft.Net.Native.Compiler.props')" />
<Import Project="..\packages\runtime.win10-arm.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-arm.Microsoft.Net.Native.SharedLibrary.props" Condition="Exists('..\packages\runtime.win10-arm.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-arm.Microsoft.Net.Native.SharedLibrary.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -12,8 +26,8 @@
<AssemblyName>ModernKeePass</AssemblyName>
<DefaultLanguage>en-US</DefaultLanguage>
<EnableDotNetNativeCompatibleProfile>true</EnableDotNetNativeCompatibleProfile>
<TargetPlatformVersion>10.0.14393.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.14393.0</TargetPlatformMinVersion>
<TargetPlatformVersion>10.0.18362.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
@@ -99,6 +113,7 @@
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
</Compile>
<Compile Include="DependencyInjection.cs" />
<Compile Include="Views\UserControls\UpdateCredentialsUserControl.xaml.cs">
<DependentUpon>UpdateCredentialsUserControl.xaml</DependentUpon>
</Compile>
@@ -448,11 +463,91 @@
<Name>Infrastructure</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Reference Include="AutoMapper.Extensions.Microsoft.DependencyInjection, Version=0.0.0.0, Culture=neutral, PublicKeyToken=e767ac9c89543656, processorArchitecture=MSIL">
<HintPath>..\packages\AutoMapper.Extensions.Microsoft.DependencyInjection.7.0.0\lib\netstandard2.0\AutoMapper.Extensions.Microsoft.DependencyInjection.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.AppCenter.Crashes, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.AppCenter.Crashes.3.2.1\lib\uap10.0\Microsoft.AppCenter.Crashes.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="SQLitePCLRaw.batteries_v2, Version=2.0.2.669, Culture=neutral, PublicKeyToken=8226ea5df37bcae9, processorArchitecture=MSIL">
<HintPath>..\packages\SQLitePCLRaw.bundle_green.2.0.2\lib\netstandard2.0\SQLitePCLRaw.batteries_v2.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="SQLitePCLRaw.core, Version=2.0.2.669, Culture=neutral, PublicKeyToken=1488e028ca7ab535, processorArchitecture=MSIL">
<HintPath>..\packages\SQLitePCLRaw.core.2.0.2\lib\netstandard2.0\SQLitePCLRaw.core.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="SQLitePCLRaw.provider.e_sqlite3, Version=2.0.2.669, Culture=neutral, PublicKeyToken=9c301db686d0bd12, processorArchitecture=MSIL">
<HintPath>..\packages\SQLitePCLRaw.provider.e_sqlite3.2.0.2\lib\uap10.0\SQLitePCLRaw.provider.e_sqlite3.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Reflection.Emit, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Reflection.Emit.4.7.0\lib\netcore50\System.Reflection.Emit.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System.Reflection.Emit.ILGeneration, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\System.Reflection.Emit.ILGeneration.4.7.0\lib\netcore50\System.Reflection.Emit.ILGeneration.dll</HintPath>
<Private>True</Private>
</Reference>
</ItemGroup>
<Import Project="..\WinAppCommon\WinAppCommon.projitems" Label="Shared" />
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
<Import Project="..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets" Condition="Exists('..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<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>
</PropertyGroup>
<Error Condition="!Exists('..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NETStandard.Library.2.0.3\build\netstandard2.0\NETStandard.Library.targets'))" />
<Error Condition="!Exists('..\packages\runtime.win10-arm.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-arm.Microsoft.Net.Native.SharedLibrary.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\runtime.win10-arm.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-arm.Microsoft.Net.Native.SharedLibrary.props'))" />
<Error Condition="!Exists('..\packages\runtime.win10-arm.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-arm.Microsoft.Net.Native.SharedLibrary.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\runtime.win10-arm.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-arm.Microsoft.Net.Native.SharedLibrary.targets'))" />
<Error Condition="!Exists('..\packages\runtime.win10-arm.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-arm.Microsoft.Net.Native.Compiler.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\runtime.win10-arm.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-arm.Microsoft.Net.Native.Compiler.props'))" />
<Error Condition="!Exists('..\packages\runtime.win10-arm.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-arm.Microsoft.Net.Native.Compiler.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\runtime.win10-arm.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-arm.Microsoft.Net.Native.Compiler.targets'))" />
<Error Condition="!Exists('..\packages\runtime.win10-arm64.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-arm64.Microsoft.Net.Native.SharedLibrary.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\runtime.win10-arm64.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-arm64.Microsoft.Net.Native.SharedLibrary.props'))" />
<Error Condition="!Exists('..\packages\runtime.win10-arm64.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-arm64.Microsoft.Net.Native.SharedLibrary.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\runtime.win10-arm64.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-arm64.Microsoft.Net.Native.SharedLibrary.targets'))" />
<Error Condition="!Exists('..\packages\runtime.win10-x64.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-x64.Microsoft.Net.Native.SharedLibrary.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\runtime.win10-x64.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-x64.Microsoft.Net.Native.SharedLibrary.props'))" />
<Error Condition="!Exists('..\packages\runtime.win10-x64.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-x64.Microsoft.Net.Native.SharedLibrary.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\runtime.win10-x64.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-x64.Microsoft.Net.Native.SharedLibrary.targets'))" />
<Error Condition="!Exists('..\packages\runtime.win10-x64.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-x64.Microsoft.Net.Native.Compiler.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\runtime.win10-x64.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-x64.Microsoft.Net.Native.Compiler.props'))" />
<Error Condition="!Exists('..\packages\runtime.win10-x64.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-x64.Microsoft.Net.Native.Compiler.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\runtime.win10-x64.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-x64.Microsoft.Net.Native.Compiler.targets'))" />
<Error Condition="!Exists('..\packages\runtime.win10-x86.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-x86.Microsoft.Net.Native.SharedLibrary.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\runtime.win10-x86.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-x86.Microsoft.Net.Native.SharedLibrary.props'))" />
<Error Condition="!Exists('..\packages\runtime.win10-x86.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-x86.Microsoft.Net.Native.SharedLibrary.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\runtime.win10-x86.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-x86.Microsoft.Net.Native.SharedLibrary.targets'))" />
<Error Condition="!Exists('..\packages\runtime.win10-x86.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-x86.Microsoft.Net.Native.Compiler.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\runtime.win10-x86.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-x86.Microsoft.Net.Native.Compiler.props'))" />
<Error Condition="!Exists('..\packages\runtime.win10-x86.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-x86.Microsoft.Net.Native.Compiler.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\runtime.win10-x86.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-x86.Microsoft.Net.Native.Compiler.targets'))" />
<Error Condition="!Exists('..\packages\Microsoft.Net.Native.Compiler.2.2.3\build\Microsoft.Net.Native.Compiler.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Net.Native.Compiler.2.2.3\build\Microsoft.Net.Native.Compiler.props'))" />
<Error Condition="!Exists('..\packages\Microsoft.Net.Native.Compiler.2.2.3\build\Microsoft.Net.Native.Compiler.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Net.Native.Compiler.2.2.3\build\Microsoft.Net.Native.Compiler.targets'))" />
<Error Condition="!Exists('..\packages\Microsoft.NETCore.UniversalWindowsPlatform.6.2.8\build\Microsoft.NETCore.UniversalWindowsPlatform.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.NETCore.UniversalWindowsPlatform.6.2.8\build\Microsoft.NETCore.UniversalWindowsPlatform.props'))" />
<Error Condition="!Exists('..\packages\Microsoft.NETCore.UniversalWindowsPlatform.6.2.8\build\Microsoft.NetCore.UniversalWindowsPlatform.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.NETCore.UniversalWindowsPlatform.6.2.8\build\Microsoft.NetCore.UniversalWindowsPlatform.targets'))" />
<Error Condition="!Exists('..\packages\runtime.win10-arm.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-arm.Microsoft.Net.UWPCoreRuntimeSdk.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\runtime.win10-arm.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-arm.Microsoft.Net.UWPCoreRuntimeSdk.props'))" />
<Error Condition="!Exists('..\packages\runtime.win10-arm.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-arm.Microsoft.Net.UWPCoreRuntimeSdk.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\runtime.win10-arm.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-arm.Microsoft.Net.UWPCoreRuntimeSdk.targets'))" />
<Error Condition="!Exists('..\packages\runtime.win10-x64.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-x64.Microsoft.Net.UWPCoreRuntimeSdk.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\runtime.win10-x64.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-x64.Microsoft.Net.UWPCoreRuntimeSdk.props'))" />
<Error Condition="!Exists('..\packages\runtime.win10-x64.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-x64.Microsoft.Net.UWPCoreRuntimeSdk.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\runtime.win10-x64.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-x64.Microsoft.Net.UWPCoreRuntimeSdk.targets'))" />
<Error Condition="!Exists('..\packages\runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk.props'))" />
<Error Condition="!Exists('..\packages\runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk.targets'))" />
<Error Condition="!Exists('..\packages\Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\Microsoft.Net.UWPCoreRuntimeSdk.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\Microsoft.Net.UWPCoreRuntimeSdk.props'))" />
<Error Condition="!Exists('..\packages\runtime.win10-arm64.Microsoft.Net.Native.Compiler.2.2.4\build\runtime.win10-arm64.Microsoft.Net.Native.Compiler.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\runtime.win10-arm64.Microsoft.Net.Native.Compiler.2.2.4\build\runtime.win10-arm64.Microsoft.Net.Native.Compiler.props'))" />
<Error Condition="!Exists('..\packages\runtime.win10-arm64.Microsoft.Net.Native.Compiler.2.2.4\build\runtime.win10-arm64.Microsoft.Net.Native.Compiler.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\runtime.win10-arm64.Microsoft.Net.Native.Compiler.2.2.4\build\runtime.win10-arm64.Microsoft.Net.Native.Compiler.targets'))" />
</Target>
<Import Project="..\packages\runtime.win10-arm.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-arm.Microsoft.Net.Native.SharedLibrary.targets" Condition="Exists('..\packages\runtime.win10-arm.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-arm.Microsoft.Net.Native.SharedLibrary.targets')" />
<Import Project="..\packages\runtime.win10-arm.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-arm.Microsoft.Net.Native.Compiler.targets" Condition="Exists('..\packages\runtime.win10-arm.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-arm.Microsoft.Net.Native.Compiler.targets')" />
<Import Project="..\packages\runtime.win10-arm64.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-arm64.Microsoft.Net.Native.SharedLibrary.targets" Condition="Exists('..\packages\runtime.win10-arm64.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-arm64.Microsoft.Net.Native.SharedLibrary.targets')" />
<Import Project="..\packages\runtime.win10-x64.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-x64.Microsoft.Net.Native.SharedLibrary.targets" Condition="Exists('..\packages\runtime.win10-x64.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-x64.Microsoft.Net.Native.SharedLibrary.targets')" />
<Import Project="..\packages\runtime.win10-x64.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-x64.Microsoft.Net.Native.Compiler.targets" Condition="Exists('..\packages\runtime.win10-x64.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-x64.Microsoft.Net.Native.Compiler.targets')" />
<Import Project="..\packages\runtime.win10-x86.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-x86.Microsoft.Net.Native.SharedLibrary.targets" Condition="Exists('..\packages\runtime.win10-x86.Microsoft.Net.Native.SharedLibrary.2.2.3\build\runtime.win10-x86.Microsoft.Net.Native.SharedLibrary.targets')" />
<Import Project="..\packages\runtime.win10-x86.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-x86.Microsoft.Net.Native.Compiler.targets" Condition="Exists('..\packages\runtime.win10-x86.Microsoft.Net.Native.Compiler.2.2.3\build\runtime.win10-x86.Microsoft.Net.Native.Compiler.targets')" />
<Import Project="..\packages\Microsoft.Net.Native.Compiler.2.2.3\build\Microsoft.Net.Native.Compiler.targets" Condition="Exists('..\packages\Microsoft.Net.Native.Compiler.2.2.3\build\Microsoft.Net.Native.Compiler.targets')" />
<Import Project="..\packages\Microsoft.NETCore.UniversalWindowsPlatform.6.2.8\build\Microsoft.NetCore.UniversalWindowsPlatform.targets" Condition="Exists('..\packages\Microsoft.NETCore.UniversalWindowsPlatform.6.2.8\build\Microsoft.NetCore.UniversalWindowsPlatform.targets')" />
<Import Project="..\packages\runtime.win10-arm.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-arm.Microsoft.Net.UWPCoreRuntimeSdk.targets" Condition="Exists('..\packages\runtime.win10-arm.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-arm.Microsoft.Net.UWPCoreRuntimeSdk.targets')" />
<Import Project="..\packages\runtime.win10-x64.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-x64.Microsoft.Net.UWPCoreRuntimeSdk.targets" Condition="Exists('..\packages\runtime.win10-x64.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-x64.Microsoft.Net.UWPCoreRuntimeSdk.targets')" />
<Import Project="..\packages\runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk.targets" Condition="Exists('..\packages\runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk.2.2.10\build\runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk.targets')" />
<Import Project="..\packages\runtime.win10-arm64.Microsoft.Net.Native.Compiler.2.2.4\build\runtime.win10-arm64.Microsoft.Net.Native.Compiler.targets" Condition="Exists('..\packages\runtime.win10-arm64.Microsoft.Net.Native.Compiler.2.2.4\build\runtime.win10-arm64.Microsoft.Net.Native.Compiler.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">

View File

@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="AutoMapper" version="9.0.0" targetFramework="uap10.0.17763" />
<package id="AutoMapper.Extensions.Microsoft.DependencyInjection" version="7.0.0" targetFramework="uap10.0.17763" />
<package id="MediatR" version="8.0.1" targetFramework="uap10.0.17763" />
<package id="Microsoft.AppCenter" version="3.2.1" targetFramework="uap10.0.17763" />
<package id="Microsoft.AppCenter.Analytics" version="3.2.1" targetFramework="uap10.0.17763" />
<package id="Microsoft.AppCenter.Crashes" version="3.2.1" targetFramework="uap10.0.17763" />
<package id="Microsoft.CSharp" version="4.7.0" targetFramework="uap10.0.17763" />
<package id="Microsoft.Extensions.DependencyInjection.Abstractions" version="3.1.3" targetFramework="uap10.0.17763" />
<package id="Microsoft.Net.Native.Compiler" version="2.2.3" targetFramework="uap10.0.17763" developmentDependency="true" />
<package id="Microsoft.Net.UWPCoreRuntimeSdk" version="2.2.10" targetFramework="uap10.0.17763" />
<package id="Microsoft.NETCore.Platforms" version="3.1.0" targetFramework="uap10.0.17763" />
<package id="Microsoft.NETCore.Targets" version="3.1.0" targetFramework="uap10.0.17763" />
<package id="Microsoft.NETCore.UniversalWindowsPlatform" version="6.2.8" targetFramework="uap10.0.17763" />
<package id="NETStandard.Library" version="2.0.3" targetFramework="uap10.0.17763" />
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="uap10.0.17763" />
<package id="runtime.win10-arm.Microsoft.Net.Native.Compiler" version="2.2.3" targetFramework="uap10.0.17763" developmentDependency="true" />
<package id="runtime.win10-arm.Microsoft.Net.Native.SharedLibrary" version="2.2.3" targetFramework="uap10.0.17763" developmentDependency="true" />
<package id="runtime.win10-arm.Microsoft.Net.UWPCoreRuntimeSdk" version="2.2.10" targetFramework="uap10.0.17763" />
<package id="runtime.win10-arm64.Microsoft.Net.Native.Compiler" version="2.2.4" targetFramework="uap10.0.17763" developmentDependency="true" />
<package id="runtime.win10-arm64.Microsoft.Net.Native.SharedLibrary" version="2.2.3" targetFramework="uap10.0.17763" developmentDependency="true" />
<package id="runtime.win10-x64.Microsoft.Net.Native.Compiler" version="2.2.3" targetFramework="uap10.0.17763" developmentDependency="true" />
<package id="runtime.win10-x64.Microsoft.Net.Native.SharedLibrary" version="2.2.3" targetFramework="uap10.0.17763" developmentDependency="true" />
<package id="runtime.win10-x64.Microsoft.Net.UWPCoreRuntimeSdk" version="2.2.10" targetFramework="uap10.0.17763" />
<package id="runtime.win10-x86.Microsoft.Net.Native.Compiler" version="2.2.3" targetFramework="uap10.0.17763" developmentDependency="true" />
<package id="runtime.win10-x86.Microsoft.Net.Native.SharedLibrary" version="2.2.3" targetFramework="uap10.0.17763" developmentDependency="true" />
<package id="runtime.win10-x86.Microsoft.Net.UWPCoreRuntimeSdk" version="2.2.10" targetFramework="uap10.0.17763" />
<package id="SQLitePCLRaw.bundle_green" version="2.0.2" targetFramework="uap10.0.17763" />
<package id="SQLitePCLRaw.core" version="2.0.2" targetFramework="uap10.0.17763" />
<package id="SQLitePCLRaw.lib.e_sqlite3" version="2.0.2" targetFramework="uap10.0.17763" />
<package id="SQLitePCLRaw.provider.e_sqlite3" version="2.0.2" targetFramework="uap10.0.17763" />
<package id="System.Collections.Immutable" version="1.7.0" targetFramework="uap10.0.17763" />
<package id="System.IO" version="4.3.0" targetFramework="uap10.0.17763" />
<package id="System.Memory" version="4.5.4" targetFramework="uap10.0.17763" />
<package id="System.Reflection" version="4.3.0" targetFramework="uap10.0.17763" />
<package id="System.Reflection.Emit" version="4.7.0" targetFramework="uap10.0.17763" />
<package id="System.Reflection.Emit.ILGeneration" version="4.7.0" targetFramework="uap10.0.17763" />
<package id="System.Reflection.Metadata" version="1.8.0" targetFramework="uap10.0.17763" />
<package id="System.Reflection.Primitives" version="4.3.0" targetFramework="uap10.0.17763" />
<package id="System.Runtime" version="4.3.1" targetFramework="uap10.0.17763" />
<package id="System.Runtime.CompilerServices.Unsafe" version="4.7.1" targetFramework="uap10.0.17763" />
<package id="System.Text.Encoding" version="4.3.0" targetFramework="uap10.0.17763" />
<package id="System.Threading.Tasks" version="4.3.0" targetFramework="uap10.0.17763" />
</packages>