Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 4a84b87

Browse files
authored
Remove chained uses of TrimEnd and replace with char arrays / substring (#33977)
1 parent b0cc589 commit 4a84b87

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,9 @@
358358
<TestPath Condition="'$(TestPath)' == ''">$(TestWorkingDir)$(MSBuildProjectName)/$(BuildConfiguration)/</TestPath>
359359
<RefRootPath>$(BinDir)ref/</RefRootPath>
360360
<BuildConfigurationRefPath>$(RefRootPath)$(_bc_TargetGroup)/</BuildConfigurationRefPath>
361-
<BuildConfigurationRefPath Condition="$(_bc_TargetGroup.EndsWith('aot'))">$(RefRootPath)$(_bc_TargetGroup.TrimEnd('t').TrimEnd('o').TrimEnd('a'))/</BuildConfigurationRefPath>
361+
<BuildConfigurationRefPath Condition="$(_bc_TargetGroup.EndsWith('aot'))">$(RefRootPath)$(_bc_TargetGroup.TrimEnd('aot'))/</BuildConfigurationRefPath>
362362
<RefPath>$(RefRootPath)$(TargetGroup)/</RefPath>
363-
<RefPath Condition="$(TargetGroup.EndsWith('aot'))">$(RefRootPath)$(TargetGroup.TrimEnd('t').TrimEnd('o').TrimEnd('a'))/</RefPath>
363+
<RefPath Condition="$(TargetGroup.EndsWith('aot'))">$(RefRootPath)$(TargetGroup.TrimEnd('aot'))/</RefPath>
364364
<NetStandardRefPath>$(RefRootPath)netstandard/</NetStandardRefPath>
365365
<NetFxRefPath>$(RefRootPath)netfx/</NetFxRefPath>
366366
<GlobalToolsDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsDir)', 'tools'))</GlobalToolsDir>

external/docs/docs.depproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<DocFile Include="$(XmlDocFileRoot)/**/*.xml"/>
1818
<DocFile>
1919
<!-- trim off slash since it differs by platform and we need to do a string compare -->
20-
<LCID>$([System.String]::new('%(RecursiveDir)').TrimEnd('\').TrimEnd('/'))</LCID>
20+
<LCID>$([System.String]::new('%(RecursiveDir)').TrimEnd('\/'))</LCID>
2121
<!-- set metadata expected by depProj -->
2222
<NuGetPackageId>$(XmlDocPackage)</NuGetPackageId>
2323
<NuGetPackageVersion>$(XmlDocPackageVersion)</NuGetPackageVersion>

0 commit comments

Comments
 (0)