ConfigurationBuilder in Startup.cs Causes Freeze
See original GitHub issueI have the following code with my Startup.cs to load configuration settings from appsettings.json:
IConfigurationRoot config = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("appsettings.json").Build();
If I comment this code out and run dotnet electronize start, everthing runs normally. But with this code in place, when I run dotnet electronize start, package manager starts working through compiling but then hangs here in package manager:
Invoke electron.cmd - in dir: C:\Users\TEST\Documents\Visual Studio 2017\Projects\TESTElecNet\TEST\TEST\obj\Host\node_modules.bin Microsoft Windows [Version 6.3.9600] © 2013 Microsoft Corporation. All rights reserved.
C:\Users\Pete\Documents\Visual Studio 2017\Projects\TESTElecNet\TEST\TEST\obj\Host\node_modules.bin>electron.cmd “…..\main.js”
stdout: Use Electron Port: 58008
Any ideas? Thanks for your help!
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top GitHub Comments
Hi Robert,
I tried your sample and it works! Thanks so much for your help. I really like what you guys have done here. Thank you for sharing it with us.
Regards, Pete
I enhanced my sample and access the appsettings, which is more or less the same thing as accessing the connectionString and it worked without problems, but I used the new ASP.NET Core 2.0 “style”. Could you take a look at our sample and see if this helps?