vs 2019 bug: xaml the name <…> does not exist in the namespace clr-namespace <…>

210 阅读1分钟

xml设计器的代码视图里报错误: xaml the name <…> does not exist in the namespace clr-namespace <…>,导致无法显示设计视图。但可以编译成功。(已经引用了命名空间。)

最后发现这是vs 8年前就存在的bug。

stackoverflow.com/questions/1…

只要用管理员权限重新启动vs编译就能正常显示了。