Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我收到以下错误:
错误 26 命名空间“Microsoft.Windows”中不存在类型或命名空间名称“Controls”(您是否缺少程序集引用?)
这两个程序集出现在 .g.cs 文件中:
using Microsoft.Windows.Controls; using Microsoft.Windows.Controls.Primitives;
当我删除它们时,错误返回。
检查您的 XAML 代码。可能会有xmlns指向Microsoft.Windows.Controls.Primitives或Microsoft.Windows.Controls。
xmlns
Microsoft.Windows.Controls.Primitives
Microsoft.Windows.Controls