45 references to FixFilePath
Microsoft.Build.Tasks.CodeAnalysis (2)
src\Compilers\Core\MSBuildTask\MapSourceRoots.cs (2)
177
string nestedRoot = Utilities.
FixFilePath
(root.GetMetadata(Names.NestedRoot));
180
string containingRoot = NormalizePath(Utilities.
FixFilePath
(root.GetMetadata(Names.ContainingRoot)));
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (43)
MapSourceRootTests.cs (43)
37
new TaskItem(Utilities.
FixFilePath
(@"c:\packages\SourcePackage1\")),
39
new TaskItem(Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\"), new Dictionary<string, string>
43
new TaskItem(Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\a\b\"), new Dictionary<string, string>
47
{ "ContainingRoot", Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\") },
60
Assert.Equal(Utilities.GetFullPathNoThrow(Utilities.
FixFilePath
(@"c:\packages\SourcePackage1\")), task.MappedSourceRoots[0].ItemSpec);
63
Assert.Equal(Utilities.GetFullPathNoThrow(Utilities.
FixFilePath
("/packages/SourcePackage2/")), task.MappedSourceRoots[1].ItemSpec);
66
Assert.Equal(Utilities.GetFullPathNoThrow(Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\")), task.MappedSourceRoots[2].ItemSpec);
70
Assert.Equal(Utilities.GetFullPathNoThrow(Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\a\b\")), task.MappedSourceRoots[3].ItemSpec);
109
Assert.Equal(Utilities.
FixFilePath
(Utilities.GetFullPathNoThrow(@"!@#:;$%^&*()_+|{}\")), task.MappedSourceRoots[0].ItemSpec);
112
Assert.Equal(Utilities.
FixFilePath
(Utilities.GetFullPathNoThrow("****/")), task.MappedSourceRoots[1].ItemSpec);
116
Assert.Equal(Utilities.
FixFilePath
(Utilities.GetFullPathNoThrow(@"****\|||:;\")), task.MappedSourceRoots[2].ItemSpec);
160
new TaskItem(Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\")),
161
new TaskItem(Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\a\a\"), new Dictionary<string, string>
164
{ "ContainingRoot", Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\") },
166
new TaskItem(Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\a\b\"), new Dictionary<string, string>
169
{ "ContainingRoot", Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\") },
171
new TaskItem(Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\a\c\"), new Dictionary<string, string>
174
{ "ContainingRoot", Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\") },
186
Assert.Equal(Utilities.GetFullPathNoThrow(Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\")), task.MappedSourceRoots[0].ItemSpec);
189
Assert.Equal(Utilities.GetFullPathNoThrow(Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\a\a\")), task.MappedSourceRoots[1].ItemSpec);
192
Assert.Equal(Utilities.GetFullPathNoThrow(Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\a\b\")), task.MappedSourceRoots[2].ItemSpec);
195
Assert.Equal(Utilities.GetFullPathNoThrow(Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\a\c\")), task.MappedSourceRoots[3].ItemSpec);
211
new TaskItem(Utilities.
FixFilePath
(@"c:\packages\SourcePackage1\")),
212
new TaskItem(Utilities.
FixFilePath
(@"C:\packages\SourcePackage1\")),
213
new TaskItem(Utilities.
FixFilePath
(@"c:\packages\SourcePackage2\")),
224
Assert.Equal(Utilities.GetFullPathNoThrow(Utilities.
FixFilePath
(@"c:\packages\SourcePackage1\")), task.MappedSourceRoots[0].ItemSpec);
227
Assert.Equal(Utilities.GetFullPathNoThrow(Utilities.
FixFilePath
(@"C:\packages\SourcePackage1\")), task.MappedSourceRoots[1].ItemSpec);
230
Assert.Equal(Utilities.GetFullPathNoThrow(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\");
364
new TaskItem(Utilities.
FixFilePath
(@"c:\MyProjects\MYPROJECT\")),
365
new TaskItem(Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\a\b\"), new Dictionary<string, string>
369
{ "ContainingRoot", Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\") },
378
"MapSourceRoots.NoSuchTopLevelSourceRoot", "SourceRoot.ContainingRoot", "SourceRoot", Utilities.GetFullPathNoThrow(Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\")))) + Environment.NewLine, engine.Log);
420
var path1 = Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\a\b\");
463
var originalPath1 = Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\a\b\..\c\");
464
var normalizedPath1 = Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\a\c\");
465
var originalPath2 = Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\a\b\..\c\d\..\e\");
466
var normalizedPath2 = Utilities.
FixFilePath
(@"c:\MyProjects\MyProject\a\c\e\");