mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-25 02:50:42 +00:00
### Description <!-- Describe your changes. --> Update various test projects to .net8 from EOL frameworks. Replace the Xamarin based Android and iOS test projects with a MAUI based project that uses .net 8. Add new CoreML flags to C# bindings ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> Remove usage of EOL frameworks.
15 lines
642 B
Text
15 lines
642 B
Text
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();
|
|
}
|