Home > CMS- Content Management System > Sharepoint > How to Find and Change the deployment URL of a solution in a SharePoint Hosted App?

How to Find and Change the deployment URL of a solution in a SharePoint Hosted App?

Recently I had faced trouble to find my SharePoint Hosted Add-in deployment URL because I want to deploy my Hosted App in another office 365 site.

After some research, I have found the solution and want to share with all.

How to find the Deployment URL?

  1. Select the project file in Solution Explorer
  2. Press F4 (or View, Properties Window).
  3. In the properties which appear in the new window, there is a Site URL. This Site URL is the deployment URL of the SharePoint Hosted App.

How to change the deployment URL?

There are two ways to change the deployment URL of the SharePoint Hosted App.

  1.  Using Solution Explorer 
    1. Select the project file in Solution Explorer, Press F4 and Find the URL
    2. Change the URL inline from Site URL dropdown, Once you Changed the URL it will ask to you for Login. 

  2. By Editing  csproj. user File 
    1. Right Click on Solution and select the Open folder in File Explorer option.
    2. Drag and Drop csproj.user in Visual Studio
    3. Change the URL between “SharePointSiteUrl” parameter, also you change the action browser in  “OfficeAndSharePointStartAction
       
    4. Save the file

If you liked this article, then please share and comment.

This Article is TAGGED in , , , , , . BOOKMARK THE permalink.

Avatar photo
Chintan Upadhayay
I am a senior web developer with more than 4+ years experience in WordPress, PHP, MySQL, HTML, CSS, jQuery and other web technologies. I am the beginner in SharePoint and Learning SharePoint.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">