migrate from .net core 1.1 to 2.0

This commit is contained in:
Gregor Biswanger
2017-10-03 04:17:14 +02:00
parent 852d3c170d
commit a0a3e6fc15
8 changed files with 52 additions and 31 deletions

View File

@@ -12,7 +12,7 @@ namespace ElectronNET.API
private readonly Socket _socket;
private readonly JsonSerializer _jsonSerializer;
public App(int width, int height)
public App(int width, int height, bool show)
{
_jsonSerializer = new JsonSerializer()
{
@@ -26,7 +26,8 @@ namespace ElectronNET.API
var browserWindowOptions = new BrowserWindowOptions() {
Height = height,
Width = width
Width = width,
Show = show
};
socket.Emit("createBrowserWindow", JObject.FromObject(browserWindowOptions, _jsonSerializer));

View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp1.1</TargetFramework>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>