~remoteAppUrl Visual Studio Token for Provider-hosted app

Mar 6, 2014 at 10:24 PM
Hi,
I would like to understand for which files does the ~remoteAppUrl VS token get replaced when using the Powershell scripts. We are not using TFS for CI, but I would like to use the Powershell scripts of these projects to change the Web-Deploy url and the token dynamically so we can package and deploy our apps to different environments. Thanks!
Coordinator
Mar 6, 2014 at 11:49 PM
Hi,

~remoteAppUrl is replaced when VS builds the project and produces the .app package. It's generated through the MSBuild command as one step of the workflow. If you don't use TFS, you can install the VS on your build server, and call the MSBuild command to get the correct package. You'll also need to integrate this step into your CI process.

Thanks,
Xiaoying
Mar 6, 2014 at 11:56 PM
Thanks Xiaoying, our case is slightly different. We have an app that we want to re-distribute to our customers. We would not know what the ~remoteAppUrl would be, we wanted to check if there was a way that we can modify this token outside Visual Studio so the app can be truly re-distributable without any administrative support.
Coordinator
Mar 7, 2014 at 1:23 AM
Thanks for more clarification on your scenario. Unfortunately, there is nothing this CodePlex project can help. You may want to ask your customers to manually retract the .app package (as it's simply like a zip package) and update the manifest file.

From your description, it seems that you are building a provider-hosted app for your customers. In addtion to the ~remoteAppUrl, your customers also need to inject the Client ID into the manifest to make it work.

Thanks,
Xiaoying