Creating Web Pages Using Visual Studio 2010 Express

I am trying to start work on creating my own websites, planning to follow this article in this article , I can not find the sn.exe tool (or "Visual Studio 2005 Command Prompt"!).

I know that this is not a direct question related to programming, but I still can not understand what is happening.

Any help is appreciated. Thanks

EDIT: -

I think that I might jump quite a bit with a gun, I wrote a simple greeting example and tried to build it, but it has no links to Microsoft.SharePoint packages, and they do not appear on my lists.

I understand some additional research that I did (namely this ) correctly, because I have a virtually complete installation of the actual SharePoint on the machine I'm developing?

+4
source share
2 answers

sn.exe is part of the .NET Framework SDK tools - it is not actually part of Visual Studio.

If you have the SDK installed (which I think you need if you use VS), it will be in a directory, for example (depending on which version of the .NET SDK is installed)

c:\program files\microsoft.net\SDK\v2.0\Bin

You can create SharePoint web parts using VS express, but you cannot use extensions such as VSeWSS that can make your life a little easier.

You do not have development on a computer with SharePoint installed - you can simply copy the Microsoft.SharePoint.dll assembly from the machine installed on it and refer to it in your project.

There are pros and cons of development on a SharePoint computer.

  • It's easier to get started β€” especially debugging locally than remote debugging.
  • It’s more difficult to have the code work as a β€œreal server” - you are sure that you have no dependencies that may not be installed.
  • It is more difficult to work with several versions of SharePoint (2007) WSS and MOSS and 2010, server, etc.).

If you want to work with a locally installed SharePoint, then

  • You can install Windows with Windows and Visual Studio.
  • there is a hack for installing SharePoint 2007 on Vista (link to the SO link you are linking to)
  • you can install SharePoint Foundation 2010 on Windows 7 (but I'm not sure what licensing restrictions are - can it be something that is transmitted via MSDN?)

If you decide to go with the installation of a remote server, then save yourself grief and use virtualization, such as VMWare Server, Virtual PC or Hyper-V.

+2
source

If you are developing SharePoint trying to reference Microsoft.SharePoint namespaces, you need to install SharePoint on your computer if you want to do something like debugging, etc. For SP 2010, you can install SharePoint on a Win 7 machine. For previous versions of SharePoint, you need to configure Server 2003 or Server 2008 (you cannot install SP 2007 and earlier versions on client machines). Typically, this is a virtual machine for developers.

Having said all this, there are relatively few reasons why you need SharePoint to develop WebPart. The vast majority of WebPart functionality is part of the System.Web.UI.WebControls.WebParts . Even if I access SharePoint data, I usually use the ASP.NET Web Part.

If you are trying to use the new functionality of SharePoint VS 2010 to create Visual Web components, etc., you need to install SP 2010 because this feature is not supported in an earlier version of SharePoint.

John

-2
source

Source: https://habr.com/ru/post/1309968/


All Articles