added AboutAssets.txt to Maui project and changed assembly references to Oqtane 4.0.0

This commit is contained in:
sbwalker
2023-05-15 13:21:30 -04:00
parent 02c1e4fb65
commit 7f7dff7019
3 changed files with 26 additions and 4 deletions

View File

@ -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`.
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
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();
}