dsuryd / dotNetify-react-template

Real-time React SPA template using dotNetify.
https://dotnetify.net/react
Apache License 2.0
203 stars 57 forks source link

deploy as selfhosted .exe #6

Closed DG4ever closed 6 years ago

DG4ever commented 6 years ago

I am trying to publish this example as a self hosted .exe. I am publishing the project with: dotnet publish -c release -r win7-x64 The .exe is generated but when running it crashes at BuildWebHost(args).Run(); I also tried running the .dll with dotnet projectname.dll inside the release folder but that produces the same error. Running the project with dotnet run works as expected. Do you have an advice what I might doing wrong?

dsuryd commented 6 years ago

Which example? I have tested both HelloWorld and LiveChart. One or both will require you to run 'npm i' on the publish folder and then copy webpack.config.js in there. I've tested them on Win10, works fine. If you've done all these things, perhaps it's something to do with Win7.

dsuryd commented 6 years ago

Successfully tested the ReactTemplate on a Win7 using the following steps:

DG4ever commented 6 years ago

Thank you for the fast response. Now it is working as expected.