ceb77e624e
feat: 重构 TodoList 架构,新增动态 API 与 MAUI 内嵌 Web 服务 feat:优化交互逻辑,优化发布流程
16 lines
642 B
Plaintext
16 lines
642 B
Plaintext
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 your 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();
|
|
}
|