MSBuild 是否具有与 NAnt 过滤器链功能等效的功能来替换文件中的标记?
用于复制文件的 NAnt 任务允许您指定一个过滤器链,该过滤器链在复制文件时修改文件,这通常用于用特定值替换模板文件中的标记(例如替换内部版本号)。
MSBuild 在其内置任务之一或免费提供的社区任务之一中是否具有等效功能?
The NAnt task for copying files allows you to specify a filterchain that modifies the files as they are copied, and this is usually used for replacing tokens in a template file with specific values (e.g. substituting in a build number).
Does MSBuild have equivalent functionality in one of its built-in tasks, or one of the freely available community tasks?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
标准 msbuild 任务 没有提到类似的内容,但是有http://msbuildtasks.tigris.org/ 扩展中的 FileUpdate 任务可让您轻松进行替换在基于正则表达式的文件中。
The standard msbuild tasks doesn't mention anything like that, but there's the FileUpdate task in the extensions at http://msbuildtasks.tigris.org/ that lets you easily do replacements in files based on regular expressions.