c# - Removing ConnectionString when deploying with Visual Studio 2012 -
c# - Removing ConnectionString when deploying with Visual Studio 2012 -
i'm working on project 2 web applications, 1 beingness hosted long running process (with appfabric), other normal mvc application. share same datacontext, same connectionstring. appfabric application deployed kid application of main, taking advantage of web.config inheritance (we don't want connectionstring duplicated in web config)
my problem new visual studio 2012 wizard publishing, connectionstring automatically added, when untick "use connection string @ runtime" box.
i seek utilize web config transform this:
<connectionstrings> <add xdt:transform="removeall" /> </connectionstrings>
but connection string still on web config after publishing.
any suggestions ? i'm thinking removing web config kid application it's not ideal.
answer can found here: web deploy / publish adding unknown connection string?
add project property .csproj file editing xml:
<project> <propertygroup> <autoparameterizationwebconfigconnectionstrings>false</autoparameterizationwebconfigconnectionstrings> ... </propertygroup> ... </project>
c# iis visual-studio-2012 web-config publishing
Comments
Post a Comment