I'm still trying to figure out MSBuild stuff. I am currently busy with deploying through powershell script using generated scripts from PackageWeb-Nuget-Package ( video ). I tried this for a few days and it seemed to work. But "suddenly" the connection string in the generated web.config file is tokenizable, and instead of the corresponding connection string, I see
connectionString="$(ReplacableToken_DefaultConnection-Web.config Connection String_0)
I wrote "unexpectedly" because I could not associate this (for me new) behavior with everything that I did in the previous hours.
So, to summarize: deploying from a package works fine, the correct configuration conversion is also applied, but in the end I get this tokenized connection string.
I understand that I can fix this if I insert
<AutoParameterizationWebConfigConnectionStrings>false</AutoParameterizationWebConfigConnectionStrings>
in the PropertyGroup (I just put it in the generated goals file that creates the Nuget-Package)
However, I really do not like this, I need to insert this additional value into each project that may be needed; especially because I did not know that I needed this setting in the first place. This worked yesterday, and I did not have this extra line inserted into any projects or goal files.
So, I was hoping that maybe someone knows an additional switch, trick, or tweak that could have an additional impact on how this works.
source share