You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My app does not run in debug or release or publish mode at all.
In debug mode, I get the following exception
Name
Value
Type
Message
"Failed to assign to property 'Microsoft.UI.Xaml.ResourceDictionary.Source' because the type 'Windows.Foundation.String' cannot be assigned to the type 'Windows.Foundation.Uri'. [Line: 10 Position: 37]"
string
▶
Exception
{"The text associated with this error code could not be found.\r\n\r\nFailed to assign to property 'Microsoft.UI.Xaml.ResourceDictionary.Source' because the type 'Windows.Foundation.String' cannot be assigned to the type 'Windows.Foundation.Uri'. [Line: 10 Position: 37]"}
I also tried this with a new class library and an empty resource dictionary and issue exist
Steps to reproduce the bug
1.Create a New WinUI 3 Project
2.Make sure your BuildTools is 22621.3232 (latest build tools can not be launch in AOT)
3.Create a Class Library with a Resource Dictionary (Create a nuget package)
4.Add Class Library to Project
5.Add Resource Dictionary in App.xaml
6.Run app (Works fine)
7.Add <PublishAOT>true</PublishAOT>
8.Try to run app (app will be crash)
Expected behavior
App Should be Run/Launch without any issues
Screenshots
No response
NuGet package version
Windows App SDK 1.6.0: 1.6.240829007
Packaging type
Packaged (MSIX), Unpackaged
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Visual Studio 2022-preview, Visual Studio 2022
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
I have a class library that contains some ResourceDictionaries which i refrence them into app.xaml
, When I activate the
PublishAOT
switch:<PublishAOT>true</PublishAOT>
My app does not run in debug or release or publish mode at all.
In debug mode, I get the following exception
after removing my resource dictionary refrences from app.xaml My app runs without problems.
I also tried this with a new class library and an empty resource dictionary and issue exist
Steps to reproduce the bug
1.Create a New WinUI 3 Project
2.Make sure your BuildTools is 22621.3232 (latest build tools can not be launch in AOT)
3.Create a Class Library with a Resource Dictionary (Create a nuget package)
4.Add Class Library to Project
5.Add Resource Dictionary in App.xaml
6.Run app (Works fine)
7.Add
<PublishAOT>true</PublishAOT>
8.Try to run app (app will be crash)
Expected behavior
App Should be Run/Launch without any issues
Screenshots
No response
NuGet package version
Windows App SDK 1.6.0: 1.6.240829007
Packaging type
Packaged (MSIX), Unpackaged
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Visual Studio 2022-preview, Visual Studio 2022
Additional context
No response
The text was updated successfully, but these errors were encountered: