Add project files.
This commit is contained in:
14
MonkeyFinder/Resources/Raw/AboutAssets.txt
Normal file
14
MonkeyFinder/Resources/Raw/AboutAssets.txt
Normal file
@ -0,0 +1,14 @@
|
||||
Any raw assets you want to be deployed with your application can be placed in
|
||||
this directory (and child directories) and given a Build Action of "MauiAsset":
|
||||
|
||||
<MauiAsset Include="AboutAssets.txt" />
|
||||
|
||||
These files will be deployed with you package and will be accessible using .NET MAUI:
|
||||
|
||||
async Task LoadMauiAsset()
|
||||
{
|
||||
using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt");
|
||||
using var reader = new StreamReader(stream);
|
||||
|
||||
var contents = reader.ReadToEnd();
|
||||
}
|
||||
Reference in New Issue
Block a user