ChromiumDotNet / Chromium.AspNetCore.Bridge

Chromium.AspNetCore.Bridge
Apache License 2.0
25 stars 9 forks source link

Adding/publishing static files #4

Closed mattkol closed 3 years ago

mattkol commented 3 years ago

I decided to add this as a new issue.

Running the executable outside Visual Studio does not include static files (.css, .js, .img etc) yet.

There are so many different ways to do this. I have not concluded on any approach yet, or just let developers deal with this. From my experience it is better to provide a simple approach in the demo to reduce less issues being raised.

Any thoughts?

amaitland commented 3 years ago

What's the expected workflow when using Asp Net Core currently? What's the end result of doing a dotnet publish currently?

amaitland commented 3 years ago

When I publish the CefSharp.AspNetCore.Mvc.Example.Wpf example I get a working build, the wwwroot folder is included and the resources are loaded as expected. I used the following settings

aspnetcoreowinpublish

Running the executable outside Visual Studio does not include static files (.css, .js, .img etc) yet.

Can you clarify exactly what you are running and which exe you ran?