Closed grofit closed 2 years ago
If you have razor pages, they should run in the native window, but declaring the entire project as such is not correct. (at that point it would actually be a Web App). It should remain a console app. Also the [STAThread] is required for the Photino application to fire up in Windows, which you seem to have omitted in your changes.
Ah ok, the code on the readme threw me as that implied we should be using the new containerless style program code, and the samples were using the web sdk types. Will give that a swap and report back.
Yep changed those 2 above things and swapped it to use _framework/blazor.webview.js
in the index and it works as expected, thanks for your assistance!
I had a working setup in 1.x with:
I moved over to 2.* and mapped over to the calls and merged the startup into the main phase as shown below:
I can see on the output I get:
I was expecting after a second or so the app would pop up, but no such luck and there is no errors thrown from what I can tell.
I am running on .net6, windows 10 pro, using Rider as IDE.
== Edit ==
Forgot to mention that I changed the csproj sdk from the default console one to
Microsoft.NET.Sdk.Razor
when updating as shown in the sample one in this repo.