I have a project composed of two subprojects, one of these subprojects is a Class Library
, responsible for the activities of connection to bank. I'm using Entity Framework as an ORM tool.
In the file app.config
, I have the following connection string:
<connectionStrings>
<add name="DB.Context" providerName="System.Data.SqlClient"
connectionString="Integrated Security=SSPI;Initial Catalog=DB.Context;Data Source=(LocalDb)\v11.0;" />
</connectionStrings>
Nothing too complex, just point to a local database.
However, at the time of deploying this application to production (through publishing from Azure versioning), I can not make this connection string update automatically to point to the production DB. I have the connection string set up on my dashboard:
How can I get the connection string present in the app.config to be updated during publishing from TFS in Azure?