2
I’m separating my web.config
in several files, for example, there is now connections.config
that my web.config
reference as follows <connectionStrings configSource="connections.config"/>
I will go up to version control that files Connections.config with the development data, but on the production server will exist one of it with the production connection data.
How do I not publish the files that are in the project, with the development data, over what is on the server.
I do the publication of the system by right-clicking on the project, Publisher. where I set up a profile of FTP
.
What I need to do to make her never publish the file connections.config
?
Updating:
I’m wearing VS2015
In vdd he published the file
connections.config
and removed the<connectionStrings configSource="connections.config"/>
ofweb.config
, what I wanted was for him to publish theweb.config
, but did not publish theconnections.config
. Or I saw wrong?– Ricardo
@user3517631 I edited the answer.
– Leonel Sanches da Silva