在新的 Visual Studio for Mac 中 - 如何创建 Windows 窗体应用程序 - 或与之最相似的东西?在后一种情况下 - 我可以在其中打开旧的 Windows 窗体应用程序项目吗?这是一项学生学校任务,我们将打开一个作为示例创建的旧 Windows 窗体项目 - 运行它并获得创建新项目的灵感。是否可以通过新的 Visual Studio for Mac 执行此操作?
最佳答案
可以在 Visual Studio for Mac 中打开并运行在 Windows 上的 Visual Studio 中创建的 Windows 窗体项目。它可能在一些简单的情况下工作,但通常不支持它,当它崩溃时,没有人会帮助你。我尝试迁移我的 WinForms 项目,并在尝试显示 NotifyIcon 时发生崩溃后停止:
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
不幸的是,这是一条死胡同。
关于macos - 在新的 Visual Studio for Mac 中 - 可以创建 Windows 窗体应用程序吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41148210/