-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add Windows and update to net7 #8
Conversation
…h project was the lib and which the app
…Writeline" next step is to add a actual MAUI App/Window
does not compile with strange xaml compile errors 2>------ Build started: Project: MauiSampleApp, Configuration: Debug Any CPU ------ 2>CSC : error AXN0002: XamlX.XamlParseException: Unable to resolve type Shell from namespace http://schemas.microsoft.com/dotnet/2021/maui Line 2, position 2. 2>CSC : error AXN0002: XamlX.XamlParseException: Unable to resolve type ContentPage from namespace http://schemas.microsoft.com/dotnet/2021/maui Line 2, position 2. 2>CSC : error AXN0002: XamlX.XamlParseException: Unable to resolve type Application from namespace http://schemas.microsoft.com/dotnet/2021/maui Line 2, position 2. 2>CSC : error AXN0002: XamlX.XamlParseException: Unable to resolve type ResourceDictionary from namespace http://schemas.microsoft.com/dotnet/2021/maui Line 3, position 2.
@kekekeks i tricked the build (for the while beeing) by renaming all maui xaml files to mxaml, like you ava does with axaml. To workaround this issue: #7 (comment) I also needed to disable FluentTheme, because it could not be resolved.
|
- it broke with the update to the official avalonia 11.0.4 nugets, cause themes are in a separate nuget now. And the FluentTheme-Class does not have the Mode property anymore.
It parses xaml files only if they were added in csproj with
Add Avalonia.Themes.Fluent package |
thx for taking a look into it.
I think you missed the point where i already analysed and explained that in the issue. You can try it yourself with my PR (just reset some commits before i renamed to mxaml). In the csproj no single xaml file was added to AvaloniaView. You can look at the the binlog analysis, the problem has two main components:
|
@juwens hi! I just updated main branch to Avalonia 11 with .NET 7. Seems to work fine at least on Android. There were some issues with Kotlin StdLib on android though. I added workaround for your issue with AdditionalFiles by disabled Name source generator, which is optional for Avalonia (it won't generate c# properties for x:Name xaml elements). I created AvaloniaUI/Avalonia#12855 to track this issue. |
@maxkatz6 thanks, i'm very grateful for your help. That'll definitely help. Cause i try to add maui-windows (WinUI), i discovered an impediment (the lack of a WinUI "AvaloniaView"). Currently i'm digging into the whole platform-abstraction of avalonia and try to implement an AvaloniaView for WinUI AvaloniaUI/Avalonia#12782 |
if you can add windows and browser without maui, in the same solution as maui hybrid , then we can implement specific code in windows project or in browser project and dont use maui in these plataforms... see #12 |
I close it for now, as there are several outstanding things to be solved before continuing here. |
work in progress
blocked by: AvaloniaUI/Avalonia#12782
major
minor
caveats