diff --git a/Changelog.md b/Changelog.md index 07d923e..9018562 100644 --- a/Changelog.md +++ b/Changelog.md @@ -65,12 +65,12 @@ ElectronNET.API: ElectronNET.CLI: * More options on the 'build' command, e.g. for a 32bit debug build with electron prune: build /target custom win7-x86;win32 /dotnet-configuration Debug /electron-arch ia32 /electron-params "--prune=true " -* .NET Core project is now build with Release configuration, but can be adjusted with the new params. +* .NET Core project is now built with Release configuration but can be adjusted with the new params. * Be aware: "Breaking" (but because of the alpha status of this project, we won't use SemVer) # 0.0.8 -This version was skipped because we unfortunatly released a pre version of this on NuGet. +This version was skipped because we unfortunately released a pre-version of this on NuGet. # 0.0.7 @@ -83,7 +83,7 @@ ElectronNET.CLI: ElectronNET.CLI: -* nuget packages are now release bits and have the correct assembly verion +* nuget packages are now release bits and have the correct assembly version * Version command * better devCleanup.cmd * Better Platform Support Issue - thanks to @Petermarcu diff --git a/ElectronNET.API/App.cs b/ElectronNET.API/App.cs index 9f8de95..ea939e2 100644 --- a/ElectronNET.API/App.cs +++ b/ElectronNET.API/App.cs @@ -3,7 +3,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Newtonsoft.Json.Serialization; using System; -using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; @@ -374,7 +373,7 @@ namespace ElectronNET.API } private static App _app; - private static object _syncRoot = new Object(); + private static object _syncRoot = new object(); private JsonSerializer _jsonSerializer = new JsonSerializer() { diff --git a/ElectronNET.API/BridgeConnector.cs b/ElectronNET.API/BridgeConnector.cs index df10adb..08a8474 100644 --- a/ElectronNET.API/BridgeConnector.cs +++ b/ElectronNET.API/BridgeConnector.cs @@ -6,7 +6,7 @@ namespace ElectronNET.API internal static class BridgeConnector { private static Socket _socket; - private static object _syncRoot = new Object(); + private static object _syncRoot = new object(); public static Socket Socket { diff --git a/ElectronNET.API/Clipboard.cs b/ElectronNET.API/Clipboard.cs index 340c0f5..8281594 100644 --- a/ElectronNET.API/Clipboard.cs +++ b/ElectronNET.API/Clipboard.cs @@ -2,7 +2,6 @@ using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Newtonsoft.Json.Serialization; -using System; using System.Threading.Tasks; namespace ElectronNET.API @@ -13,7 +12,7 @@ namespace ElectronNET.API public sealed class Clipboard { private static Clipboard _clipboard; - private static object _syncRoot = new Object(); + private static object _syncRoot = new object(); internal Clipboard() { } diff --git a/ElectronNET.API/Dialog.cs b/ElectronNET.API/Dialog.cs index d95582a..7b626b4 100644 --- a/ElectronNET.API/Dialog.cs +++ b/ElectronNET.API/Dialog.cs @@ -15,7 +15,7 @@ namespace ElectronNET.API public sealed class Dialog { private static Dialog _dialog; - private static object _syncRoot = new Object(); + private static object _syncRoot = new object(); internal Dialog() { } diff --git a/ElectronNET.API/ElectronNET.API.csproj b/ElectronNET.API/ElectronNET.API.csproj index 45cdb82..5c1287a 100644 --- a/ElectronNET.API/ElectronNET.API.csproj +++ b/ElectronNET.API/ElectronNET.API.csproj @@ -10,7 +10,7 @@ Electron.NET MIT https://github.com/ElectronNET/Electron.NET/ - Building cross platform electron based desktop apps with .NET Core and ASP.NET NET Core. + Building cross platform electron based desktop apps with .NET Core and ASP.NET Core. This package contains the API to access the "native" electron API. https://github.com/ElectronNET/Electron.NET/ git diff --git a/ElectronNET.API/Entities/EnableNetworkEmulationOptions.cs b/ElectronNET.API/Entities/EnableNetworkEmulationOptions.cs index dcac2bf..967cc53 100644 --- a/ElectronNET.API/Entities/EnableNetworkEmulationOptions.cs +++ b/ElectronNET.API/Entities/EnableNetworkEmulationOptions.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace ElectronNET.API.Entities +namespace ElectronNET.API.Entities { /// /// diff --git a/ElectronNET.API/Entities/LoadURLOptions.cs b/ElectronNET.API/Entities/LoadURLOptions.cs index 298cd53..606a262 100644 --- a/ElectronNET.API/Entities/LoadURLOptions.cs +++ b/ElectronNET.API/Entities/LoadURLOptions.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; - -namespace ElectronNET.API.Entities +namespace ElectronNET.API.Entities { /// /// diff --git a/ElectronNET.API/Entities/ProxyConfig.cs b/ElectronNET.API/Entities/ProxyConfig.cs index cc2e9dc..3dd9ac0 100644 --- a/ElectronNET.API/Entities/ProxyConfig.cs +++ b/ElectronNET.API/Entities/ProxyConfig.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace ElectronNET.API.Entities +namespace ElectronNET.API.Entities { /// /// diff --git a/ElectronNET.API/GlobalShortcut.cs b/ElectronNET.API/GlobalShortcut.cs index dd669bd..d2867ec 100644 --- a/ElectronNET.API/GlobalShortcut.cs +++ b/ElectronNET.API/GlobalShortcut.cs @@ -10,7 +10,7 @@ namespace ElectronNET.API public sealed class GlobalShortcut { private static GlobalShortcut _globalShortcut; - private static object _syncRoot = new Object(); + private static object _syncRoot = new object(); internal GlobalShortcut() { } diff --git a/ElectronNET.API/IpcMain.cs b/ElectronNET.API/IpcMain.cs index 2af381b..45814c2 100644 --- a/ElectronNET.API/IpcMain.cs +++ b/ElectronNET.API/IpcMain.cs @@ -14,7 +14,7 @@ namespace ElectronNET.API public sealed class IpcMain { private static IpcMain _ipcMain; - private static object _syncRoot = new Object(); + private static object _syncRoot = new object(); internal IpcMain() { } @@ -153,7 +153,7 @@ namespace ElectronNET.API { List jobjects = new List(); List jarrays = new List(); - List objects = new List(); + List objects = new List(); foreach (var parameterObject in data) { diff --git a/ElectronNET.API/Menu.cs b/ElectronNET.API/Menu.cs index dcae110..0c7d31c 100644 --- a/ElectronNET.API/Menu.cs +++ b/ElectronNET.API/Menu.cs @@ -6,7 +6,6 @@ using System.Collections.Generic; using ElectronNET.API.Extensions; using System.Linq; using System.Collections.ObjectModel; -using System; namespace ElectronNET.API { @@ -16,7 +15,7 @@ namespace ElectronNET.API public sealed class Menu { private static Menu _menu; - private static object _syncRoot = new Object(); + private static object _syncRoot = new object(); internal Menu() { } diff --git a/ElectronNET.API/Notification.cs b/ElectronNET.API/Notification.cs index 9f232b3..68ac4e1 100644 --- a/ElectronNET.API/Notification.cs +++ b/ElectronNET.API/Notification.cs @@ -15,7 +15,7 @@ namespace ElectronNET.API public sealed class Notification { private static Notification _notification; - private static object _syncRoot = new Object(); + private static object _syncRoot = new object(); internal Notification() { } diff --git a/ElectronNET.API/Screen.cs b/ElectronNET.API/Screen.cs index 72d6a4b..31cecb5 100644 --- a/ElectronNET.API/Screen.cs +++ b/ElectronNET.API/Screen.cs @@ -105,7 +105,7 @@ namespace ElectronNET.API private event Action _onDisplayMetricsChanged; private static Screen _screen; - private static object _syncRoot = new Object(); + private static object _syncRoot = new object(); internal Screen() { } diff --git a/ElectronNET.API/Shell.cs b/ElectronNET.API/Shell.cs index 58a7ad1..f29ec66 100644 --- a/ElectronNET.API/Shell.cs +++ b/ElectronNET.API/Shell.cs @@ -14,7 +14,7 @@ namespace ElectronNET.API public sealed class Shell { private static Shell _shell; - private static object _syncRoot = new Object(); + private static object _syncRoot = new object(); internal Shell() { } diff --git a/ElectronNET.API/Tray.cs b/ElectronNET.API/Tray.cs index e1b5a8e..ebad1ee 100644 --- a/ElectronNET.API/Tray.cs +++ b/ElectronNET.API/Tray.cs @@ -201,7 +201,7 @@ namespace ElectronNET.API // TODO: Implement macOS Events private static Tray _tray; - private static object _syncRoot = new Object(); + private static object _syncRoot = new object(); internal Tray() { } diff --git a/ElectronNET.API/WindowManager.cs b/ElectronNET.API/WindowManager.cs index ffd1dca..6a02aa0 100644 --- a/ElectronNET.API/WindowManager.cs +++ b/ElectronNET.API/WindowManager.cs @@ -16,7 +16,7 @@ namespace ElectronNET.API public sealed class WindowManager { private static WindowManager _windowManager; - private static object _syncRoot = new Object(); + private static object _syncRoot = new object(); internal WindowManager() { } diff --git a/ElectronNET.CLI/Commands/Actions/GetTargetPlatformInformation.cs b/ElectronNET.CLI/Commands/Actions/GetTargetPlatformInformation.cs index ecaf3cf..98cd5cf 100644 --- a/ElectronNET.CLI/Commands/Actions/GetTargetPlatformInformation.cs +++ b/ElectronNET.CLI/Commands/Actions/GetTargetPlatformInformation.cs @@ -1,7 +1,5 @@ using System; -using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Text; namespace ElectronNET.CLI.Commands.Actions { diff --git a/ElectronNET.CLI/Commands/AddCommand.cs b/ElectronNET.CLI/Commands/AddCommand.cs index cc1ba2a..065850a 100644 --- a/ElectronNET.CLI/Commands/AddCommand.cs +++ b/ElectronNET.CLI/Commands/AddCommand.cs @@ -2,8 +2,6 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using System.Runtime.InteropServices; -using System.Text; using System.Threading.Tasks; using System.Xml; using System.Xml.Linq; diff --git a/ElectronNET.CLI/Commands/InitCommand.cs b/ElectronNET.CLI/Commands/InitCommand.cs index 2d63fde..22bc71c 100644 --- a/ElectronNET.CLI/Commands/InitCommand.cs +++ b/ElectronNET.CLI/Commands/InitCommand.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.IO; using System.Linq; -using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.Xml; diff --git a/ElectronNET.CLI/Commands/StartElectronCommand.cs b/ElectronNET.CLI/Commands/StartElectronCommand.cs index ec0df01..ee661f2 100644 --- a/ElectronNET.CLI/Commands/StartElectronCommand.cs +++ b/ElectronNET.CLI/Commands/StartElectronCommand.cs @@ -47,7 +47,7 @@ namespace ElectronNET.CLI.Commands Directory.CreateDirectory(tempPath); } - var platformInfo = GetTargetPlatformInformation.Do(String.Empty, String.Empty); + var platformInfo = GetTargetPlatformInformation.Do(string.Empty, string.Empty); string tempBinPath = Path.Combine(tempPath, "bin"); var resultCode = ProcessHelper.CmdExecute($"dotnet publish -r {platformInfo.NetCorePublishRid} --output \"{tempBinPath}\"", aspCoreProjectPath); diff --git a/ElectronNET.CLI/ElectronNET.CLI.csproj b/ElectronNET.CLI/ElectronNET.CLI.csproj index 67a9b96..ec55711 100644 --- a/ElectronNET.CLI/ElectronNET.CLI.csproj +++ b/ElectronNET.CLI/ElectronNET.CLI.csproj @@ -13,7 +13,7 @@ Gregor Biswanger, Robert Muehsig Electron.NET - Building cross platform electron based desktop apps with .NET Core and ASP.NET NET Core. + Building cross platform electron based desktop apps with .NET Core and ASP.NET Core. This package contains the dotnet tooling to electronize your application. MIT https://github.com/ElectronNET/Electron.NET/ diff --git a/ElectronNET.WebApp/Controllers/AboutController.cs b/ElectronNET.WebApp/Controllers/AboutController.cs index 009638c..a426cec 100644 --- a/ElectronNET.WebApp/Controllers/AboutController.cs +++ b/ElectronNET.WebApp/Controllers/AboutController.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; namespace ElectronNET.WebApp.Controllers { diff --git a/ElectronNET.WebApp/Controllers/NotificationsController.cs b/ElectronNET.WebApp/Controllers/NotificationsController.cs index ba41e35..66b7a45 100644 --- a/ElectronNET.WebApp/Controllers/NotificationsController.cs +++ b/ElectronNET.WebApp/Controllers/NotificationsController.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc; using ElectronNET.API; using ElectronNET.API.Entities; diff --git a/ElectronNET.WebApp/Startup.cs b/ElectronNET.WebApp/Startup.cs index 93d1b27..969957c 100644 --- a/ElectronNET.WebApp/Startup.cs +++ b/ElectronNET.WebApp/Startup.cs @@ -5,7 +5,6 @@ using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; -using System.Threading.Tasks; namespace ElectronNET.WebApp {