Programming with SharePoint without Having SharePoint Installed

by | Updated June 10, 2016 | Development, SharePoint

I’m not really a developer – I consider myself a hacker.  Someone who can get something developed if all the real developers were stranded on a deserted island with no Internet access.  However, one of the requirements for becoming a Microsoft Dynamics ERP partner is to have a team member pass the SharePoint 2010 Application Development test (70-573).  Therefore, I need to pass this test, which means I had better figure out a thing or two about programming in SharePoint 2010.

I don’t have SharePoint loaded anywhere – you can get a trial version of SharePoint 2010 here to install and test if you have Windows Server 2008 and SQL Server 2008 on a Virtual Machine or a Server.  I tried to install that on my pre-release build of Windows Server 2012 to no avail.  I then decided I could run it on my client machine (Windows 7 x64) and I found this good article about how to run SharePoint 2010 in a development environment.  I followed those instructions (the step about extract the files is a little off – the .exe is called sharepointserver.exe and to extract it you type sharepointserver.exe /extract:c:\SharePointFiles) and installed SharePoint on my machine.  However, when you try to configure SharePoint against a SQL Server 2012 install, you get another error.  There’s probably a workaround to this, but at this point, I was ready to move on.

I next downloaded the SharePoint 2010 SDK here, and that is a helpful thing to have.  Unfortunately, it doesn’t appear to bring the reference files with it.  I opened up a sample solution from inside SharePoint because I needed something to look at to help me understand how the pages were going to work (all of the samples are in .zip files, so you have to extract them before you can find the .sln files).  I opened up the SocialDataStatisticsWebPart solution, and of course, when I went to compile it, it wouldn’t compile without the SharePoint assemblies.

I scoured the Internet to try to find the assemblies for SharePoint, but I just got a number of articles talking about how to register them once you have them.  I realized I had a Dynamics AX VPC that had SharePoint installed, so I mounted that VHD and found the .dll files there.  I copied them to the SharePoint SDK folder on my Windows 7 machine and registered them in Visual Studio by going to Project > Add Reference and browsing to the SharePoint SDK folder on my machine.

At this point, I am able to write sample code with the IntelliSense and references I need.  This is probably more of a rant on how long it took me to get this to be usable, but I hope it helps someone save some time if they were in my same shoes.

Related Posts

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Upcoming Events

august

12aug10:00 am10:30 amWhy Levridge Grain? How to Achieve Efficient and Accurate Scale Tickets

12aug12:00 pm1:00 pmThe Three Paths to Dynamics 365 Finance and Supply Chain from Dynamics AX

13aug11:00 am12:00 pmConfab with Stoneridge - Livestream - Inspire Keynote Breakdown

19aug10:00 am11:00 amWhat is Levridge? An Overview of the Ultimate Ag Solution

19aug12:00 pm12:30 pmThe Modern Manufacturer - Death by Safety Stock

27aug12:00 pm1:00 pmConfab with Stoneridge - Livestream - Dynamics 365 2020 Wave 2 Preview

september

02sep10:00 am10:30 amThe Modern Manufacturer - Cycle Count Management

09sep10:00 am11:00 amWhat is Levridge? An Overview of the Ultimate Ag Solution

16sep10:00 am10:30 amThe Modern Manufacturer - Product Lifecycle Management

30sep10:00 am10:30 amThe Modern Manufacturer - Return Management

About Stoneridge
Stoneridge Software is a unique Microsoft Gold Partner, with emphasis on partner. With specialties in Microsoft Dynamics 365, Microsoft Dynamics AX, Microsoft Dynamics NAV, Microsoft Dynamics GP and Microsoft Dynamics CRM, we focus on attracting the most knowledgeable experts in the field to our team, and prioritize delivering stellar solutions with maximum impact for your business. At Stoneridge, we are deeply committed to your results. Each engagement is met with a dedicated team, ready to provide thorough, tailored, and expert service. Based in Minnesota, we intentionally “step into your shoes,” wherever you are. We focus on what you care about, and develop trusting, long-term relationships with our clients.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!

X