Quantcast
Channel: MSBuild Extension Pack
Viewing all articles
Browse latest Browse all 1211

New Post: FileSystem.File.WriteLines - empty text file?

$
0
0

Is it possible to create an empty text file using File.WriteLines? It seems to be insisting that Lines cannot be empty but I do in fact want an empty, 0 byte file created. I tried passing a space or using an Item group with a blank line but "Lines is Required" error remains. Please advise if there is a way to do this with this task or maybe another extension pack task or built in task? Thanks

<MSBuild.ExtensionPack.FileSystem.File TaskAction="WriteLines" Files="$(BuildArtifacts)licenses.licx" Lines=""/>

Viewing all articles
Browse latest Browse all 1211


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