我使用Visual Studio 2015 Cordova连接到Azure移动服务。 我设置了#34; staging"和"生产"移动服务,
前:
https://mystaging.azuremobileservices.net
https://myproduction.azuremobileservices.net
我在暂存部署中使用以下代码
var client = new WindowsAzure.MobileServiceClient('https://mystaging.azuremobileservices.net', 'mykey');
// var client = new WindowsAzure.MobileServiceClient('https://myproduction.azuremobileservices.net', 'mykey');
以及以下用于生产部署
// var client = new WindowsAzure.MobileServiceClient('https://mystaging.azuremobileservices.net', 'mykey');
var client = new WindowsAzure.MobileServiceClient('https://myproduction.azuremobileservices.net', 'mykey');
我是否必须手动注释和取消注释代码才能进行不同的部署配置?
我无法在Visual Studio 2015 RC Cordova项目中找不到设置测试/登台/生产配置的位置。
有人对VS2015 Cordova中的配置管理有什么建议吗?
非常感谢。