mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +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.
25 lines
553 B
C#
25 lines
553 B
C#
namespace Microsoft.ML.OnnxRuntime.Tests.MAUI
|
|
{
|
|
public partial class MainPage : ContentPage
|
|
{
|
|
int count = 0;
|
|
|
|
public MainPage()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void OnCounterClicked(object sender, EventArgs e)
|
|
{
|
|
count++;
|
|
|
|
if (count == 1)
|
|
CounterBtn.Text = $"Clicked {count} time";
|
|
else
|
|
CounterBtn.Text = $"Clicked {count} times";
|
|
|
|
SemanticScreenReader.Announce(CounterBtn.Text);
|
|
}
|
|
}
|
|
|
|
}
|