unoplatform / uno

Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.
https://platform.uno
Apache License 2.0
8.77k stars 706 forks source link

HotReload not working when adding assets into the solution #14509

Open agneszitte opened 9 months ago

agneszitte commented 9 months ago

Current behavior

HotReload not working when adding assets into the solution

Expected behavior

HotReload should work when adding assets to the solution? At the moment tested on Windows and not working, please test the other platforms to adjust the expected behavior here

How to reproduce it (as minimally and precisely as possible)

Workaround

N/A

Works on UWP/WinUI

No

Environment

No response

NuGet package version(s)

No response

Affected platforms

Windows

IDE

Visual Studio 2022

IDE version

17.8.1

Relevant plugins

No response

Anything else we need to know?

No response

jeromelaban commented 9 months ago

Adding assets is not a supported scenario for hot reload at all in vscode. In VS, it might not be supported either, because parts of the processing needs to happen in MSBuild, and the HR tooling inside VS only seems to handle the roslyn part of the build.

We can keep this opened for reference, but we will not be able to fix this. The only part that we can fix is to add C# files, for vscode only. (VS Supports it already).