Statistiques
| Branche: | Révision:

charte_graphique / Resources / Raw / AboutAssets.txt @ master

Historique | Voir | Annoter | Télécharger (656 octets)

1
Any raw assets you want to be deployed with your application can be placed in
2
this directory (and child directories). Deployment of the asset to your application
3
is automatically handled by the following `MauiAsset` Build Action within your `.csproj`.
4

    
5
	<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
6

    
7
These files will be deployed with you package and will be accessible using Essentials:
8

    
9
	async Task LoadMauiAsset()
10
	{
11
		using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt");
12
		using var reader = new StreamReader(stream);
13

    
14
		var contents = reader.ReadToEnd();
15
	}