Simon Mourier's Avatar
Simon Mourier's blog (1346 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • c#
  • compiling
  • xpath

XmlPoke task trims value

Dec 8, 2018 See the question and my original answer on StackOverflow

Value is an MSBuild "Item" Usually, items represent file paths and MSBuild treats these in a special (undercover) way.

So, the issue is not related to XML escaping but to MSBuild item escaping. This is how you can force the space character:

<XmlPoke ... Value="X%20" ... />
  • SmoBlog © 2010-2025 Simon Mourier. All rights reserved.
  • Privacy & Terms