문제

I have installed WSS 3.0 and Visual Studio 2010 Beta 2 on a Windows 2003 x86 VM and I am unable to create a Sharepoint Project. I keep getting the error below.

"A SharePoint server is not installed on this computer. A SharePoint server must be installed to work with SharePoint projects.

I am selecting C# .Net 3.5 as the .Net version and then I am trying to create a Empty SharePoint project. Why do I keep getting the error?

도움이 되었습니까?

해결책

Corey is correct. You will only be able to use VS2010 to create workflows for SharePoint 2007. For all other development on SharePoint 2007 you should stick to VS 2005/2008 with WSPbuilder, STSDEV or VS SharePoint Extensions.

다른 팁

I'm afraid Visual Studio 2010 only supports creating SharePoint project types with SharePoint 2010.

Actually that is possible as soon as you do not want to Debug or Deploy directly from VS2010.

All you need to do is to export from HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14 from a machine with SP2010 installed.

Creating a new Visual Studio Sharepoint 2010 project will allow you to build and package a solution targeting MOSS2007, while just modifying the DLL references to from 2010 to 20007 versions.

Registry key settings explained in more details: http://social.technet.microsoft.com/Forums/en/sharepoint2010programming/thread/cda807f6-4edf-4efc-8e9b-4d446356c8ae

Building and packaging a solution in more details: http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2010/07/15/using-visual-studio-2010-sharepoint-templates-to-deploy-a-web-part-in-sharepoint-2007.aspx

You should check WSP Builder 2010 beta for some backward compatibility.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top