Tag Archives: Visual Studio 2012

Create the Solution in Visual Studio 2012

22 Nov

I want to start putting together some branding stuff to deploy, so I need to create a solution and some base projects before I get started.

I have decided on the following projects to start off with

GISIT.SharePoint.Branding – Masterpage, css, images, page layouts, theme
GISIT.SharePoint.PageComponents – Webparts (if we decide to add apps later we will need to add a different type of project specific to apps but I’m not sure on this yet)
GISIT.SharePoint.Common – This will be a class library for constants or any common SharePoint functions. There are two ways this could be implemented, a class library or a sharepoint project. The difference between these is the class library needs to be added as a dll to the SharePoint package of any other projects (branding and page components wsp’s), whereas the WSP way would allow you to directly deploy and update the dll directly using the wsp built. If something needed to be only changed in the dll such as a constant value, we will have to to an update on either the branding or page components, which I am happy with at this stage.

1. Open Visual Studio

2. Create a new project.
Name it [Company].SharePoint.Branding
Select SharePoint 2013 Empty Project
Change the solution name to [Company].SharePoint

3. Click on the solution and add a new project

4. Select Class Library (or SharePoint 2013 Empty Project if you want to deploy this as a WSP)
Name it [Company].SharePoint.Common

5. Create another new project in the solution.
Select SharePoint 2013 Empty Project
Name it [Company].SharePoint.PageComponents

6. Right click the whole solution and select Rebuild

7. Add the common dll to the branding and page component projects. First go to the branding project and right click Reference. Click on Add Reference.

8. Click on Solution on the left hand side, then select [Company].SharePoint.Common. Click OK

9. Double click on the package for branding.

10. Click on the advanced tab

11. Click on Add, then Add Assembly from Project Output

12. Select [Company].SharePoint.Common then click OK

13. Save the package file and follow the same steps for the Page Components project.

14. The project is now ready for us to start adding content to. Starting with branding.

Install Visual Studio 2012 and Office 2013 and SharePoint 2013 Developer Tools Preview

15 Nov

At this stage Visual Studio 2012 is released/RTM but the developer tools for Office and SharePoint are still in preview. The below instructions apply to the latest preview at the time of this post, which is preview 2. There will be screenshots soon anyway.

  1. Install Visual Studio 2012. You can choose to include the Office developer tools, at this stage (I THINK) the SharePoint 2010 templates will be included but not the 2013 ones.
  2. Using the Microsoft web platform installer (I’m not entirely sure if this is a must as I prefer to download and install directly instead of the platform thingy, but my brief googling didnt help find a direct link)
    Click here for the download link for the web platform installer/selection of current Office/SharePoint components needed, then click on DOWNLOAD THE TOOLS under TOOLS.
    This will select the components required and you can go ahead and install these. At the time of the post, I had to install Workflow Manager Tools for Visual Studio 2012 and Microsoft Office Developer Tools for Visual Studio 2012 – Preview 2
  3. Once these are installed, open Visual Studio and you should have the templates under Visual C# > Office/SharePoint. The first time I installed these it wouldn’t work… turns out in another session I still had Visual Studio open deerrr, after I closed this the installation went fine.

Next I will go over creating the solution and projects 🙂