Execute external javascript embedded in inline html from .net Maui windows desktop application

Leon Rodrigues 0 Reputation points
2023-12-12T11:23:39.7333333+00:00

0

I have an Html code embedded in C# .net MAUI windows desktop application. The Html references to external javascript files but this code doesn't work in .net MAUI solution for windows desktop app. any possible leads to this problem? The .js files are placed under Resources/Raw folder and have a build action MauiAsset.

As per the micrsoft documentation the javascript files are placed under Resources/Raw folder and are referenced correctly with the file name as the source in Html code that is written within C# .net maui solution. Expecting to execute these .js files code and produce the output.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,976 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,381 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,418 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 57,886 Reputation points
    2023-12-12T22:30:28.4366667+00:00

    attach to the webview with the edge DevTools, to debug. check if files loaded, console errors. etc.

    1 person found this answer helpful.