Replies: 3 comments 3 replies
-
No need to make the client project the startup project, just change the |
Beta Was this translation helpful? Give feedback.
-
What dll's would you expect to go to the browser? When you swap to WebAssembly, it is Hosted. So the files in the Oqtane.Client project are the only files that are in the browser. Unless you use the |
Beta Was this translation helpful? Give feedback.
-
@thenrich2009 when you are running the application on WebAssembly it does download the Client DLLs from the Server to the Client. It used to be easier to see this in the Network tab of the browser tools but in recent versions of Blazor WebAssembly it hard to capture due to caching and compression. Oqtane has to take responsibility for downloading any Module or Theme DLLs as they are not statically linked to the framework - so you need to look for a call to "load" in your Network tab: http://localhost:44357/~/api/Installation/load If you look at the Oqtane.Server\Controllers\InstallationController.cs you will see that it gathers the specific DLLs, adds them to a ZIP file, and then sends the ZIP file to the browser ( and caches the ZIP file on the server so that future clients can reuse it ). On the client side it unpacks the ZIP file and loads the DLLs into the browser AppDomain. |
Beta Was this translation helpful? Give feedback.
-
I changed the runtime option to Client in asppsettings.json and rebuilt the app and I don't see any dll's going to the browser. It seems it's still using server side Oqtane.
I made the client project the startup project and I got no web page.
How does one switch to the client side of Oqtane? I can't find documentation on this.
Beta Was this translation helpful? Give feedback.
All reactions