OfficeDev/SharePoint_Provider-hosted_Add-ins_Tutorials

Name: SharePoint_Provider-hosted_Add-ins_Tutorials

Owner: Office Developer

Description: A series of Visual Studio solutions to accompany the MSDN tutorial series about provider-hosted SharePoint Add-ins

Created: 2015-10-23 21:35:12.0

Updated: 2018-04-18 07:58:06.0

Pushed: 2017-12-28 21:36:50.0

Homepage:

Size: 251

Language: C#

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

A Series of Visual Studio Solutions to Accompany the MSDN Tutorial Series about Provider-hosted Add-ins

This repository is a series of provider-hosted SharePoint Add-in samples that are used with the tutorial series that begins with Get started creating provider-hosted SharePoint Add-ins.

None of the samples in this repository contain Sharepoint-hosted SharePoint Add-ins. For information about the differences between the two types of SharePoint Add-ins, see SharePoint Add-ins.

Applies to
Prerequisites

We recommend that you read the MSDN article SharePoint Add-ins.


Overview

This set of samples tracts the series of tutorials that begin at Get started creating provider-hosted SharePoint Add-ins. Each tutorial adds to the sample SharePoint add-in, Chain Store. This series of samples preserves the state of the add-in's Visual Studio solution after each tutorial. Before beginning any tutorial, you can open the corresponding sample solution in Visual Studio and follow along. For example, to follow the tutorial Give the add-in the SharePoint look-and-feel, open the BeforeSharePointUI.sln file in Visual Studio.

The following are the tutorial articles and the corresponding sample solutions:

To the the complete Chain Store add-in, open FinalChainStoreAdd-in.sln

To use these samples

  1. Open Visual Studio as an administrator.
  2. Open the .sln file for the solution you need.
  3. In Solution Explorer, highlight the SharePoint add-in project and replace the Site URL property with the URL of your SharePoint developer site.
  4. If your test SharePoint developer site is an on premises SharePoint 2013, open the AppManifest.xml file and change the SharePointMinVersion value to “15.0.0.0”.
  5. The samples assume that Visual Studio is using Version 12 (SQL 2014) of SQL Express. If you have SQL Server 2016 installed on your development computer, you need to make a change to the web.config file in the solution. Find the line that sets the SqlAzureConnectionString near the top of the file. Change the phrase “ProjectsV12” in the value to “ProjectsV13”. You will need to do this for each of the solutions in the repo.
  6. Follow the instructions in the corresponding tutorial to add functionality to the add-in and test it.

Known issues

If you get a System.Data.SqlClient.SqlException after pressing F5 to start one of the solutions, this may be caused by having a more recent version of SQL Server installed on your development computer. For the fix, see the section above To use these samples.

Questions and comments

We'd love to get your feedback on this set of samples. You can send your questions and suggestions to us in the Issues section of this repository.

Additional resources

Copyright

Copyright (c) Microsoft. All rights reserved.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.