In Visual Studio 2015 I have created a new solution based on the "SharePoint Add-in" template. As I have chosen to make it a provider-hosted add-in I have two projects created: sharepoint-addin and sharepoint-addinWeb.
I am finding that every time I deploy my add-in to SharePoint Online by hitting F5 in Visual Studio, the add-in's id changes. I see this both in a change to the
ClientId appSetting in the
web.config of the sharepoint-addinWeb project and online in the SharePoint Admin Center's App Permissions page.
Why does the id change with every deployment and how can I set the id to a fixed value?