Issue with Avalonia projects
I use Windows 11 and have the .NET SDK 10 installed.
After adding the Avalonia templates and creating a new Avalonia solution (I can only select .NET 9.0 as the target framework, see my other post), a new empty project is created with default settings.
Then, in the project's properties (right-click the project in the Solution pane, select Properties), I change the Target framework to .NET 10 and deselect all other .NET versions.
At this point, JetBrains complains that 9 components cannot be resolved, and MainWindow.axaml and MainWindow.cs.axaml have wavy red underlines in the Solution pane.
I found out that this happens too when I change Configurations in the project properties and select x64 as Platform target for either Debug or Release.
The issue is gone as soon as I select a different value for either Target framework or Configurations. Repeated changes of Target framework and Configurations allow me to find a setting where both .NET 10 is selected as Target framework, and the Platform Target is set to x64 for both Debug and Release.
Is this a bug in Rider (I use 2025.3.0.3 Build #RD-253.28294.237)?
Please sign in to leave a comment.
itHello Andreas Hinterleitner ,
Thank you for reaching Rider Forum.
The templates for Avalonia (which includes available for project creation .NET versions) are managed on the side of Avalonia itself. They are explicitly installed from the command line in the tutorial provided. I was able to reproduce such behavior in rider and in Visual Studio. Hence, I would suggest you address this question directly with the Avalonia team.