.net Visual Studio Code 上的 Windows 窗体应用程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/40562192/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Windows Form application on Visual Studio Code?
提问by Pyke Kaisora
I am currently studying Visual Basic .Net but I'm currently using Linux Mint 18 Mate and the only Visual Studio that's available is Visual Studio Code. I was wondering if it's able to create Windows Form Application?
我目前正在学习 Visual Basic .Net,但我目前正在使用 Linux Mint 18 Mate,唯一可用的 Visual Studio 是 Visual Studio Code。我想知道它是否能够创建 Windows 窗体应用程序?
采纳答案by Jaime
Windows Forms is exclusive to the [Desktop] Windows platform. You can certainly not use VSCode for that, not even in Windows, as VSCode doesn't include form designer tools like the regular Visual Studio IDE. So even in case you could compile, there are still lacking all the facilities needed for designing.
Windows Forms 是 [Desktop] Windows 平台独有的。您当然不能为此使用 VSCode,即使在 Windows 中也不行,因为 VSCode 不包含像常规 Visual Studio IDE 那样的表单设计器工具。因此,即使您可以编译,仍然缺乏设计所需的所有设施。
You can rather try with MonoDevelop for Linux (see https://en.wikipedia.org/wiki/MonoDevelop)
您可以尝试使用 MonoDevelop for Linux(请参阅https://en.wikipedia.org/wiki/MonoDevelop)
Edit:
编辑:
A year later and it looks like support is coming. My guess is it won't be as nice as running on windows but it will look better than a Java app: https://github.com/dotnet/winforms
一年后,看起来支持即将到来。我的猜测是它不会像在 Windows 上运行一样好,但它看起来会比 Java 应用程序更好:https: //github.com/dotnet/winforms
回答by Sklash
According to the link below, VS Code does not support Desktop .NET Framework. Because VS Code is design to be Cross-Platform. Meaning that you can't work with "windows forms".
根据下面的链接,VS Code 不支持 Desktop .NET Framework。因为 VS Code 被设计为跨平台的。这意味着您不能使用“windows 窗体”。
https://code.visualstudio.com/docs/languages/csharp
https://code.visualstudio.com/docs/languages/csharp
Side-Note:I was wondering the same question while coding C# in Windows when I received "include System.Windows.Forms" was missing assembly references.
旁注:当我收到“include System.Windows.Forms”缺少程序集引用时,在 Windows 中编码 C# 时,我想知道同样的问题。

