Eilon / MauiHybridWebView

MIT License
206 stars 45 forks source link

Add support for ESProj files to incorporate JS/TS apps as project references #24

Open Eilon opened 1 year ago

Eilon commented 1 year ago

See sample app from @javiercn here: https://github.com/javiercn/EsprojPlusAspNetStaticWebAssets (and this ESProj file: https://github.com/javiercn/EsprojPlusAspNetStaticWebAssets/blob/main/LibraryProjectStaticWebAssets/LibraryProjectStaticWebAssets.esproj).

That app shows how to use an ESProj (ECMAScript Project) to include the output JS files as Static Web Assets in an ASP.NET web app. The same pattern could hopefully be used to reference a JS/TS app from a .NET MAUI app with HybridWebView. The .NET MAUI app could reference the ESProj and include those assets as MAUI Assets without any manual steps.

More info on ESProj: https://learn.microsoft.com/visualstudio/ide/reference/property-pages-javascript-esproj?view=vs-2022