diff --git a/ElectronNET.API/ElectronNET.API.csproj b/ElectronNET.API/ElectronNET.API.csproj index a7695f6..8dc1d86 100644 --- a/ElectronNET.API/ElectronNET.API.csproj +++ b/ElectronNET.API/ElectronNET.API.csproj @@ -2,10 +2,14 @@ netcoreapp2.0 + true + ..\artifacts + ElectronNET.API + diff --git a/ElectronNET.CLI/ElectronNET.CLI.csproj b/ElectronNET.CLI/ElectronNET.CLI.csproj new file mode 100644 index 0000000..7a7107b --- /dev/null +++ b/ElectronNET.CLI/ElectronNET.CLI.csproj @@ -0,0 +1,15 @@ + + + + Exe + netcoreapp2.0 + dotnet-electronize + + DotnetCliTool + true + ..\artifacts + ElectronNET.CLI + 1.0.0 + + + diff --git a/ElectronNET.CLI/Program.cs b/ElectronNET.CLI/Program.cs new file mode 100644 index 0000000..ae703d3 --- /dev/null +++ b/ElectronNET.CLI/Program.cs @@ -0,0 +1,12 @@ +using System; + +namespace ElectronNET.CLI +{ + class Program + { + static void Main(string[] args) + { + Console.WriteLine("Hello World from electronize xy"); + } + } +} diff --git a/ElectronNET.WebApp/ElectronNET.WebApp.csproj b/ElectronNET.WebApp/ElectronNET.WebApp.csproj index ea1532a..33d154c 100644 --- a/ElectronNET.WebApp/ElectronNET.WebApp.csproj +++ b/ElectronNET.WebApp/ElectronNET.WebApp.csproj @@ -10,6 +10,7 @@ + @@ -19,9 +20,8 @@ - + - + - diff --git a/ElectronNET.sln b/ElectronNET.sln index 6b6ce4c..dc49e76 100644 --- a/ElectronNET.sln +++ b/ElectronNET.sln @@ -1,11 +1,13 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 -VisualStudioVersion = 15.0.26730.16 +VisualStudioVersion = 15.0.26730.3 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ElectronNET.WebApp", "ElectronNET.WebApp\ElectronNET.WebApp.csproj", "{7C048379-401C-4345-B5E7-BE232DEA8157}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ElectronNET.WebApp", "ElectronNET.WebApp\ElectronNET.WebApp.csproj", "{7C048379-401C-4345-B5E7-BE232DEA8157}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ElectronNET.API", "ElectronNET.API\ElectronNET.API.csproj", "{A78157BA-B754-45F1-969F-D6A513CA0E72}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ElectronNET.API", "ElectronNET.API\ElectronNET.API.csproj", "{A78157BA-B754-45F1-969F-D6A513CA0E72}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ElectronNET.CLI", "ElectronNET.CLI\ElectronNET.CLI.csproj", "{CE3EB0F2-DA39-427A-85D2-E00D660EBFDE}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -21,6 +23,10 @@ Global {A78157BA-B754-45F1-969F-D6A513CA0E72}.Debug|Any CPU.Build.0 = Debug|Any CPU {A78157BA-B754-45F1-969F-D6A513CA0E72}.Release|Any CPU.ActiveCfg = Release|Any CPU {A78157BA-B754-45F1-969F-D6A513CA0E72}.Release|Any CPU.Build.0 = Release|Any CPU + {CE3EB0F2-DA39-427A-85D2-E00D660EBFDE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CE3EB0F2-DA39-427A-85D2-E00D660EBFDE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CE3EB0F2-DA39-427A-85D2-E00D660EBFDE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CE3EB0F2-DA39-427A-85D2-E00D660EBFDE}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/NuGet.config b/NuGet.config new file mode 100644 index 0000000..01f8e3e --- /dev/null +++ b/NuGet.config @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index b4f71cd..ba27501 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,31 @@ # ElectronNET Build cross platform desktop apps with .NET Core and ASP.NET NET Core. + +## Dev Notes: + +Currently there are two main projects and a "WebApp" that serves as a demo playground. + +* ElectronNET.API: Defines the Electron / .NET API bridge +* ElectronNET.CLI: Responsible for the dotnet "electronize" tooling. + +Both projects create their own nuget package. The resulting nuget packages are saved under "/artifacts". + +__Currently__ the packages are just build with version 1.0.0. If you change something you need to clear the nuget cache under this directory (because the version number doesn't change): + + %userprofile%\.nuget\packages + +The solution contains a NuGet.config which points to the artifacts directory, so we can just use the produced NuGet packages without uploading to NuGet.org. + +__ElectronNET.WebApp:__ + +The WebApp now has referenced the API NuGet package and via the .csproj reference the CLI: + + + + + +## Dev Notes: Usage + +Navigate to the WebApp folder and type this in a command prompt: + + dotnet electronize \ No newline at end of file