I have a web project (ASP.NET MVC 4 project) that has a number of configurations stored in Web.Config and in NLog.config files.
I have
I also had this issue but in an ASP.NET MVC 5 project. I do not have any AfterBuild
events only added one line in the csproj file in the tag for the NLog.config file:
true
It looks like this tells the msbuild.exe to do the transformation upon build.
My setup is two files NLog.Debug.config
and NLog.Release.config
used for transformations based on build configuration (/p:Configuration="Release"
).
Always
true
NLog.config
True
NLog.config
True