22 references to FixFilePath
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Core\MSBuildTask\MapSourceRoots.cs (1)
174
if (containingRoot != null && topLevelMappedPaths.TryGetValue(Utilities.
FixFilePath
(containingRoot), out var mappedTopLevelPath))
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (21)
MapSourceRootTests.cs (21)
60
Assert.Equal(Utilities.
FixFilePath
(@"c:\packages\SourcePackage1\"), task.MappedSourceRoots[0].ItemSpec);
63
Assert.Equal(Utilities.
FixFilePath
(@"/packages/SourcePackage2/"), task.MappedSourceRoots[1].ItemSpec);
66
Assert.Equal(Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\"), task.MappedSourceRoots[2].ItemSpec);
70
Assert.Equal(Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\a\b\"), task.MappedSourceRoots[3].ItemSpec);
109
Assert.Equal(Utilities.
FixFilePath
(@"!@#:;$%^&*()_+|{}\"), task.MappedSourceRoots[0].ItemSpec);
112
Assert.Equal(Utilities.
FixFilePath
("****/"), task.MappedSourceRoots[1].ItemSpec);
116
Assert.Equal(Utilities.
FixFilePath
(@"****\|||:;\"), task.MappedSourceRoots[2].ItemSpec);
186
Assert.Equal(Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\"), task.MappedSourceRoots[0].ItemSpec);
189
Assert.Equal(Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\a\a\"), task.MappedSourceRoots[1].ItemSpec);
192
Assert.Equal(Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\a\b\"), task.MappedSourceRoots[2].ItemSpec);
195
Assert.Equal(Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\a\c\"), task.MappedSourceRoots[3].ItemSpec);
224
Assert.Equal(Utilities.
FixFilePath
(@"c:\packages\SourcePackage1\"), task.MappedSourceRoots[0].ItemSpec);
227
Assert.Equal(Utilities.
FixFilePath
(@"C:\packages\SourcePackage1\"), task.MappedSourceRoots[1].ItemSpec);
230
Assert.Equal(Utilities.
FixFilePath
(@"c:\packages\SourcePackage2\"), task.MappedSourceRoots[2].ItemSpec);
241
var path1 = Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\a\1\");
242
var path2 = Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\a\2\");
243
var path3 = Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\");
284
var path1 = Utilities.
FixFilePath
(@"c:\packages\SourcePackage1\");
285
var path2 = Utilities.
FixFilePath
(@"c:\packages\SourcePackage2\");
286
var path3 = Utilities.
FixFilePath
(@"c:\packages\SourcePackage3\");
420
var path1 = Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\a\b\");