是否有 MSBuild 任务会将行写入文件的 *start* ?
我正在使用 WriteLinesToFile 来更新更改日志文件 (txt)。它将文本附加到文件末尾。理想情况下,我希望能够将更改写入此文件的开头。
是否有一个简单的任务(例如在社区或扩展包中)可以执行此操作?
I'm using a WriteLinesToFile to update a change log file (txt). It appends the text to the end of the file. Ideally, I'd like to be able to write the changes to the start of this file.
Is there a simple task (e.g. in the Community or Extension packs) that does this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在自定义任务包中没有看到类似的东西。
您可以使用
ReadLinesFromFile
和WriteLinesToFile
进行作弊:或者您可以创建自定义任务。
I haven't seen something like that in the custom task pack.
You could cheat by using
ReadLinesFromFile
andWriteLinesToFile
:Or you could create a custom task.