Extract Windows only dependencies from shared .netstandard projects

This commit is contained in:
John Lewin 2018-10-19 15:53:16 -07:00
parent a9e0953e11
commit 6ea0de691c
10 changed files with 47 additions and 3291 deletions

View file

@ -40,6 +40,7 @@ using MatterHackers.MatterControl.PrintQueue;
using MatterHackers.MatterControl.SlicerConfiguration;
using MatterHackers.SerialPortCommunication.FrostedSerial;
using Microsoft.Extensions.Configuration;
using SQLiteWin32;
namespace MatterHackers.MatterControl
{
@ -122,7 +123,7 @@ namespace MatterHackers.MatterControl
// Make sure we have the right working directory as we assume everything relative to the executable.
Directory.SetCurrentDirectory(Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location));
Datastore.Instance.Initialize();
Datastore.Instance.Initialize(DesktopSqlite.CreateInstance());
// Init platformFeaturesProvider before ShowAsSystemWindow
string platformFeaturesProvider = "MatterHackers.MatterControl.WindowsPlatformsFeatures, MatterControl.Winforms";