C#C
C#6mo ago
Elban

Hot Reload Error "The using directive for 'System' appeared previously as global using"

I’m experiencing an issue with Hot Reload in a WPF application using BlazorWebView. When attempting to use Hot Reload, I get the following errors:

The using directive for 'System' appeared previously as global using

These are auto-generated files from .xaml files.
Deleting bin/obj and restarting Visual Studio does not resolve the problem.
The issue occurs on all developer machines.

I found a related report from Daniel Roth here:
https://developercommunity.visualstudio.com/t/Hot-Reload---Unexpected-error/10743588?sort=active

Is anyone aware of a workaround for this? Has anyone managed to solve it, or is there an update from Microsoft on this issue?

Thanks in advance.
Developer Community
Was this page helpful?