mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-07-18 14:47:43 +00:00
migrate from .net core 1.1 to 2.0
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp1.1</TargetFramework>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user