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

Update comment in Desktop template #219

Open
mysteryx93 opened this issue Jul 7, 2023 · 2 comments
Open

Update comment in Desktop template #219

mysteryx93 opened this issue Jul 7, 2023 · 2 comments
Labels

Comments

@mysteryx93
Copy link

Describe the bug

Desktop project template contains this

<!--If you are willing to use Windows/MacOS native APIs you will need to create 3 projects.
One for Windows with net7.0-windows TFM, one for MacOS with net7.0-macos and one with net7.0 TFM for Linux.-->

I think that a better approach is to specify multiple TargetFrameworks and use #IF blocks. The above comment can be misleading.

To Reproduce

Create a blank cross-platform project

Avalonia Templates version

11.0.0

Avalonia version

11.0.0

Additional context

No response

@mysteryx93 mysteryx93 added the bug label Jul 7, 2023
@maxkatz6
Copy link
Member

maxkatz6 commented Jul 8, 2023

I think that a better approach is to specify multiple TargetFrameworks and use #IF blocks

It would be a better approach by default, if there was "net6.0-linux" tfm. Otherwise it's just another misleading solution.

With net8.0 release and net8.0-browser availability we likely to have yet another template with a single project, we will see how it goes then.

@mysteryx93
Copy link
Author

Perhaps just put a link to a page explaining the various options?

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

No branches or pull requests

2 participants