After changing namespace in UserControl files, …g.cs files get errors

前端 未结 6 1237
陌清茗
陌清茗 2021-02-18 18:54

I copied three classes in from another WPF project and then changed their namespaces.

Now when I run the project, I get errors in the \".g.cs\"

6条回答
  •  一向
    一向 (楼主)
    2021-02-18 19:22

    Another possible cause is if you have any xmlns:xx namespaces in your xaml which you neglected to update when changing a namespace, then this will also cause an invalid using statement in the g.cs file.

提交回复
热议问题