Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avalonia xPlat Library template #227

Open
workgroupengineering opened this issue Aug 1, 2023 · 2 comments
Open

Avalonia xPlat Library template #227

workgroupengineering opened this issue Aug 1, 2023 · 2 comments

Comments

@workgroupengineering
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Guidelines for developing an Avalonia xPlat library that supports trimming and calls the native platforms library.

Describe the solution you'd like

Create simple template project

Describe alternatives you've considered

No response

Additional context

No response

@maxkatz6
Copy link
Member

maxkatz6 commented Aug 2, 2023

That's a normal .NET library with Avalonia reference.
To add extra platforms, you either keep everything the same and PInvoke native APIs, or add a native platform target, like "net6.0-android". Not sure what can be/should be done here in templates.

@workgroupengineering
Copy link
Contributor Author

I would like to try porting CameraView from Xamarin.CommunityToolkit to Avalonia.

I'd like a guideline of how to do this to avoid future brecking changes with Avalonia.

For example you could use a library with tagrt framework netstandard or a multi targets library.

If there was a template there would be no such doubts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants