diff --git a/Oqtane.Maui/MauiProgram.cs b/Oqtane.Maui/MauiProgram.cs index 0c297b0e..471002a6 100644 --- a/Oqtane.Maui/MauiProgram.cs +++ b/Oqtane.Maui/MauiProgram.cs @@ -12,8 +12,8 @@ namespace Oqtane.Maui; public static class MauiProgram { // the API service url - static string apiurl = "https://www.dnfprojects.com"; // for testing - //static string apiurl = "http://localhost:44357"; // for local development (Oqtane.Server must be already running for MAUI client to connect) + //static string apiurl = "https://www.dnfprojects.com"; // for testing + static string apiurl = "http://localhost:44357"; // for local development (Oqtane.Server must be already running for MAUI client to connect) public static MauiApp CreateMauiApp() { diff --git a/Oqtane.Maui/Oqtane.Maui.csproj b/Oqtane.Maui/Oqtane.Maui.csproj index 3dae7c68..1f9d42e8 100644 --- a/Oqtane.Maui/Oqtane.Maui.csproj +++ b/Oqtane.Maui/Oqtane.Maui.csproj @@ -71,8 +71,15 @@ - - + + + + + ..\Oqtane.Server\bin\Debug\net7.0\Oqtane.Client.dll + + + ..\Oqtane.Server\bin\Debug\net7.0\Oqtane.Shared.dll + diff --git a/Oqtane.Maui/Resources/Raw/AboutAssets.txt b/Oqtane.Maui/Resources/Raw/AboutAssets.txt new file mode 100644 index 00000000..531df33f --- /dev/null +++ b/Oqtane.Maui/Resources/Raw/AboutAssets.txt @@ -0,0 +1,15 @@ +Any raw assets you want to be deployed with your application can be placed in +this directory (and child directories). Deployment of the asset to your application +is automatically handled by the following `MauiAsset` Build Action within your `.csproj`. + + + +These files will be deployed with you package and will be accessible using Essentials: + + async Task LoadMauiAsset() + { + using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt"); + using var reader = new StreamReader(stream); + + var contents = reader.ReadToEnd(); + }