Recently I performed a clean install of Kubuntu 15.10 on my laptop and installed Visual Studio Code in order to code C#, F# and other Microsoft based languages.
最近,我在笔记本电脑上安装了kubuntu15.10,并安装了Visual Studio代码,以编写c#、f#和其他基于微软的语言。
Using the internal commandline I installed C# and F#. However, when I am trying to compile/run my code I get the following error:
使用内部命令行,我安装了c#和f#。然而,当我试图编译/运行我的代码时,我得到以下错误:
open System;
public class Hello1
{
public static void Main()
{
System.Console.WriteLine("Hello, World!");
}
}
My Output:
sh: 0: Can't open undefined/build.sh
Screenshot: http://i.imgur.com/j97uatj.png
截图:http://i.imgur.com/j97uatj.png
I tried to Google the answer, but I wasnt able to find it. Do you have any idea what I am missing?
我想找出答案,但找不到。你知道我错过了什么吗?
Thanks!
谢谢!
1 个解决方案
#1
0
Visual Studio Code does not include any tools to build C# or F#. It is just a text editor, like Sublime. It is not an IDE.
Visual Studio代码不包含任何构建c#或f#的工具。它只是一个文本编辑器,就像崇高一样。它不是IDE。
If you want to use Visual Studio Code to program for .NET in Linux, you need to decide if you want to use Mono or ASP.NET Core.
如果您想在Linux中使用Visual Studio代码为. net编程,您需要决定是使用Mono还是ASP。净的核心。
For ASP.NET Core you can find instructions here and check this and this too.
ASP。你可以在这里找到指令,检查这个和这个。
For installing Mono, check this page.
要安装Mono,请检查此页面。
Note that for F# you need to use something like Ionide.io.
注意,对于f#,您需要使用Ionide.io之类的东西。
As per today there are the following options if you really need an IDE:
如今天所述,如果您确实需要IDE,有以下选项:
- MonoDevelop
- MonoDevelop
- Xamarin Studio - a fork of MonoDevelop, supported by Xamarin
- Xamarin工作室-一个由Xamarin支持的MonoDevelop的分支
- The newest and brightest addition - JetBrains' Project Rider, which is planned for release later this year (Q4) but accessible for EAP right now
- 最新的、最聪明的加成- JetBrains的Project Rider,计划在今年晚些时候发布(Q4),但是现在就可以使用了。
I personally think that Project Rider is the most promising tool, it has battle-tested products IdeaJ and Resharper under the bonnet and it is just a matter of time until it will become a de-facto the .NET IDE on Linux and Mac OS X. I would also prefer using it in Windows since it is much faster than Visual Studio.
我个人认为项目骑手是最有前途的工具,它有一些久经沙场的产品IdeaJ,Resharper引擎盖下,这只是一个时间问题,直到它将成为实际。net IDE在Linux和Mac OS x。我也喜欢使用它在Windows因为它Visual Studio要快得多。
#1
0
Visual Studio Code does not include any tools to build C# or F#. It is just a text editor, like Sublime. It is not an IDE.
Visual Studio代码不包含任何构建c#或f#的工具。它只是一个文本编辑器,就像崇高一样。它不是IDE。
If you want to use Visual Studio Code to program for .NET in Linux, you need to decide if you want to use Mono or ASP.NET Core.
如果您想在Linux中使用Visual Studio代码为. net编程,您需要决定是使用Mono还是ASP。净的核心。
For ASP.NET Core you can find instructions here and check this and this too.
ASP。你可以在这里找到指令,检查这个和这个。
For installing Mono, check this page.
要安装Mono,请检查此页面。
Note that for F# you need to use something like Ionide.io.
注意,对于f#,您需要使用Ionide.io之类的东西。
As per today there are the following options if you really need an IDE:
如今天所述,如果您确实需要IDE,有以下选项:
- MonoDevelop
- MonoDevelop
- Xamarin Studio - a fork of MonoDevelop, supported by Xamarin
- Xamarin工作室-一个由Xamarin支持的MonoDevelop的分支
- The newest and brightest addition - JetBrains' Project Rider, which is planned for release later this year (Q4) but accessible for EAP right now
- 最新的、最聪明的加成- JetBrains的Project Rider,计划在今年晚些时候发布(Q4),但是现在就可以使用了。
I personally think that Project Rider is the most promising tool, it has battle-tested products IdeaJ and Resharper under the bonnet and it is just a matter of time until it will become a de-facto the .NET IDE on Linux and Mac OS X. I would also prefer using it in Windows since it is much faster than Visual Studio.
我个人认为项目骑手是最有前途的工具,它有一些久经沙场的产品IdeaJ,Resharper引擎盖下,这只是一个时间问题,直到它将成为实际。net IDE在Linux和Mac OS x。我也喜欢使用它在Windows因为它Visual Studio要快得多。