azure-service-fabric

Differential packaging

百般思念 提交于 2019-11-26 07:39:41
问题 When upgrading an application, the Test-ServiceFabricApplicationPackage command throws errors for every code package whose version number has not changed (it\'s saying the content has changed, even though the code hasn\'t). I know there is a feature that allows creating partial packages, but I was not able to use it. My questions are: How is the content of the code package checked for changes? Binary comparison? How to construct the partial package (Just remove the Code directories after VS

Where do you set and access run-time configuration parameters per environment for service fabric?

僤鯓⒐⒋嵵緔 提交于 2019-11-26 04:36:59
问题 For two environments, local and cloud, how would I set up custom settings or parameters for resources such as Sql databases, storage accounts, etc... Ideally it would be one parameter name called in code to say, point a DbContext towards a particular database, that in configurations for either a local or cloud environment be different. Thank you. 回答1: In order to have per environment variables for running Service Fabric locally and in the cloud this is what you must do: Add your custom config