Windows.Form c#没有visual studio

Non*_*biz 12 c# notepad winforms

我正在尝试学习Windows.Forms,虽然我有Visual Studio(编辑,显然我的错误),但我觉得通过在记事本中做所有事情我可以更有效地学习.我到处搜索了一个采用这种方法的教程.我终于开始使用http://www.geekpedia.com/tutorial33_Windows-forms-programming.html,但在第一个例子之后,它也开始使用多个文件了?以某种方式使用Visual Studio生成.我怎么能在记事本中这样做?任何人都可以指点我有帮助吗?

谢谢!

**虽然压倒性的反应似乎强烈反对这一点,但我开始被说服,我看到SmokingRope谈论它就像把所有类写成一个文件一样简单.这是我迄今为止所做的大型非Windows.Form项目.您可以帮助解释如何使用此方法包含这些必要的文件吗?*

rp.*_*rp. 27

说真的......我很佩服你的火,但你不在乎!你可能希望通过NotePad了解.NET,你用Visual Studio学习的速度要快几倍吗?这就像是在问:"我想学开车.我把轮子放在沙发上.接下来我该怎么办?"

我的意思是没有不尊重,但与Visual Studio交朋友,忙着学习.否则你会浪费你的时间.

  • 这让我想起每次发布一个新功能时,人们都会说它没有人会使用它等等.由于Linux IDE非常糟糕,他们唯一的论点就是"除非你使用VIM,否则你不是真正的程序员".我的雇主唯一关心的是我能多快完成任务.我花更少的时间与语言战斗,花更多的时间在代码上:) (3认同)

jus*_*sij 9

在IDE之外编写C#实际上非常容易.它基本上归结为从命令行提示符使用csc.exe编译器.

此过程中最难的部分是确保正确配置环境变量,Microsoft提供vsvars32.bat批处理文件来完成此操作.

这是一个简短的教程,介绍如何从命令行使用此批处理文件和编译器:http://www.zeusedit.com/forum/viewtopic.php?t = 1235

一个更好但更复杂的方法是使用MsBuild实用程序来管理项目的构建:http://www.zeusedit.com/forum/viewtopic.php?t = 2518

最后,您甚至可以使用外部C#Debugger来调试程序:http://www.zeusedit.com/forum/viewtopic.php?t = 2507

  • 你也可以用旧的焊条制作钉子 - 从而花费你所有的时间制作钉子.或者,你可以买一袋钉子并开始制作东西! (3认同)

Set*_*man 6

我在这里违背了原则......但我认为你的想法并不是那么糟糕......特别是对于一个小项目。

But using Notepad (or at LEAST use Notepad++) will teach you more about MSBuild and the VBC or CSC compiler syntax than it will teach you about the language features. The best way to learn the language, is, as other have said, using Visual Studio. The intellisense is a great way to learn.

But it also makes us lazy and it is true that we don't have to memorize as much...and sometimes having things memorized comes in handy. (ie.... I am at a customer and logged in remotely to the servers... no visual studio is installed... BUT... yippee... .NET 2 is there... at that moment you will have appreciated the exercise...)

Honestly, to do this for a reasonably small project I think would be a good exercise in learning. I say go for it. Hell, I might even join you.

But, that said, I think the very best way to do it would be to use both methods side-by-side. For example... If you want to use multiple files the way to do that is to create a folder and put an vbproj (or csproj) file in it. MSBuild.exe receives vbproj files (and sln files for that matter) as arguments. So, one of the quickest ways to learn the vbproj file syntax is to use visual studio to create a project... and then open the vbproj file in Notepad++.

问题是 Visual Studio 太棒了,因为它从开发人员那里抽象了太多东西。但不承认这有一个缺点是愚蠢的。这种抽象意味着我们不需要有那么深刻的理解。一切都会自动进行。所以我说再深入一点。我认为你不会后悔的。