Closed trueip9 closed 1 year ago
I had the following lines in my .csproj:
<PropertyGroup Condition="$(TargetFramework.Contains('-windows'))">
<OutputType>WinExe</OutputType>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
</PropertyGroup>
Removing this make my app start again without this exception. I also needed to update this SQLite reference to the latest preview:
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3" Version="2.1.0-pre20220318192836" />
Maybe related: https://github.com/ericsink/SQLitePCL.raw/issues/465
Might be relevant: Three intances of "WMC100 Cannot resolve metadaata for WinUI types. Please ensure that Nuget Restore was sucessful." warnings started to appear in Error/Warning list console in VS after this update.
Workaround has been found: Remove xmlns:compat="clr-namespace:Microsoft.Maui.Controls.Compatibility;assembly=Microsoft.Maui.Controls" namespace and all controls using this namespace. It seems that issue has something to do with controls namespaces. edit: I'm using RelativeLayout, that's why I need Compatibility namespace. Or should I refactor to avoid using this layout? Looks like issue is in RelativeLayout ctor.
not repro with vs main build(32622.314)
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
It has been a while since this was reported. I'm going to be optimistic and assume this has been fixed in newer versions. If there is still something wrong, please feel free to open a new issue. Thanks!
@jfversluis Hi! In the latest version (currently version 7) the problem still exists when using RelativeLayout.
Thanks for confirming @ilsur-dev111 I've linked it to this one, I'm pretty sure that will be the same root cause: https://github.com/dotnet/maui/issues/12748
Description
After updating to RC1 my existing MAUI app project builds successfully but fails to initialize main page and terminates start up.
Troubleshooting steps attempted:
Still no luck
Steps to Reproduce
Version with bug
Release Candidate 1 (current)
Last version that worked well
Preview 14
Affected platforms
Windows
Affected platform versions
net6.0-windows10.0.19041
Did you find any workaround?
Fresh default project builds and runs normally. Do not updete to RC1 if you already have project in development.
Relevant log output