Statistiques
| Branche: | Révision:

root / GES_PAC / Resources / Raw / AboutAssets.txt @ 0a91fd76

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

1 65ad7e66 Lucas Bihannic
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 your 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
	}