-
Notifications
You must be signed in to change notification settings - Fork 683
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
Hot reload doesn't work with WinUI 3 #7043
Comments
XAML hot reload is mostly reliable outside of bindings. C# hot reload sometimes works, but you must do step 2 here.
|
I think I figured it out... @kmgallahan thanks for the pointer VS Debug profile says that native debugging is disabled, but it didn't allow hot reloading for some reason. However, as soon as I added {
"profiles": {
"WinUi3App (Package)": {
"commandName": "MsixPackage",
+ "nativeDebugging": false
},
"WinUi3App (Unpackaged)": {
"commandName": "Project"
}
}
} It seems like there are some synchronisation issues between the VS Debug Properties and what is actually used to run the app. |
Actually, XAML Hot Reload doesn't work with succinct RowDefinition: <Grid RowDefinitions="Auto, Auto, *, Auto"> |
I have the same issue. |
Removing this did it for me.
wow |
It seems to be a problem in WinUI 3: #673 |
In my case, XAML hot reload only works when running a x86 application, not for x64 or Any Cpu configurations |
Remove RowDefinitions it works.. great! |
Thanks @marb2000 it worked for me too ! But it's a bug actually, Any plan to resolve it ? |
Original issue is solved (#7043 (comment)), known limitation in C# hot reload, unrelated to WinUI 3. Subsequent comments are duplicate reports of #5944. |
Describe the bug
C# hot reload doesn't work with the default WinUI 3 project
Steps to reproduce the bug
Actual: Error message box with text "Hot Reload can't ..."
Expected behavior
Hot reload is successful
Screenshots
NuGet package version
WinUI 3 - Windows App SDK 1.1 Preview 2: 1.1.0-preview2
Windows app type
Device form factor
Desktop
Windows version
Windows 11 (21H2): Build 22000
Additional context
Tried Visual Studio 2022 17.1, Visual Studio 2022 17.2 Preview 5.0
Tried .NET 6, .NET 7 preview
Tried Microsoft.WindowsAppSDK Versions 1.0.0, 1.0.3, 1.1.0-preview2
Cannot try with "Unpackaged" configuration since it throws "Unable to load DLL 'Microsoft.ui.xaml.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)" on startup (#6377)
The text was updated successfully, but these errors were encountered: