Managing connection strings in source controlled application that is continuously deployed to Azure websites

前端 未结 2 533
天涯浪人
天涯浪人 2021-01-12 19:55

Here\'s the scenario: I have multiple developers on an asp.net mvc 4 project. Each developer has a local database. The source control system is TFS at http://tfs.visualst

2条回答
  •  伪装坚强ぢ
    2021-01-12 20:12

    After looking around, it appears that what I was asking isn't actually supported without a bunch of command line hacks to the pre/post build process. What we ended up doing is forcing developers to all create their own local databases, use trusted authentication, and establish a SQL alias that was used by all developers in the web.config. That way, it works locally for everybody, it doesn't expose any user names/passwords within source control, and Azure can still overwrite it when automatically pulled from source control.

提交回复
热议问题