在学习 ASP.NET 和 Sharepoint 之前,我应该学习 .NET 和 C# 吗?

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

Should I learn .NET and C# before learning ASP.NET and Sharepoint?

c#.netasp.netsharepoint

提问by Rob Wells

G'day,

G'day,

I'm a long time Unix and Linux person with about 30 years and 14 years experience in those technologies, respectively. But wanting to expand my toolbox, I was trawling SO for hints on learning Sharepoint and I was wondering about Jon Skeet's answer to the question "How to begin as a .net and SharePoint developer" where he suggests learning .NET and C# before learning ASP.NET and Sharepoint.

我是 Unix 和 Linux 的资深人士,在这些技术方面分别拥有大约 30 年和 14 年的经验。但是想要扩展我的工具箱,我正在搜索有关学习 Sharepoint 的提示,我想知道 Jon Skeet 对问题“如何开始作为 .net 和 SharePoint 开发人员”的回答,他建议在学习 ASP 之前先学习 .NET 和 C# .NET 和 Sharepoint。

Should I learn .NET and C# before getting involved with ASP.NET and Sharepoint? And can anyone recommend good books for the four technologies?

在参与 ASP.NET 和 Sharepoint 之前,我应该学习 .NET 和 C# 吗?谁能推荐关于这四种技术的好书?

On SO so far, we've had questions for book recommendations for learning Sharepoint and ASP.NET but I haven't found anything about a "*nix head" dipping his toes into the MS waters for the first time.

到目前为止,我们对学习 Sharepoint 和 ASP.NET 的书籍推荐有疑问,但我没有发现任何关于“*nix head”第一次将脚趾浸入 MS 水域的问题。

At the moment I have Jon's recommendations from his answer above but I've been also been looking at the Head First C# book and a couple of O'Reilly Nutshell books.

目前我从上面的回答中得到了 Jon 的建议,但我也一直在看 Head First C# 书和几本 O'Reilly Nutshell 书。

The list of possible books I have so far is:

到目前为止,我可能拥有的书籍清单是:

C#:

C#:

Sharepoint:

分享点:

N.B. The Sharepoint list was obtained from the accepted answer to the question "WSS/MOSS". Thanks Pascal Paradis.

注意 Sharepoint 列表是从问题“ WSS/MOSS”的已接受答案中获得的。谢谢帕斯卡·帕拉迪斯。

Any one help with the suggestions for learning .NET and ASP.NET?

有人对学习 .NET 和 ASP.NET 的建议有帮助吗?

Any thoughts on these books?

对这些书有什么想法吗?

cheers,

干杯,

采纳答案by Nat

This really deserves something more than "Should you walk before you can run?", which was my first thought :)

这真的比“你应该先走路才能跑步吗?”更值得,这是我的第一个想法:)

With 30 odd years of experience (I assume programming experience), you should not really learn the basics, you need to get in depth understanding of the C# developement environment, IIS, SQL Server and SharePoint (in roughly that order). To be efficient, you need to compare these technologies and see how they are different from what you are used to rather than reading yet another book that starts with variable declaration syntax.

有 30 多年的经验(我假设有编程经验),您不应该真正学习基础知识,您需要深入了解 C# 开发环境、IIS、SQL Server 和 SharePoint(大致按此顺序)。为了提高效率,您需要比较这些技术,看看它们与您习惯的技术有何不同,而不是阅读另一本以变量声明语法开头的书。

I personally would get more from time spent with an expert, but that is not usually an option. Fortunately many of these people blog and those can be really illuminating. (see Eric Lippert)

我个人会从与专家相处的时间中获得更多收益,但这通常不是一种选择。幸运的是,这些人中有很多人写博客,这些博客真的很有启发性。(见埃里克·利珀特

When reading the detail, you will most likely be able to understand how the details operate without needing a full chapter.

阅读详细信息时,您很可能无需阅读整章即可了解详细信息的运作方式。

Small snippets of information are going to be more useful to you than large amounts of basic knowledge. E.g. I assume that a snippet of information such as "SharePoint stores all the documents for a Site Collection as a binary field in a single table." will provide you with more information than a several thousand word overview of SharePoint site collections.

与大量的基础知识相比,一小段信息对您更有用。例如,我假设诸如“SharePoint 将网站集的所有文档存储为单个表中的二进制字段”之类的信息片段 。将为您提供比数千字的 SharePoint 网站集概述更多的信息。

回答by Mark Brittingham

As with any language, you will need something to do while learning C#. While you can do sample projects as shown in the books, as an experienced developer, I would personally recommend learning by doing an ASP.NET project (you don't need to write a lot of "this is a function" type exercises as C# functions are pretty much the same as any c-style functions).

与任何语言一样,您在学习 C# 时需要做一些事情。虽然你可以像书中展示的那样做示例项目,但作为一个有经验的开发人员,我个人建议通过做一个 ASP.NET 项目来学习(你不需要像 C# 那样写很多“这是一个函数”类型的练习)函数与任何 c 风格的函数几乎相同)。

In short, I wouldput off Sharepoint development due to its very specific nature, but notASP.NET development.

简而言之,我推迟 Sharepoint 开发,因为它非常特殊,但不会推迟ASP.NET 开发。

Update: One other thing...Visual Studio makes web development quite straightforward. It is not as if Windows development is so much simpler than Web Development that it makes it easier to focus on the C#. It is more the case that each environment (Winforms versus Web) provides a different context within which C# is used. Thus, you may as well learn C# within the Web context since that will be your long-term focus.

更新:另一件事...Visual Studio 使 Web 开发变得非常简单。Windows 开发并不是比 Web 开发简单得多,而是更容易专注于 C#。更多的情况是,每个环境(Winforms 与 Web)都提供了不同的 C# 使用上下文。因此,您不妨在 Web 上下文中学习 C#,因为这将是您的长期重点。

One other thing: you may want to see this answerthat I offered to an earlier question about getting started with .NET.

另一件事:您可能希望看到我为之前关于 .NET 入门的问题提供的这个答案

回答by joe

AS my point of view YES.

作为我的观点是的。

Have look on this SO page

看看这个SO 页面

回答by smok1

I suggest you start learning from a book that will introduce you both to .NET and C#. When you will understand .NET world, you can go further to ASP.NET. Since you come from *nix world, you should learn how different .NET world is from your previous experiences, and even from Windows itself. I spent some time reading Andrew Troelsen's book, and I think they are quite ok to start, and then move to ASP.NET. From the list above I have heard, that Liberty's book is quite ok.

我建议您从一本介绍 .NET 和 C# 的书开始学习。当您了解 .NET 世界时,您可以进一步了解 ASP.NET。既然您来自 *nix 世界,您应该了解 .NET 世界与您以前的经验,甚至与 Windows 本身的不同。我花了一些时间阅读 Andrew Troelsen 的书,我认为他们可以很好地开始,然后转向 ASP.NET。从上面的列表中我听说,Liberty 的书还不错。

Troelsen: http://www.amazon.com/2008-NET-Platform-Fourth-Windows-Net/dp/1590598849/ref=sr_1_1?ie=UTF8&s=books&qid=1247572543&sr=1-1

特罗尔森:http://www.amazon.com/2008-NET-Platform-Fourth-Windows-Net/dp/1590598849/ref=sr_1_1?ie =UTF8&s =books&qid =1247572543&sr =1-1

回答by MicTech

You need knowledge about C# and .NET to developing ASP.NET apps or for SharePoint. Because both technology have same base and it's .NET

您需要有关 C# 和 .NET 的知识才能开发 ASP.NET 应用程序或用于 SharePoint。因为这两种技术都有相同的基础,而且都是 .NET

Head First C# for absolute beginner in programming (OOP) and C#. And it's good for you if you haven't knowledge about object programming, but if you familiar with OOP, this book wasting your time.

Head First C# 适合编程 (OOP) 和 C# 的绝对初学者。如果你不了解对象编程,这对你有好处,但如果你熟悉 OOP,这本书浪费你的时间。

Best way how to get in .NET and C# is C# in Depth: What you need to master C# 2 and 3

进入 .NET 和 C# 的最佳方式是深入了解 C#:掌握 C# 2 和 3 所需的知识

回答by User

By all means.

无论如何。

ASP.NET is not just another lightweight scripting language like PHP or something. its power comes from the language features and the framework libraries, which allow you to build an effective and professional backend for your site. If you choose to ignore them from the start, then you will miss the very advantage of ASP.NET over other frameworks. And you won't be productive.

ASP.NET 不仅仅是另一种轻量级脚本语言,如 PHP 之类的。它的强大功能来自语言功能和框架库,它们使您可以为您的站点构建有效且专业的后端。如果您选择从一开始就忽略它们,那么您将错过 ASP.NET 相对于其他框架的优势。而且你不会有生产力。

回答by glenatron

It's certainly worth getting the idea of working with C# and ASP.Net away from Sharepoint, because that adds it's own layers of awkwardness and eldritch horror onto anything you're going to be developing.

让 C# 和 ASP.Net 远离 Sharepoint 的想法当然是值得的,因为这会在您将要开发的任何东西上增加它自己的尴尬和可怕的层次。

When you do move on to developing for Sharepoint, one useful piece of equipment is a soft rubber desk. You're going to be banging your head against that thing a whole lot as you try to understand the mysteries of WSS, MOSS and friends and this is a good way to reduce long-term injuries.

当您继续为 Sharepoint 进行开发时,一个有用的设备是软橡胶桌。当您试图了解 WSS、MOSS 和朋友的奥秘时,您会经常用头撞到那件事,这是减少长期伤害的好方法。

回答by Galilyou

Absolutely you need o learn C# (or VB.NET or any .NET language) and ASP.NET before Sharepoint. Actually Sharepoint is built upon ASP.NET. Though you can use sharepoint by itself (create document libraries and stuff) from the browser, without having to deal with asp.net, but a lot of sharepoint things require .NET and ASP.NET. For example, SmartWebParts in sharepoint depend on creating asp.net user controls, also features in Sharepoint depends on .NET. So yeah! You have to learn C# and ASP.NET for doing real sharepoint stuff.
EDIT:
For the books thing, for me I think that
Inside Windows Sharepoint Services is an awesome book, it's the best one for programmer (IMHO of course).
Pro C# and the .NET 3.5is very highly recommended for C#
ASP.NET 2.0 Web Site programming Problem, Design, Solution would be my recommendation for ASP.NET

在学习 Sharepoint 之前,您绝对需要学习 C#(或 VB.NET 或任何 .NET 语言)和 ASP.NET。实际上,Sharepoint 是建立在 ASP.NET 之上的。虽然您可以从浏览器中单独使用 sharepoint(创建文档库和东西),而不必处理 asp.net,但是很多 sharepoint 的东西需要 .NET 和 ASP.NET。例如,sharepoint 中的 SmartWebParts 依赖于创建 asp.net 用户控件,Sharepoint 中的功能也依赖于 .NET。是的!你必须学习 C# 和 ASP.NET 才能做真正的共享点的东西。
编辑:
对于书籍,对我来说,我认为
Inside Windows Sharepoint Services 是一本很棒的书,它是程序员最好的书(当然恕我直言)。强烈建议
将 Pro C# 和 .NET 3.5用于 C#
ASP.NET 2.0 Web Site Programming Problem, Design, Solution是我对 ASP.NET 的推荐

回答by Colin

IMHO,

恕我直言,

Yes, definitely, IF you are going to do some development.

是的,当然,如果您要进行一些开发

No, If you are going to do administrationonly.

,如果您只打算进行管理

Seeing as SharePoint was built on top of .NET 2.0 (and 3.0, Windows Workflow Foundation), it is only natural one would first try to get a hang of the basics before diving into the SharePoint Object Model. What I can recommend is to just install a Virtual Machine and start rummaging around in SharePoint (create some web applications, list, then some Content Types and Site Columns, then combine the lot.) Then, try to create your own webpart when you have done some C# coding (or VB.NET for that matter), then try to roll-out that webpart using a feature and a SharePoint Solution file. Progress from there.

鉴于 SharePoint 构建于 .NET 2.0(以及 3.0、Windows Workflow Foundation)之上,因此在深入研究 SharePoint 对象模型之前,首先尝试掌握基础知识是很自然的。我可以推荐的是只安装一个虚拟机并开始在 SharePoint 中翻找(创建一些 Web 应用程序、列表,然后是一些内容类型和网站栏,然后组合这些。)然后,当你有完成了一些 C# 编码(或 VB.NET),然后尝试使用功能和 SharePoint 解决方案文件推出该 Web 部件。从那里取得进展。

SharePoint's Object Model is incredibly powerful and without a solid understanding of it's foundations you'll never get the full development experience.

SharePoint 的对象模型非常强大,如果不深入了解其基础,您将永远无法获得完整的开发体验。