-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathApp.xaml.cs
More file actions
29 lines (24 loc) · 883 Bytes
/
App.xaml.cs
File metadata and controls
29 lines (24 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace MyCoreConsole
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
App()
{
InitializeComponent();
// Workaround in DotNET Core preview4
// An static field is not initialized: Microsoft.Toolkit.Wpf.UI.XamlHost.WindowsXamlHostBase._metadataContainer
// Here: https://github.com/windows-toolkit/Microsoft.Toolkit.Win32/blob/master/Microsoft.Toolkit.Wpf.UI.XamlHost/WindowsXamlHostBase.cs#L30
System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(typeof(Microsoft.Toolkit.Wpf.UI.XamlHost.WindowsXamlHostBase).TypeHandle);
}
}
}