使用 Eclipse 进行 .NET 开发是否可行?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2875910/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 14:19:19  来源:igfitidea点击:

Is it feasible to do .NET development using Eclipse?

.neteclipse

提问by Christopher Barber

How feasible is it to use Eclipse to develop .NET applications? Is it best just to go with Visual Studio?

使用 Eclipse 开发 .NET 应用程序的可行性如何?最好只使用 Visual Studio 吗?

Update: I am not especially concerned with the cost and I am using Windows, not linux. I am mostly trying to avoid having to use two different IDEs.

更新:我不是特别关心成本,我使用的是 Windows,而不是 linux。我主要是想避免必须使用两个不同的 IDE。

Another way of asking this question is "are there any good Eclipse plugins for doing .NET development". Unfortunately, the answer appears to be "no".

问这个问题的另一种方式是“是否有任何好的 Eclipse 插件可以用于 .NET 开发”。不幸的是,答案似乎是否定的。

采纳答案by Ken

I've only used Eclipse once, for a few minutes, back when a 900MHz CPU was top-of-the-line. So I don't claim to know what it does or how well it does it.

我只用过一次 Eclipse,有几分钟,当时 900MHz CPU 是顶级的。所以我并不声称知道它做了什么或它做得如何。

That said, I see no problem at all with using a non-VS dev environment. Almost every C# developer at my company uses Emacs (there's also a VIM minority). We've got C# modes, we've got jump to definition, block folding, compilation modes, etc., all from our "editors". (I hesitate to use that word since I can't see a clear distinction between "editor" and "IDE".) There's not much special that VS can do that other environments can't, and 10+ years of experience and configuration easily trumps that.

也就是说,我认为使用非 VS 开发环境没有任何问题。我公司几乎每个 C# 开发人员都使用 Emacs(也有少数 VIM)。我们有 C# 模式,我们有跳转到定义、块折叠、编译模式等,所有这些都来自我们的“编辑器”。(我犹豫要不要使用这个词,因为我看不到“编辑器”和“IDE”之间的明显区别。)VS 没有什么其他环境做不到的特别之处,而且 10 多年的经验和配置很容易胜过这一点。

The one thing special I can think of is the debugger: VS2005 had a standalone debugger, and VS2010 it's only available as part of the IDE (with a few new features), but that's it. But you can still launch VS2010 and connect to a running process just fine, even if you aren't otherwise using VS2010 for anything. The net effect of the slightly awkward debugger situation is mostly that I write more unit tests, and nobody seems to be complaining about that.

我能想到的一件特别的事情是调试器:VS2005 有一个独立的调试器,而 VS2010 它仅作为 IDE 的一部分可用(具有一些新功能),仅此而已。但是您仍然可以启动 VS2010 并很好地连接到正在运行的进程,即使您不使用 VS2010 做任何事情。稍微尴尬的调试器情况的净影响主要是我编写了更多的单元测试,而且似乎没有人抱怨这一点。

One thing that people like to bring up is "Intellisense". I've used VS in the past, and used Intellisense, and it's neat, but then I missed dynamic-abbrevs. Today I use Emacs and use dynamic-abbrevs and rarely miss Intellisense. I think dynamic-abbrevs are more useful once you know the language/stdlib you're working with. But I certainly don't think anybody has a monopoly on a One True Way to do code completion. Both are useful.

人们喜欢提到的一件事是“智能感知”。我过去用过 VS,也用过 Intellisense,它很简洁,但后来我错过了动态缩写。今天我使用 Emacs 并使用动态缩写,很少错过 Intellisense。我认为一旦你知道你正在使用的语言/标准库,动态缩写会更有用。但我当然不认为任何人都垄断了 One True Way 来完成代码。两者都很有用。

VS seems to do best the more you live only in Microsoft's world: .NET, TFS, etc. If you're using Microsoft-everything all the way down, it's probably pretty good, but the further you step away from that, the worse it gets. A more general environment like Emacs provides very good support for all kinds of things. (e.g., Do you want to learn a new UI when your next project uses a different VCS, or scripting language? The cost of that is only zero if your knowledge is worthless.)

VS 似乎做得最好,你只在微软的世界里生活得越多:.NET、TFS 等。它得到。像 Emacs 这样的更通用的环境为各种事物提供了很好的支持。(例如,当您的下一个项目使用不同的 VCS 或脚本语言时,您是否想学习一个新的 UI?如果您的知识毫无价值,那么成本只会为零。)

So use whatever makes you productive, and don't let anyone tell you that you need Visual Studio Express to write a C# program.

因此,使用任何能让您提高效率的方法,不要让任何人告诉您您需要 Visual Studio Express 来编写 C# 程序。

回答by Robert Harvey

You can get a free version of Visual Studio (Express);that's probably a better way to go than Eclipse.

您可以获得免费版的Visual Studio (Express);这可能是比 Eclipse 更好的方法。

回答by C. Dragon 76

It's very feasible. All the .NET compilers are standard stdin/stdout console apps that can easily be plugged in to most modern IDEs like Eclipse. You can even use the console app msbuild.exe if you want to use MSBuild (*.sln, *.csproj, etc.) as your build/make system. So if you're most comfortable working in Eclipse, I wouldn't hesitate to give it a shot.

这是非常可行的。所有 .NET 编译器都是标准的 stdin/stdout 控制台应用程序,可以轻松插入大多数现代 IDE,如 Eclipse。如果您想使用 MSBuild(*.sln、*.csproj 等)作为您的构建/制作系统,您甚至可以使用控制台应用 msbuild.exe。因此,如果您最喜欢在 Eclipse 中工作,我会毫不犹豫地尝试一下。

A few Visual Studio features you may miss are:

您可能会错过的一些 Visual Studio 功能是:

  • Integrated debugging.
  • Excellent Intellisense support.
  • GUI designers. (For WPF, Silverlight, web apps, and WinForms.)
  • 综合调试。
  • 出色的智能感知支持。
  • GUI设计师。(适用于 WPF、Silverlight、Web 应用程序和 WinForms。)

So if any of those are of high importance to you, then it may be worth using Visual Studio.

因此,如果其中任何一个对您来说非常重要,那么使用 Visual Studio 可能是值得的。

And there's nothing wrong with splitting time between Visual Studio and Eclipse. For example, you may decide to prototype and debug in Visual Studio, but do your core development work in Eclipse.

在 Visual Studio 和 Eclipse 之间分配时间也没有错。例如,您可能决定在 Visual Studio 中进行原型设计和调试,但在 Eclipse 中进行核心开发工作。

回答by Justin

To answer you question, take a look at the Improveplugin for Eclipse.

要回答您的问题,请查看Eclipse的改进插件。

This topiccovers your question as well.

主题也涵盖您的问题。

回答by Syd

Imagine that when you were doing work in Unix and you were using Visual Studio to do your coding. You have to upload your files to Unix to get it compiled and linked. If there is any error, you have to fix it in your PC and then repeat the process. How productive would you be? I know this is the reverse extreme comparison but one has to think of using the most appropriate tool for your team. :p

想象一下,当您在 Unix 中工作时,您正在使用 Visual Studio 进行编码。您必须将文件上传到 Unix 才能对其进行编译和链接。如果有任何错误,您必须在您的 PC 中修复它,然后重复该过程。你会有多高的生产力?我知道这是反向极端比较,但必须考虑为您的团队使用最合适的工具。:p

The other consideration you should make is that when you go to a client or your colleague, do you expect that he or she has Eclipse installed in his/her environment?

您应该考虑的另一个问题是,当您去找客户或同事时,您是否希望他或她在他/她的环境中安装了 Eclipse?

Does this help you make a decision? My 2 cents.

这是否有助于您做出决定?我的 2 美分。

Cheers

干杯

回答by Randy Minder

You might find this thread interesting and useful:

您可能会发现此主题有趣且有用:

http://forums.whirlpool.net.au/forum-replies-archive.cfm/425594.html

回答by Daniel Plaisted

If you are looking for a free IDE, you might look at the Express versions of Visual Studio, or the open source SharpDevelopproject.

如果您正在寻找免费的 IDE,您可以查看Visual StudioExpress 版本或开源SharpDevelop项目。

回答by Joel Coehoorn

It's important to remember that .Net and Visual Studio are very much developed together to work best together. If you can go with the express edition of visual studio, you should. Anything else doesn't really give you what you need to accurately evaluate just .Net as a platform.

重要的是要记住 .Net 和 Visual Studio 是一起开发的,可以最好地协同工作。如果您可以使用visual studio的快速版,那么您应该。其他任何东西都不能真正为您提供准确评估 .Net 作为平台所需的东西。

That said, I can understand a developer used to Eclipse not wanting to install a separate IDE just to try out .Net. You might even normally run linux. With that in mind, a quick google search for mono eclipseturned up several promising results. You could also try Monodevelopdirectly.

也就是说,我可以理解习惯了 Eclipse 的开发人员不想安装单独的 IDE 只是为了尝试 .Net。您甚至可以正常运行 linux。考虑到这一点,在谷歌上快速搜索mono eclipse了几个有希望的结果。您也可以直接尝试Monodevelop