Visual Studio 2015 Cordova Project includes customization and production files

I am using Visual Studio 2015 Cordova to connect to Azure Mobile Services. I'm setting up the "staging" and "production" of the Mobile Service,

ex:

https://mystaging.azuremobileservices.net  

https://myproduction.azuremobileservices.net

      

and I am using the following code in staging deployment

var client = new WindowsAzure.MobileServiceClient('https://mystaging.azuremobileservices.net', 'mykey');

// var client = new WindowsAzure.MobileServiceClient('https://myproduction.azuremobileservices.net', 'mykey');

      

and the following for production deployment

// var client = new WindowsAzure.MobileServiceClient('https://mystaging.azuremobileservices.net', 'mykey');

var client = new WindowsAzure.MobileServiceClient('https://myproduction.azuremobileservices.net', 'mykey');

      

Do I have to manually comment and uncomment the code to have a different deployment configuration?

I can't find where to set up the test / staging / production configuration in a Visual Studio 2015 RC Cordova project.

Can anyone suggest any suggestion for this configuration management in VS2015 Cordova?

Many thanks.

+3
visual-studio cordova azure visual-studio-cordova


source to share


No one has answered this question yet

Check out similar questions:

1104
.gitignore for Visual Studio projects and solutions
801
Should I add the Visual Studio .suo and .user files to the original control?
758
What are the different Create Action settings in Visual Studio project properties and what do they do?
726
How can I add an existing directory tree to a project in Visual Studio?
338
How do I fix Visual Studio compilation error, "processor architecture mismatch"?
134
Multiple errors Installing Visual Studio 2015 Community Edition
3
how to update cordova-ios version in visual studio 2015 cordova project?
2
Generating Cordova App Errors Visual Studio 2015
0
Apache cordova error in Visual Studio 2015
0
Migrating a mashup Cordova to Visual Studio 2015



All Articles
Loading...
X
Show
Funny
Dev
Pics