从哪里开始使用 C# 和 Dreamweaver 中的 ASP.net?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/783532/
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
Where to start with ASP.net in C# and Dreamweaver?
提问by Ben Lynch
I am looking to start working on a personal site using C#. I work as a web developer and have used VBScript previously and am using Coldfusion now at work. I use Dreamweaver for development in these languages.
我希望开始使用 C# 在个人网站上工作。我是一名 Web 开发人员,以前使用过 VBScript,现在在工作中使用 Coldfusion。我使用 Dreamweaver 进行这些语言的开发。
I have read a lot of people recommending that you should use a MS IDE to develop in .net and that C# is the way to go in terms of the language. I would like to stick with Dreamweaver as I feel I would be taking on a bit too much to learn how to use a new IDE and a new language at the same time.
我读过很多人建议您应该使用 MS IDE 在 .net 中进行开发,并且 C# 是该语言的最佳选择。我想坚持使用 Dreamweaver,因为我觉得要同时学习如何使用新的 IDE 和新的语言,我会承担太多的工作。
Will using something like Visual Studio help with developing in .net so much that it is worth the effort of changing from Dreamweaver? If so which IDE would be best to learn with?
使用诸如 Visual Studio 之类的东西是否对在 .net 中进行开发有很大帮助,以至于值得从 Dreamweaver 进行更改?如果是这样,哪个IDE最适合学习?
If I choose to stick with Dreamweaver is there any recommendations you can make as to how to best setup Dreamweaver for easy development?
如果我选择坚持使用 Dreamweaver,是否有关于如何最好地设置 Dreamweaver 以便于开发的建议?
采纳答案by Mehrdad Afshari
I believe not. Dreamweaver is not a good tool for developing code. This is what you need in ASP.NET. You'll need debugging. You'll enjoy IntelliSense, and you can always open single files in Dreamweaver occasionally (which I doubt you would, anyway).
我相信不会。Dreamweaver 不是开发代码的好工具。这就是您在 ASP.NET 中所需要的。你需要调试。您会喜欢 IntelliSense,而且您总是可以偶尔在 Dreamweaver 中打开单个文件(无论如何我怀疑您会这样做)。
Grab Visual Studio Express 2013 for Web(which is free) and enjoy. It's a Windows app, like many other Windows apps! You don't need professional training to use it.
获取Visual Studio Express 2013 for Web(免费)并享受。它是一个 Windows 应用程序,就像许多其他 Windows 应用程序一样!您无需专业培训即可使用它。
回答by John Rasch
As someone who formerly coded PHP in Dreamweaver, I would strongly suggest the use of the Visual Studio IDE for C# ASP.NET applications. The benefits are numerous:
作为以前在 Dreamweaver 中编写 PHP 代码的人,我强烈建议将 Visual Studio IDE 用于 C# ASP.NET 应用程序。好处很多:
- Intellisense- where any object, property, method, etc. that you create will automatically appear in an auto-complete box, drastically reducing syntax errors
- Project templates- starting a web application from scratch is going to be very very tricky if you have to do it all via source code
- Debugging- errors can be caught and debugged directly in the source code
- Add-ins- my favorite being the Configuration Section Designer
- Intellisense- 您创建的任何对象、属性、方等将自动出现在自动完成框中,从而大大减少语错误
- 项目模板- 如果您必须通过源代码来完成所有工作,那么从头开始创建 Web 应用程序将非常棘手
- 调试- 可以直接在源代码中捕获和调试错误
- 插件- 我最喜欢的是配置部分设计器
I'm sure there are even more reasons, these are just the biggest ones.
我敢肯定还有更多原因,这些只是最大的原因。
回答by John Rasch
Yes, coming from the exact same situation I can tell you now it will help a great deal to walk away from Dreamweaver for your .net work. The intellisense for C# is not super great in Dreamweaver. You will find features you miss a great deal from Dreamweaver though, specifically code completion on the HTML side is much better in Dreamweaver then in VS.
是的,从完全相同的情况出发,我现在可以告诉您,离开 Dreamweaver 对您的 .net 工作有很大帮助。C# 的智能感知在 Dreamweaver 中并不是特别好。但是,您会发现 Dreamweaver 遗漏了很多功能,特别是 HTML 方面的代码完成在 Dreamweaver 中比在 VS 中要好得多。
回答by Bayard Randel
If you feel comfortable using Dreamweaver for design, you can still continue to use it, but I would strongly recommend you familiarise yourself with Visual Studio Expresshowever (it's free). Trying to learn .NET and C# using a text editor or an application like dreamweaver is feasible, but you would be making the learning process unnecessarily difficult. Visual Studio gives you syntax highlighting, intellisense, debugging, and many other features that you just aren't going to get in another IDE targeted at web design. VS is really very strongly coupled to .NET development.
如果您觉得使用 Dreamweaver 进行设计很舒服,您仍然可以继续使用它,但是我强烈建议您熟悉Visual Studio Express(它是免费的)。尝试使用文本编辑器或 Dreamweaver 之类的应用程序学习 .NET 和 C# 是可行的,但会使学习过程变得不必要地困难。Visual Studio 为您提供语高亮、智能感知、调试和许多其他功能,而您不会在另一个针对 Web 设计的 IDE 中获得这些功能。VS 确实与 .NET 开发非常紧密地耦合在一起。
I started my career as a web designer many years ago using Dreamweaver, and have gradually made the transition to software developer. Leaving tools like Dreamweaver behind has actually given me a lot more freedom in terms of working as a designer, and I find that I don't in fact need any tools for markup and css other than a text editor. You may find that abandoning a design tool like dreamweaver actually makes you a better designer; and just as well - the "design" tools in Visual Studio are absolutely useless :)
多年前,我使用 Dreamweaver 开始了我的网页设计师职业生涯,并逐渐过渡到软件开发人员。放弃像 Dreamweaver 这样的工具实际上给了我作为设计师的更多自由,而且我发现除了文本编辑器之外,我实际上不需要任何标记和 css 工具。您可能会发现放弃 Dreamweaver 这样的设计工具实际上会让您成为更好的设计师;同样 - Visual Studio 中的“设计”工具绝对没用:)
If you do decide to continue using Dreamweaver for markup, be aware that things may render differently in Visual Studio. Ignore the Visual Studio design pane entirely and just check your design in the various browsers (I'm sure you already do this).
如果您决定继续使用 Dreamweaver 进行标记,请注意在 Visual Studio 中呈现的内容可能会有所不同。完全忽略 Visual Studio 设计窗格,只需在各种浏览器中检查您的设计(我确定您已经这样做了)。
回答by Eric Petroelje
I think you would be very disappointed with the ASP.NET support in Dreamweaver. You would be MUCH better off getting yourself a copy of Visual Studio / Web Developer (express editions are free) and doing your development there.
我想您会对 Dreamweaver 中的 ASP.NET 支持感到非常失望。您最好为自己准备一份 Visual Studio / Web Developer(快速版本是免费的)并在那里进行开发。
That said, there's no reason why you can't create your HTML and CSS in Dreamweaver, then bring those files into Visual Studio to actually put in the code. This is kind of a one-time deal though since usually once you've started splitting up your HTML into master pages and user controls/partial views, it's pretty difficult to go back and edit them again in Dreamweaver.
也就是说,没有理由不能在 Dreamweaver 中创建 HTML 和 CSS,然后将这些文件放入 Visual Studio 以实际放入代码。这是一种一次性交易,因为通常一旦您开始将 HTML 拆分为母版页和用户控件/部分视图,就很难返回并在 Dreamweaver 中再次编辑它们。
回答by Joel Coehoorn
Another vote for Visual Studio, with the addition that you don't have to give up Dreamweaver. You can use Dreamweaver to build a basic layout and interface design. Then use Visual Studio to realize the implementation of that design.
对 Visual Studio 的另一票,另外还有您不必放弃 Dreamweaver。您可以使用 Dreamweaver 构建基本布局和界面设计。然后使用 Visual Studio 来实现该设计的实现。
You will find building ASP.Net without a purpose-build IDE painful.
您会发现在没有专门构建的 IDE 的情况下构建 ASP.Net 很痛苦。
回答by Adam
Visual Studio 2008 will be probably better. Not only IntelliSense, but also debugging in JavaScript can be helpfull sometimes (don't know is it included in the Express edition).
Visual Studio 2008 可能会更好。不仅 IntelliSense,而且在 JavaScript 中调试有时也很有帮助(不知道它是否包含在 Express 版本中)。
回答by Ted
I'd really like to point out that "IntelliSense" is nothing new and nothing Microsoft invented by any means. IntelliSense IS code hinting with links to the Microsoft help page, which I've never needed personally. Please see that Dreamweaver does have code hinting exactly the same as Visual Studio, however is not designed to develop C# and similar languages, and for that reason alone I would not recommend trying to develop with it. As for developing purely in HTML, CSS, and JavaScript, a plain text editor is a better choice than Visual Studio granted you don't change any of the settings. There are so many things I hate about how VS behaves while I'm writing HTML, but that's another thread. On another site.
我真的想指出“智能感知”并不是什么新鲜事,也不是微软以任何方式发明的。IntelliSense IS 代码提示带有指向 Microsoft 帮助页面的链接,我个人从未需要过。请注意,Dreamweaver 确实具有与 Visual Studio 完全相同的代码提示,但并非旨在开发 C# 和类似语言,因此我不建议尝试使用它进行开发。至于纯粹使用 HTML、CSS 和 JavaScript 进行开发,纯文本编辑器比 Visual Studio 更好,前提是您无需更改任何设置。在我编写 HTML 时,我讨厌 VS 的行为方式有很多,但这是另一个话题。在另一个网站上。