【发布时间】:2017-01-31 08:13:41
【问题描述】:
<PropertyGroup>
<fileName>$(FilePath.Substring($(FilePath.LastIndexOf('\'))))</fileName>
</PropertyGroup>
我尝试了上面的代码。但是我得到的文件名包括最后一个'\'。例如。 \数据.xml。我只需要 Data.xml。我怎样才能得到它?
谢谢...
【问题讨论】:
标签: file path msbuild substring