Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Visual Studio 2013 ASP.NET Web.Config Transformation unwanted formatting (line breaks)

$
0
0

hello - We have several different environments for which we publish asp.net builds, and as the title states, the web.config transform process is, for some reason, adding in unwanted line breaks into our web config files. We would like for the transform to insert/update the actual key/value pair different values, but to not perform any formatting / word wrap at all. Does anyone know how to accomplish this?

Example: If we right-click on one of the transformation web.config files in solution explorer (Web.Test.Config for example), and select "preview transform", we may see something like the following:

Main Web.Config file random value:
<sessionState timeout="300"></sessionState>

Transformed Web.Test.Config equivalent value:
<sessionState timeout="300">
</sessionState>

The issue also happens when long lines of text in the main Web.Config file are transformed....it seems lines longer than 150 columns or so end up being automatically word-wrapped  to multiple lines during the transform process. How can we prevent this automatic formatting behavior? 


Viewing all articles
Browse latest Browse all 3509

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>