I use WriteLinesToFile
<
CreateItem Include="Version=*"><
Output TaskParameter="Include" ItemName="PackageParamContent" /></
CreateItem><!--
write makepkg param file--><
WriteLinesToFile File="$(MSBuildProjectDirectory)\_Startup\bin\$(Configuration)\package.param" Overwrite="true" Lines="@(PackageParamContent)" />After build file is empty. If I use Include="Version=q" it works. What is going on

How to write symbol * to file using WriteLinesToFile?
Roopa
You have a good point. Even writing %2a instead of * doesn't help you here. I'll log this issue.
Dan
"This posting provided AS-IS with no warranties"
pingping
Also if it's possible to declare the item statically, you can escape it:
<ItemGroup>
<PackageParamContent Include="Version=%2a"/>
</ItemGroup>
Dan
Lord Chabelo
I found solution ... but I dont like it :(
<
WriteLinesToFile File="$(MSBuildProjectDirectory)\_Startup\bin\$(Configuration)\package.param" Overwrite="true" Lines="@(PackageParamContent)" /><
WriteLinesToFile File="$(MSBuildProjectDirectory)\_Startup\bin\$(Configuration)\package.param" Overwrite="false" Lines="Version=*" />