Avalonia 11 Preview Not Usable (for me): InitializeComponent not exist in MainWindow.axaml.cs
See original GitHub issueI created a new project with Avalonia Application
template in Visual Studio.
Build and Run, no problem.
Then I update the Avalonia
related packages to 11.0.0-preview2 by NuGet.
Try to build the project, it failed.
Not a single line code changed.
Error 1: CS0103 InitializeComponent not exist (in MainWindow.axaml.cs)
Error 2: AXN0002 XamlX.XamlParseException: Unable to resolve type FluentTheme from namespace https://github.com/avaloniaui
Issue Analytics
- State:
- Created a year ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
wpf - The name 'InitializeComponent' does not exist in ...
Another solution to this problem is to simply change the property-> Build Action on the XAML from Embedded Resource to anything else, save,...
Read more >Every InitializeComponent() reference in my project is ...
If you don't want to try that route, for every file, you're going to need to look at the x:class attribute and see...
Read more >Multiplatform UI Coding with AvaloniaUI in Easy Samples. ...
Avalonia is a great new multiplatform UI package similar but in many respects better than WPF. This is an introductory tutorial article.
Read more >ResourceDictionary and XAML resource references
However, controls, shapes, and other FrameworkElements are not shareable, so they can't be declared as reusable resources.
Read more >Dependency Injection with Avalonia UI Apps
In this experimental post, we'll see how I added dependency injection into an ongoing Avalonia application and discuss the pros and cons of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
for the first issue, if that method is not auto generated, you can add manually.
It’s a preview and not yet production ready. So I think templates should only be updated after final release.