Contact me: hankecnc@gmail.com

我的图片框.cs #1461

推推 grbl 3年前 (2023-01-28) 298次浏览
关闭
oliverhbailey 打开了这个问题 2021 年 5 月 22 日 · 4条评论
关闭

我的图片框.cs#1461

oliverhbailey 打开了这个问题 2021 年 5 月 22 日 · 4条评论

注释

我的图片框.cs #1461

使用 MonoDevelop 生成 lasergrbl 使用 4.3.0 源代码生成以下错误。该错误表明源文件不存在但确实存在,并且在构建之前执行了完整的项目清理。

/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/CSC:错误 CS2001:源文件’/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/找不到 UserControls/MyPictureBox.designer.cs’。(CS2001) (LaserGRBL)

对错误是什么的清晰简洁的描述。

重现
在您的主文件夹路径中下载 lasergrbl-4.3.0.zip 源代码 zip 文件

  1. 打开 monoDevelop
  2. 打开项目文件
  3. 从构建菜单执行全部清除
  4. 执行全部构建
  5. 检查错误

预期行为
应该已经执行了成功的编译。
截图

如果适用,请添加屏幕截图以帮助解释您的问题。

软硬件配置(请填写以下信息):

  • Debian 10 于 2021 年 6 月 21 日更新
  • 单声道 6.12
  • 单体开发 7.8.4
  • Eleksmaker A3
  • Grbl版本(即0.9j、1.1h)
  • LaserGRBL 4.3.0

附加上下文
源代码树中似乎缺少文件 MyPictureBox.designer.cs。它在项目中被引用,但在源代码树中缺失。

我的图片框.cs #1461
所有者

https://github.com/arkypita/LaserGRBL/tree/master/LaserGRBL/UserControls

存储库显示它没有丢失。检查区分大小写

我的图片框.cs #1461
作者
奥利弗贝利 评论了 2021 年 5 月 22 日 通过电子邮件
我的图片框.cs #1461
作者
奥利弗贝利 评论了 2021 年 5 月 24 日  

我进一步调查了缺少的 System.Xml 程序集。这条评论的最后是 44 个错误。Mono、Xmarin 和 .Net 自 2017 年最初构建以来发生了很多变化。目前 .NET SDK 是 5.0,它是之前 Windows (.NET)、Linux (MONO) 和 Windows 的整合将 Forms、MacOS、Android (Xmarin) 整合到一个 .NEt SDK 中。
System.XML 序列化不在 .NET 5.0 SDK 中。但是,如果您阅读 Microsoft 的开发人员文档,Winforms 将在几个月后发布的下一个 .NET 6.0 版本中完全消失。他们提到了特定的系统程序集,这些程序集将在需要更改所有平台源代码的程序集中消失。如果您打算继续编译此产品,那么它可能值得一读。一旦做出更改,建议的更改将允许所有 C# 9 产品在所有平台上编译。

/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/Paths/SvgPath.cs(18,18):错误 CS0234:类型或命名空间名称“序列化”不存在于命名空间“System.Xml”(是否缺少程序集引用?)(CS0234) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgElement.cs(41, 41):错误 CS0246:找不到类型或命名空间名称“XmlTextReader”(是否缺少 using 指令或程序集引用?)(CS0246) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/ LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgElement.cs(50,50):错误 CS0246:类型或命名空间名称“XmlTextWriter”找不到(是否缺少 using 指令或程序集引用?)(CS0246) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgElement.cs(48,48):错误 CS0246:找不到类型或命名空间名称“XmlTextWriter”(您是缺少 using 指令或程序集参考?) (CS0246) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgElement.cs(48,48):错误 CS0246 : 找不到类型或命名空间名称“XmlTextWriter”(是否缺少 using 指令或程序集引用?)(CS0246) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0 /LaserGRBL/SvgLibrary/SvgElement.cs(35,35):错误 CS0246:找不到类型或命名空间名称“XmlTextWriter”(是否缺少 using 指令或程序集引用?)(CS0246) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgElement.cs(46,46):错误 CS0246:找不到类型或命名空间名称“XmlTextWriter”(您是缺少 using 指令或程序集参考?) (CS0246) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/PSHelper/MaterialDB.Designer.cs(25,25):错误 CS0234:命名空间“System.Xml”中不存在类型或命名空间名称“序列化”(是否缺少程序集引用?)(CS0234) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/ LaserGRBL-4.3.0/LaserGRBL/PSHelper/MaterialDB.Designer.cs(25,25):错误 CS0234:命名空间“System.Xml”中不存在类型或命名空间名称“Serialization”(您是否缺少装配参考?)(CS0234)(LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/PSHelper/MaterialDB.Designer.cs(72,72):错误 CS0234:类型或命名空间名称“XmlReader”不存在于命名空间“System.Xml”(是否缺少程序集引用?)(CS0234) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/PSHelper/MaterialDB.Designer.cs( 54,54):错误 CS0234:命名空间“System.Xml.Schema”中不存在类型或命名空间名称“XmlSchema”(是否缺少程序集引用?)(CS0234) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/PSHelper/MaterialDB.Designer.cs(118,118):错误 CS0234:命名空间中不存在类型或命名空间名称“XmlSchemaSet” System.Xml.Schema’(您缺少程序集参考吗?)(CS0234) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/PSHelper/MaterialDB.Designer.cs( 49,49):错误 CS0234:命名空间“System.Xml.Schema”中不存在类型或命名空间名称“XmlSchemaComplexType”(是否缺少程序集引用?)(CS0234) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/PSHelper/MaterialDB.Designer.cs(64,64):错误 CS0012:类型“XmlSchema”在不是参考。您必须添加对程序集“System.Xml,Version=4.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089”的引用。(CS0012) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/PSHelper/MaterialDB.Designer.cs(120,120):错误 CS0234:类型或命名空间名称“XmlSchemaSet”不命名空间“System.Xml.Schema”中不存在(是否缺少程序集引用?)(CS0234) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/PSHelper/MaterialDB.Designer.cs(53,53):错误 CS0234:类型或命名空间名称“XmlSchemaComplexType”不存在于命名空间“System.Xml.Schema”(是否缺少程序集引用?)(CS0234) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/Document Structure/SvgDocumentMetadata .cs(41,41):错误 CS0246:找不到类型或命名空间名称“XmlTextWriter”(是否缺少 using 指令或程序集引用?)(CS0246) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/Document Structure/SvgDocumentMetadata.cs(42,42):错误 CS0246:找不到类型或命名空间名称“XmlTextReader” (您是否缺少 using 指令或程序集引用?)(CS0246) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/Document Structure/SvgFragment.cs(51 ,51):错误 CS0246:找不到类型或命名空间名称“XmlTextWriter”(是否缺少 using 指令或程序集引用?)(CS0246) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/PSHelper/MaterialDB.Designer.cs(29,29):错误 CS0234:类型或命名空间名称“序列化”不存在于命名空间“System.Xml”(是否缺少程序集引用?)(CS0234) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgElementFactory.cs(36, 36): 错误 CS0246: 找不到类型或命名空间名称“XmlReader”(是否缺少 using 指令或程序集引用?)(CS0246) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/ LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgElementFactory.cs(41,41):错误 CS0246:类型或命名空间名称“XmlReader”找不到(是否缺少 using 指令或程序集引用?)(CS0246) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgElementFactory.cs(45,45):错误 CS0246:找不到类型或名称空间名称“XmlReader”(您是缺少 using 指令或程序集参考?) (CS0246) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgElementFactory.cs(56,56):错误 CS0246 : 找不到类型或命名空间名称“XmlReader”(是否缺少 using 指令或程序集引用?)(CS0246) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0 /LaserGRBL/SvgLibrary/SvgNodeReader.cs(43,43):错误 CS0246:找不到类型或命名空间名称“XmlNodeReader”(是否缺少 using 指令或程序集引用?)(CS0246) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgNodeReader.cs(32,32):错误 CS0115:“SvgNodeReader.Value”:找不到合适的方法来覆盖 (CS0115) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgNodeReader.cs(32,32): 错误 CS0115: ‘SvgNodeReader.LocalName’: 找不到合适的覆盖方法(CS0115) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgNodeReader.cs(30,30):错误 CS0115:“SvgNodeReader.MoveToNextAttribute()”:否找到合适的方法来覆盖 (CS0115) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgNodeReader.cs(30,30): 错误 CS0115: ‘SvgNodeReader.Read()’: 找不到合适的方法来覆盖 ( CS0115) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgNodeReader.cs(30,30): 错误 CS0115: ‘SvgNodeReader.ResolveEntity()’: 不合适发现覆盖 (CS0115) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgNodeReader.cs(30,30) 的方法:错误 CS0246:类型或命名空间名称找不到“XmlNode”(是否缺少 using 指令或程序集引用?)(CS0246) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgTextReader.cs(43,43):错误 CS0246:找不到类型或命名空间名称“XmlTextReader”(您是缺少 using 指令或程序集引用?) (CS0246) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgTextReader.cs(32,32):错误 CS0115 : ‘SvgTextReader.Value’: 找不到合适的方法来覆盖 (CS0115) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgTextReader.cs(32,32) :错误 CS0115:“SvgTextReader.LocalName”:找不到合适的方法来覆盖 (CS0115) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgTextReader.cs(30,30): 错误 CS0115: ‘SvgTextReader.MoveToNextAttribute()’: 找不到合适的方法来覆盖 ( CS0115) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgTextReader.cs(30,30): 错误 CS0115: ‘SvgTextReader.Read()’: 不合适发现覆盖 (CS0115) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgTextReader.cs(30,30) 的方法:错误 CS0115:’SvgTextReader.ResolveEntity( )’:找不到合适的方法来覆盖 (CS0115) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgDocument.cs(34,34):错误 CS0246:找不到类型或命名空间名称“XmlReader”(您是缺少 using 指令或程序集参考?) (CS0246) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgDocument.cs(40,40):错误 CS0246 : 找不到类型或命名空间名称“XmlDocument”(是否缺少 using 指令或程序集引用?)(CS0246) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0 /LaserGRBL/SvgLibrary/SvgDocument.cs(43,43):错误 CS0246:找不到类型或命名空间名称“XmlDocument”(是否缺少 using 指令或程序集引用?)(CS0246) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgDocument.cs(36,36):错误 CS0246:找不到类型或名称空间名称“XmlTextWriter”(您是缺少 using 指令或程序集引用?) (CS0246) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/SvgLibrary/SvgDtdResolver.cs(37,37):错误 CS0246 : 找不到类型或命名空间名称“XmlUrlResolver”(是否缺少 using 指令或程序集引用?)(CS0246) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0 /LaserGRBL/SvgLibrary/SvgDtdResolver.cs(32,32): 错误 CS0115: ‘SvgDtdResolver.GetEntity(Uri, string, Type)’: 找不到合适的方法来覆盖 (CS0115) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/UserControls/MyPictureBox.cs(27,27): 错误 CS0115: ‘MyPictureBox.OnMouseDown(MouseEventArgs)’: 找不到合适的方法来覆盖(CS0115) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/UserControls/MyPictureBox.cs(27,27):错误 CS0115:“MyPictureBox.OnMouseMove(MouseEventArgs)”:找不到合适的方法来覆盖 (CS0115) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/UserControls/MyPictureBox.cs(27,27): Error CS0115: ‘MyPictureBox. OnMouseUp(MouseEventArgs)’:找不到合适的方法来覆盖 (CS0115) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/UserControls/MyPictureBox.cs(27,27): 错误 CS0115: ‘MyPictureBox.OnPaint(PaintEventArgs)’: 找不到合适的方法来覆盖(CS0115) (LaserGRBL)
/home/oliverhbailey/Downloads/LaserGRBL-4.3.0/LaserGRBL-4.3.0/LaserGRBL/UserControls/MyPictureBox.cs(27,27):错误 CS0115:“MyPictureBox.OnPaintBackground(PaintEventArgs)”:找不到合适的方法来覆盖 (CS0115) (LaserGRBL)

我的图片框.cs #1461
所有者

我知道微软正在做很多工作来使 .net 跨平台,并且将来会放弃 winform,但这种转变目前需要重新设计整个用户界面(实际上并不多,但仍然是繁重的工作)非常不同的范例(WPF 等)不能立即快速地从 winform 翻译。