Runnable
This commit is contained in:
parent
0d32e6a5c3
commit
527efff89a
2 changed files with 16 additions and 0 deletions
12
app/Directory.Build.props
Normal file
12
app/Directory.Build.props
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
<Project>
|
||||||
|
<!-- See https://aka.ms/dotnet/msbuild/customize for more details on customizing your build -->
|
||||||
|
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))"
|
||||||
|
Condition="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../')) != ''" />
|
||||||
|
<PropertyGroup>
|
||||||
|
|
||||||
|
<PublishSingleFile>true</PublishSingleFile>
|
||||||
|
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
|
||||||
|
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
|
||||||
|
|
||||||
|
</PropertyGroup>
|
||||||
|
</Project>
|
||||||
|
|
@ -3,7 +3,9 @@ using Avalonia.ReactiveUI;
|
||||||
using Avalonia.Threading;
|
using Avalonia.Threading;
|
||||||
|
|
||||||
using InkForge.Common;
|
using InkForge.Common;
|
||||||
|
using InkForge.Common.ViewModels;
|
||||||
using InkForge.Data;
|
using InkForge.Data;
|
||||||
|
using InkForge.Desktop.Views;
|
||||||
|
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
|
|
@ -35,6 +37,8 @@ static class Program
|
||||||
mutableResolver.InitializeReactiveUI();
|
mutableResolver.InitializeReactiveUI();
|
||||||
|
|
||||||
services.AddInkForge();
|
services.AddInkForge();
|
||||||
|
|
||||||
|
services.AddTransient<IViewFor<AppViewModel>, MainWindow>();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void OnSetup(this IServiceCollection services, AppBuilder appBuilder)
|
private static void OnSetup(this IServiceCollection services, AppBuilder appBuilder)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue