Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

AboutAssets.txt 672 B

2 veckor sedan
123456789101112131415
  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. <MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
  5. These files will be deployed with your package and will be accessible using Essentials:
  6. async Task LoadMauiAsset()
  7. {
  8. using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt");
  9. using var reader = new StreamReader(stream);
  10. var contents = reader.ReadToEnd();
  11. }