Skip to content

Commit 8df9eff

Browse files
committed
Updated repo
1 parent 14f43f4 commit 8df9eff

File tree

12 files changed

+31
-10
lines changed

12 files changed

+31
-10
lines changed

Changelog.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1+
# 0.1.0
2+
3+
## ElectronNET.Core
4+
5+
- Updated `PrintToPDFOptions` to also allow specifying the `PageSize` with an object (#769)
6+
- Added option to provide floating point value as aspect ratios with `SetAspectRatio` (#793)
7+
18
# 0.0.18
29

310
## ElectronNET.Core
411

512
### Highlights
13+
614
- **Complete MSBuild Integration**: Eliminated CLI tool dependency, moved all build processes to MSBuild with deep Visual Studio integration
715
- **Modernized Architecture**: Restructured process lifecycle with .NET launching first and running Electron as child process for better control and reliability
816
- **Cross-Platform Development**: Build and debug Linux applications directly from Windows Visual Studio via WSL integration
@@ -11,6 +19,7 @@
1119
- **Console App Support**: No longer requires ASP.NET - now works with simple console applications for file system or remote server HTML/JS
1220

1321
### Build System & Project Structure
22+
1423
- Eliminated electron.manifest.json configuration file, replaced with MSBuild project properties
1524
- Introduced new package structure: ElectronNET.Core (main package), ElectronNET.Core.Api (API definitions), ElectronNET.Core.AspNet (ASP.NET integration)
1625
- Added Runtime Identifier (RID) selection as part of project configuration
@@ -19,19 +28,22 @@
1928
- Added custom MSBuild tasks for Electron-specific build operations
2029

2130
### Development Experience
31+
2232
- Implemented unpackaged run-mode for development using regular .NET builds with unpackaged Electron configuration
2333
- Added support for building Linux packages on Windows via WSL integration
2434
- Enabled running and debugging Linux application outputs on Windows through WSL
2535
- Integrated TypeScript compilation with ASP.NET tooling for consistent builds
26-
- Added process orchestration supporting 8 different launch scenarios (packaged/unpackaged × console/ASP.NET × dotnet-first/electron-first)
36+
- Added process orchestration supporting 8 different launch scenarios (packaged/unpackaged × console/ASP.NET × dotnet-first/electron-first)
2737

2838
### Debugging & Runtime
39+
2940
- Dramatically improved debugging experience with ASP.NET-first launch mode
3041
- Added Hot Reload support for ASP.NET code during development
3142
- Implemented proper process termination handling for all exit scenarios
3243
- Minimized startup times through optimized build and launch procedures
3344

3445
### Technical Improvements
46+
3547
- Enhanced splash screen handling with automatic path resolution
3648
- Improved ElectronHostHook integration as proper npm package dependency
3749
- Updated to latest TypeScript version with ESLint configuration
@@ -40,18 +52,19 @@
4052
- Added build-time Electron version compatibility validation
4153

4254
### Package & Distribution
55+
4356
- Integrated MSBuild publishing mechanisms for creating Electron packages
4457
- Added folder publishing support with improved parameter handling
4558
- Implemented automated package.json generation from MSBuild properties
4659
- Added GitHub release automation with proper versioning
4760
- Reduced package sizes by eliminating unnecessary TypeScript dependencies
4861

4962
### Migration & Compatibility
63+
5064
- Maintained backward compatibility for existing ElectronHostHook implementations
5165
- Removed ASP.NET requirement: Now works with simple console applications for file system or remote server HTML/JS scenarios
5266
- Added support for both console and ASP.NET Core application types
5367
- Preserved all existing Electron API functionality while modernizing architecture
5468
- Added migration path for existing projects through updated package structure
5569

5670
This represents a comprehensive modernization of Electron.NET, addressing the major pain points around debugging, build complexity, and platform limitations while maintaining full API compatibility.
57-

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Any support appreciated! 🍻
155155

156156
## 🎉 License
157157

158-
MIT-licensed. See [LICENSE](./LICENSE) for details.
158+
MIT-licensed. See [LICENSE](https://github.com/ElectronNET/Electron.NET/blob/main/LICENSE) for details.
159159

160160
**Enjoy!**
161161

src/ElectronNET.API/API/BrowserWindow.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ public event Action OnClose
106106
_close -= value;
107107

108108
if (_close == null)
109+
{
109110
BridgeConnector.Socket.Off("browserWindow-close" + Id);
111+
}
110112
}
111113
}
112114

@@ -137,7 +139,9 @@ public event Action OnClosed
137139
_closed -= value;
138140

139141
if (_closed == null)
142+
{
140143
BridgeConnector.Socket.Off("browserWindow-closed" + Id);
144+
}
141145
}
142146
}
143147

src/ElectronNET.API/API/Dialog.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ internal static Dialog Instance
4848
public Task<string[]> ShowOpenDialogAsync(BrowserWindow browserWindow, OpenDialogOptions options)
4949
{
5050
var taskCompletionSource = new TaskCompletionSource<string[]>();
51-
string guid = Guid.NewGuid().ToString();
51+
var guid = Guid.NewGuid().ToString();
5252

5353
BridgeConnector.Socket.On("showOpenDialogComplete" + guid, (filePaths) =>
5454
{
@@ -75,7 +75,7 @@ public Task<string[]> ShowOpenDialogAsync(BrowserWindow browserWindow, OpenDialo
7575
public Task<string> ShowSaveDialogAsync(BrowserWindow browserWindow, SaveDialogOptions options)
7676
{
7777
var taskCompletionSource = new TaskCompletionSource<string>();
78-
string guid = Guid.NewGuid().ToString();
78+
var guid = Guid.NewGuid().ToString();
7979

8080
BridgeConnector.Socket.On("showSaveDialogComplete" + guid, (filename) =>
8181
{

src/ElectronNET.API/API/Entities/PrintToPDFOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class PrintToPDFOptions
3030
/// `A5`, `A6`, `Legal`, `Letter`, `Tabloid`, `Ledger`, or an Object containing
3131
/// `height` and `width` in inches. Defaults to `Letter`.
3232
/// </summary>
33-
public string PageSize { get; set; } = "Letter";
33+
public object PageSize { get; set; } = "Letter";
3434

3535
/// <summary>
3636
/// Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string,

src/ElectronNET.API/ElectronNET.API.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
</ItemGroup>
2121
<ItemGroup>
2222
<None Include="PackageIcon.png" Pack="true" PackagePath="\" />
23+
<None Include="../../README.md" Pack="true" PackagePath="\" />
2324
</ItemGroup>
2425
<ItemGroup>
2526
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">

src/ElectronNET.AspNet/ElectronNET.AspNet.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
</ItemGroup>
3232
<ItemGroup>
3333
<None Include="PackageIcon.png" Pack="true" PackagePath="\" />
34+
<None Include="../../README.md" Pack="true" PackagePath="\" />
3435
</ItemGroup>
3536
<ItemGroup>
3637
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">

src/ElectronNET.ConsoleApp/ElectronNET.ConsoleApp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<ProjectReference Include="..\ElectronNET.API\ElectronNET.API.csproj" Condition="$(ElectronNetDevMode)" />
7070
</ItemGroup>
7171
<ItemGroup>
72-
<PackageReference Include="ElectronNET.Core" Version="0.0.18" Condition="'$(ElectronNetDevMode)' != 'True'" />
72+
<PackageReference Include="ElectronNET.Core" Version="0.1.0" Condition="'$(ElectronNetDevMode)' != 'True'" />
7373
</ItemGroup>
7474

7575
<Import Project="..\ElectronNET\build\ElectronNET.targets" Condition="$(ElectronNetDevMode)" />

src/ElectronNET.WebApp/ElectronNET.WebApp.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@
7171
<ProjectReference Include="..\ElectronNET.AspNet\ElectronNET.AspNet.csproj" Condition="$(ElectronNetDevMode)" />
7272
</ItemGroup>
7373
<ItemGroup>
74-
<PackageReference Include="ElectronNET.Core" Version="0.0.18" Condition="'$(ElectronNetDevMode)' != 'True'" />
75-
<PackageReference Include="ElectronNET.Core.AspNet" Version="0.0.18" Condition="'$(ElectronNetDevMode)' != 'True'" />
74+
<PackageReference Include="ElectronNET.Core" Version="0.1.0" Condition="'$(ElectronNetDevMode)' != 'True'" />
75+
<PackageReference Include="ElectronNET.Core.AspNet" Version="0.1.0" Condition="'$(ElectronNetDevMode)' != 'True'" />
7676
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="5.9.3" />
7777
</ItemGroup>
7878

src/ElectronNET/ElectronNET.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
</PropertyGroup>
1414
<ItemGroup>
1515
<None Include="PackageIcon.png" Pack="true" PackagePath="\" />
16+
<None Include="../../README.md" Pack="true" PackagePath="\" />
1617
</ItemGroup>
1718
<ItemGroup>
1819
<Folder Include=".electron\" />

0 commit comments

Comments
 (0)