Hot Reload is a Hot Mess - Bring Back Designer Please #8652
Replies: 17 comments 17 replies
-
Maui needs a designer |
Beta Was this translation helpful? Give feedback.
-
Can you share the Visual Studio version used? |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
(I work on the XAML Hot Reload team, these are my opinions) First, thank you for trying Hot Reload. For the Translation DLL error, that's being thrown if you allow all exceptions to be thrown within your applications. It doesn't affect Hot Reload itself from working. I would file that as an issue with VS Feedback though, since most likely the WinUI Hot Reload stack isn't inserting or loading that DLL when it should, or it may not actually exist. I would highly encourage you, whenever you hit an issue trying to hot reload, to try to replicate whatever you were trying to change in C# Code to see if you can invoke the change in general, without XAML Hot Reload (Ex. If you try to change the background color of a page with XAML Hot Reload and it doesn't work, try changing it via C# code behind.) If it doesn't work there, it's an MAUI bug. Lastly, I'm okay with talking about a MAUI Designer, but if you think Hot Reload is a mess you should think what the designer runs on top of, and if it would have the same issues. |
Beta Was this translation helpful? Give feedback.
-
WPF designer exists in Visual Studio since at least 2008, that's 12 or 13 years before hot reload. The designer feature is to design components individually without the context of the application |
Beta Was this translation helpful? Give feedback.
-
this was suggested some time ago #3439 and I agree, that we need a designer. This (XAML/C#) Hotreload also never worked for me |
Beta Was this translation helpful? Give feedback.
-
if xaml hotrealod not work, you can see my library ReloadPreview, it use reflection to load dll to preview, i used it when hotreload break. |
Beta Was this translation helpful? Give feedback.
-
I frequently run my MAUI projects directly from my mac to the ios simulator. I suppose "hot reload" is only available if you use Visual Studio. It doesn't seem to be a feature I can use. Would anyone be kind enough to confirm hot reload is VS only? Thanks. |
Beta Was this translation helpful? Give feedback.
-
Brand new app showing hot reload does not work.
Brand new app showing hot reload does not work by changing the background color in the code-behind. |
Beta Was this translation helpful? Give feedback.
-
@pouchbunny That's C# Hot Reload, and you're changing a value in the constructer. The only way that would change is if you reinvoked creating the page again. |
Beta Was this translation helpful? Give feedback.
-
I'm moving this to discussions. There is nothing actionable on this issue that could be "fixed" here, but the discussion is a good one. |
Beta Was this translation helpful? Give feedback.
-
Months and months later, and hot reload still does not work?! I started a new project, and something as simple as changing the text on a label won't even refresh on the emulator. And why throw away the XAML designer? We don't want to edit XAML as text. Having to stop and restart to see every single change is ridiculous and incredibly time consuming. |
Beta Was this translation helpful? Give feedback.
-
Was it ever working? Never really worked for me since the time of xamarin. Really frustrating issue indeed. On Thu, May 11, 2023 at 10:15 AM, Xyncgas ***@***.***> wrote:
Maybe use what's in a human's skull to hot reload
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
hot reload doesnt work for me either when I'm using windows laptop with an ios local device. It is not possible with c# hot reload at all with this template MAUI project. And with xaml hot reload sometimes it works, sometimes it doesn't work. You don't know when this thing will throw several exceptions and then close the program. |
Beta Was this translation helpful? Give feedback.
-
Just gonna say something wild here to see if MS is actually overlooking this thread or just ignoring it all together, for shits and giggles. ░M░Y░D░E░S░I░G░N░E░R░ ░V░I░E░W░ ░I░ N░B░I░O ░ |
Beta Was this translation helpful? Give feedback.
-
Hot Reload is working pretty well for me. Saves a lot of time. If you are using it to design your view and controls, then it wouldn't work well for you. But you should use Hot Reload to "correct/improve" your view. |
Beta Was this translation helpful? Give feedback.
-
Hot reload is a huge hit and miss - it works pretty well in hello world scenarios, as soon as you do something complex real world than it has issues.. Designer is not the answer.. they just have to make work and stop using noddy sample in demos.. |
Beta Was this translation helpful? Give feedback.
-
Description
Not sure if this is a Visual Studio issue or something directly related to MAUI extension.
The designer saved a lot of time when trying to place new controls and immediately told you if you broke something. Hot reload doesn't come close to what designer was.
Working with hot reload in android is somewhat doable on a physical device, but there are plenty of issues with controls and elements not showing up or when changing and pressing hot reload does nothing.
However, in windows I get the following when trying to make any changes to a control:
Steps to Reproduce
System.IO.FileNotFoundException: 'Could not load file or assembly 'C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\PREVIEW\COMMON7\IDE\EXTENSIONS\XAMARIN\HOTRELOAD\Xamarin.HotReload.Translations.resources.dll'. The system cannot find the file specified.'
System.IO.FileNotFoundException: 'Could not load file or assembly 'C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\PREVIEW\COMMON7\IDE\EXTENSIONS\XAMARIN\HOTRELOAD\Xamarin.HotReload.Translations.resources.dll'. The system cannot find the file specified.'
C:\Users<user>\AppData\Local\SourceServer\eadebd0e280cb63072d4f3dab4bae61499c95ec06ecba9ac0adcfe780209ab51\src\coreclr\System.Private.CoreLib\src\System\Resources\ManifestBasedResourceGroveler.CoreCLR.cs
Microsoft Visual Studio Professional 2022
Version 17.3.0 Preview 2.0
VisualStudio.17.Preview/17.3.0-pre.2.0+32611.2
Microsoft .NET Framework
Version 4.8.04084
Installed Version: Professional
ASP.NET and Web Tools 17.3.252.56319
ASP.NET and Web Tools
Azure App Service Tools v3.0.0 17.3.252.56319
Azure App Service Tools v3.0.0
C# Tools 4.3.0-2.22307.7+069a85a786acae3be2c7b49e330b7f968a624c88
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Extensibility Message Bus 1.2.6 (master@34d6af2)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Mono Debugging for Visual Studio 17.3.11 (4f73250)
Support for debugging Mono processes with Visual Studio.
NuGet Package Manager 6.3.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/
Razor (ASP.NET Core) 17.0.0.2226702+6ac021dcee9db30337fdfc99f710c685002e5dc6
Provides languages services for ASP.NET Core Razor.
TypeScript Tools 17.0.10601.2001
TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools 4.3.0-2.22307.7+069a85a786acae3be2c7b49e330b7f968a624c88
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual F# Tools 17.1.0-beta.22281.4+2b8fcc0c0a1cf1d69380159c7d03be993bba4016
Microsoft Visual F# Tools
Visual Studio IntelliCode 2.2
AI-assisted development for Visual Studio.
VisualStudio.DeviceLog 1.0
Information about my package
VisualStudio.Mac 1.0
Mac Extension for Visual Studio
VSPackage Extension 1.0
VSPackage Visual Studio Extension Detailed Info
Xamarin 17.3.0.220 (main@1d7b676)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 17.3.0.102 (remotes/origin/d17-3@9d1ed6d99)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin Templates 17.2.15 (2e3b60e)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.
Xamarin.Android SDK 12.3.99.95 (main/5432886)
Xamarin.Android Reference Assemblies and MSBuild support.
Mono: dffa5ab
Java.Interop: xamarin/java.interop@1f27ab55
SQLite: xamarin/sqlite@df4deab
Xamarin.Android Tools: xamarin/xamarin-android-tools@fc3c2ac
Xamarin.iOS and Xamarin.Mac SDK 15.11.0.308 (7ad9f8893)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Version with bug
6.0.400 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows 10
Did you find any workaround?
No response
Relevant log output
No response
Beta Was this translation helpful? Give feedback.
All reactions