I was trying to write the following into a file using sed, in a Windows .bat file:
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Test|AnyCPU'">
I came across a problem when doing this, and that problem is that, in Windows, double quoting escaping is up to the program's implementation, according to this answer. So writing the sequence into a text file was a real headache on sed for Windows.
Edit: Note that this question is NOT about how to escape double quotes in batch, but how to escape double quotes in sed for Windows, so this answer does not resolve the question.
For anyone wondering how to resolve this, see the accepted answer.