14 references to EnsureTrailingSlash
Microsoft.Build (6)
Evaluation\Expander.cs (1)
1633value = FileUtilities.EnsureTrailingSlash(Path.GetDirectoryName(elementLocation.File));
Evaluation\IntrinsicFunctions.cs (1)
511return FileUtilities.EnsureTrailingSlash(path);
FileUtilities.cs (1)
1311return EnsureTrailingSlash(s);
FrameworkLocationHelper.cs (1)
1535this._pathToDotNetFrameworkReferenceAssemblies = FileUtilities.EnsureTrailingSlash(referencePath);
TempFileUtilities.cs (1)
74return FileUtilities.EnsureTrailingSlash(basePath);
Utilities\FileSpecMatchTester.cs (1)
134normalizedFixedDirPart = FileUtilities.EnsureTrailingSlash(normalizedFixedDirPart);
Microsoft.Build.Engine.UnitTests (8)
Evaluation\Expander_Tests.cs (2)
3399Assert.Equal(Microsoft.Build.Shared.FileUtilities.EnsureTrailingSlash(tempPath), Microsoft.Build.Shared.FileUtilities.EnsureTrailingSlash(result));
FileUtilities_Tests.cs (6)
325Assert.Equal(FileUtilities.FixFilePath(@"foo\bar\"), FileUtilities.EnsureTrailingSlash(@"foo\bar")); // "test 1" 326Assert.Equal(FileUtilities.FixFilePath(@"foo/bar\"), FileUtilities.EnsureTrailingSlash(@"foo/bar")); // "test 2" 329Assert.Equal(FileUtilities.FixFilePath(@"foo/bar/"), FileUtilities.EnsureTrailingSlash(@"foo/bar/")); // test 3" 330Assert.Equal(FileUtilities.FixFilePath(@"foo\bar\"), FileUtilities.EnsureTrailingSlash(@"foo\bar\")); // test 4" 331Assert.Equal(FileUtilities.FixFilePath(@"foo/bar\"), FileUtilities.EnsureTrailingSlash(@"foo/bar\")); // test 5" 332Assert.Equal(FileUtilities.FixFilePath(@"foo\bar/"), FileUtilities.EnsureTrailingSlash(@"foo\bar/")); // "test 5"