mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
dotnet electronize start command throws errors when used with the react net core template on development
#160
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @psimoesbits on GitHub (May 18, 2018).
Originally assigned to: @GregorBiswanger on GitHub.
First of all, congratulations for this great project.
The react net core template (
dotnet new react) has a hot reloading feature that it is activated in the development environment usingUseWebpackDevMiddlewareTo activate this environment is needed to define this environment variable:
SET ASPNETCORE_Environment=Developmentand configured like this:It runs fine when running it with
dotnet run, however, there is an error thrown when it is started withdotnet electronize start. I think the problem is related to the content root folder.With
dotnet runthe content root folder is:C:\Users\pedro\Documents\Projects\crypto.experiments\Crypto.NetCore.GUI(project root)With
dotnet electronize startthe content root folder is:C:\Users\pedro\Documents\Projects\crypto.experiments\Crypto.NetCore.GUI\obj\Host\bin\(executable folder)@GregorBiswanger commented on GitHub (Sep 26, 2018):
Hello @pedrosimoes79
do you use the new .NET Core 2.1 version?
Best,
Gregor