Developing for Sharepoint 2003 using Visual Studio 2008?

自古美人都是妖i 提交于 2019-12-30 09:51:09

问题


Does anyone have experience with developing for Sharepoint 2003 using Visual Studio 2008?

I need to upgrade to VS2008 because of Vista issues but need to support Sharepoint 2003 webparts. The webparts are all pretty simple. Will I be able to support those webparts using VS2008?


回答1:


AFAIK VS2008 only allows you to build .NET 2.0/3.0 out of the box, but...

I have VS2005 projects spitting out .NET 1.1 assemblies for WSSv2/SPS2003 and .NET 2.0 for WSSv3/MOSS2007 using MSBEE and I would think that this is possible in VS2008 also.

You will need to use MSBEE http://www.codeplex.com/Wiki/View.aspx?ProjectName=MSBee

Working with .NET 1.1 with Visual Studio 2008

You will also need to master some MSBUILD ninja moves to keep a 1 step build process and keep yourself sane http://brennan.offwhite.net/blog/2006/11/30/7-steps-to-msbuild/

I will be upgrading to VS2008 in the next few weeks and will post an update here.




回答2:


I've created .net 2.0 assemblies using vs2008, and linked with sharepoint 2007 libraries and then deployed on sharepoint servers. You won't be able to create .net 1.1 assemblies with vs2008 out of the box - so if you need to target .net 1.1 your best bet is to stick with a virtual server setup.

Developing for sharepoint on vista (or xp for that matter) is challenging because you can't debug line by line unless you attach remotely to server2k3. My recommendation for sharepoint developers is to install virtual server on vista, and then install vstudio on the virtual server with sharepoint. If you are going to do this, you can stick with your current version of visual studio, and then debugging is much easier than from vista.

Depending on whether your company has an msdn subscription, this can be more costly if you have to buy a virtual server license, etc... but it is well worth it to make development easier, in my opinion.




回答3:


SharePoint 2003 is built on top of .NET 1.1 and only Visual Studio 2003 supports it. I would recommend you not to use anything else.

I would advise you to create a virtual machine with SharePoint 2003 and Visual Studio 2003 and develop everything inside VM. This approach can be helpful if you are working on a project for a customer you can use this machine as replica of your customers environment.



来源:https://stackoverflow.com/questions/243201/developing-for-sharepoint-2003-using-visual-studio-2008

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!