Replies: 1 comment 3 replies
-
"Exe" is allowed output type: https://github.com/AvaloniaUI/AvaloniaVS/blob/17c10dc2ee8606c0e438a8e349fceda63ad8841b/AvaloniaVS.Shared/Services/SolutionService.cs#L112-L114 The problem might be with executable locator though, since macos projects have slightly different strucute |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I'm working on an Avalonia project using Rider on macOS, and I'm running into an issue with the XAML Previewer.
My project targets
net8.0-macos
because I need access to Apple-specific APIs via AppleKit. However, when using this target framework, I can't set the OutputType toWinExe
I have to useExe
instead. This seems to cause a problem: the project doesn't show up in the AXAML Previewer, and I can't select it as a preview context.Here's a quick summary:
TargetFramework:
net8.0-macos
(required for AppleKit access)OutputType: must be
Exe
(becauseWinExe
is not valid for TargetFramework:net8.0-macos
)Problem: Project does not appear in the Avalonia Previewer in Rider
I'm wondering if I'm missing something or doing something wrong.
Is there a way to make the Previewer work with a macOS-targeted Avalonia project that uses Exe as the OutputType?
Any help or guidance would be greatly appreciated!
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions