How do I change the deployment URL in a sharepoint hosted application later?

I downloaded this Microsoft example for an application hosted on sharepoint.

When I create the application myself, I can set the deployment URL. Although this seems like a very simple action, I cannot find how to change or update it later when it is already installed.

So, how can I set the sharepoint url when the project is already deployed?

+4
source share
3 answers

The easiest way to do this is to change the URL of the SharePoint site in the properties of the SharePoint project in Solution Explorer.

Another way to do this is to edit the csproj.user file ( source ):

<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <SharePointSiteUrl>**Your URL here**</SharePointSiteUrl> </PropertyGroup> </Project> 
+7
source

The site URL is one of the properties of the Project, so the first assumption should look within the project "Properties". So if you right-click on the project and click "Properties" at the end, you will find yourself in the Properties page with a bunch of project properties, but there is no option for the site URL in any tab. For some reason, the "site URL" property has not been included here. It was included in the properties window for the project.

The properties and properties window are two separate blocks displaying the project properties in the new Visual Studio. So, now open the properties window to change our "Site URl" property.

http://www.learningsharepoint.com/2012/12/22/change-site-url-property-in-visual-studio-2012-for-deploying-sharepoint-projects/

0
source

try it

1) Open the path to the project in Windows Explorer

2) Find the .csproj.user file (or .vbproj.user)

3) Open it in a text editor (for example, in notepad)

4) Change the property of SharePointSiteUrl

5) Save the file, and then open the project again (by deploying)

This works great for me ..

Thanks Jinchun Chen

0
source

Source: https://habr.com/ru/post/1483528/


All Articles