gpt4 book ai didi

c# - 命名空间 'Controls' 中不存在类型或命名空间名称 'System.Windows'(是否缺少程序集引用?)

转载 作者:太空宇宙 更新时间:2023-11-03 10:45:08 25 4
gpt4 key购买 nike

我有一个针对 VS2008 和 .net Framework 2.0 的 C#(.NET 项目)。当我编译项目时出现上述错误。因此,请就如何解决此错误提出一些建议。

使用的命名空间:

using System;

using System.Collections;
//using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows;
//using System.Windows.Controls;

using System.Windows.Controls.Control;
using System.Windows.Forms;

问候,Ranjan VijayKumar。

最佳答案

如果您引用 MSDN,您会注意到 Microsoft .Net Framework 2.0 不支持 System.Windows.Controls

MSDN Reference .

enter image description here

关于c# - 命名空间 'Controls' 中不存在类型或命名空间名称 'System.Windows'(是否缺少程序集引用?),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23774636/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com