Skip to content

Add MAUI csharp\sample\InferenceSample\ project - #12356

Merged
skottmckay merged 2 commits into
masterfrom
skottmckay/AddMauiInferenceSampleProjectToRunUnitTestsInApp
Jul 28, 2022
Merged

Add MAUI csharp\sample\InferenceSample\ project#12356
skottmckay merged 2 commits into
masterfrom
skottmckay/AddMauiInferenceSampleProjectToRunUnitTestsInApp

Conversation

@skottmckay

Copy link
Copy Markdown
Contributor

Description:
Add a MAUI variant to the InferenceSample setup so we have an equivalent setup for MAUI as for the other platforms.

This provides a setup to do some basic local testing of using an InferenceSession in a MAUI app.

Intended usage is an ORT developer who is making changes to the C# project, as that project is referenced directly (i.e. the ORT nuget packages are not used). 'InferenceSample' isn't a great name given that - will look at changing in a separate PR.

Motivation and Context
Provide way to do local testing for a MAUI app.

…ample.Maui so we have an equivalent setup for MAUI as for the other platforms.

This provides a setup to do some basic local testing of using an InferenceSession in a MAUI app.
@skottmckay
skottmckay requested review from YUNQIUGUO and edgchen1 July 28, 2022 01:31
@snnn

snnn commented Jul 28, 2022

Copy link
Copy Markdown
Contributor

Would you consider putting it in https://github.com/Microsoft/onnxruntime-inference-examples ? Then you don't need to run so many pipelines and they will have much fewer compliance requirements.

@skottmckay

skottmckay commented Jul 28, 2022

Copy link
Copy Markdown
Contributor Author

Would you consider putting it in https://github.com/Microsoft/onnxruntime-inference-examples ? Then you don't need to run so many pipelines and they will have much fewer compliance requirements.

I have a PR for a 'real' example app there. microsoft/onnxruntime-inference-examples#128

That uses the official nuget packages and is a more complete example.

This is just a very simple one for developer testing, which uses the csproj (i.e. can only be run if you have the ORT source) and not the nuget packages.

For example, say you change something about the Android setup. With this local project you can test without having to create a nuget package which is insanely complicated to do correctly for the native libraries.

@skottmckay
skottmckay merged commit 0e85af6 into master Jul 28, 2022
@skottmckay
skottmckay deleted the skottmckay/AddMauiInferenceSampleProjectToRunUnitTestsInApp branch July 28, 2022 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants