ElectronNET.Blazor
ElectronNET.Blazor copied to clipboard
ReadMe Clarification
I ran into a few snags following the ReadME -
Step 1 - Make sure you can view preRelease packages (checkbox in NugetPackage manager) and add the nuget package to the Server project.
Step 2 - Add using statements to program.cs
using ElectronNET.API;
using Microsoft.Extensions.Hosting;
Step 3 - Add using statements to startup.cs
using ElectronNET.API;
using Microsoft.Extensions.FileProviders;
using System.Threading.Tasks;
Step 5 - Would not install until I specified a version. (--version 5.22.14)
Step 7 - From the screenshot, it appears that you are creating a complete profile with various attributes, versus just adding of the Environment Var.
After completing the above and clicking on the green arrow, I get a notification in the console window indicating that the current working directory does not contain a project or solution file.
Start Electron Desktop Application...
Microsoft Windows [Version 10.0.18362.267]
(c) 2019 Microsoft Corporation. All rights reserved.
C:\Users\chrism\source\repos\learning\BlazorAspNetCoreHosted\BlazorAspNetCoreHosted.Server\bin\Release\netcoreapp3.0>dotnet publish -r win-x64 --output "C:\Users\chrism\source\repos\learning\BlazorAspNetCoreHosted\BlazorAspNetCoreHosted.Server\bin\Release\netcoreapp3.0\obj\Host\bin"
Microsoft (R) Build Engine version 16.3.0-preview-19329-01+d31fdbf01 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
C:\Users\chrism\source\repos\learning\BlazorAspNetCoreHosted\BlazorAspNetCoreHosted.Server\bin\Release\netcoreapp3.0>
Error occurred during dotnet publish: 1
C:\Users\chrism\.dotnet\tools\electronize.exe (process 10440) exited with code -1.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .