35 references to Utilities
Microsoft.Build.Tasks.CodeAnalysis (14)
CommandLineBuilderExtension.cs (1)
235
bool flagSet =
Utilities
.TryConvertItemMetadataToBool(parameter, metadataNames[i]);
Csc.cs (2)
317
bool embed =
Utilities
.TryConvertItemMetadataToBool(reference,
358
throw
Utilities
.GetLocalizedArgumentException(
InteractiveCompiler.cs (1)
192
protected sealed override string PathToManagedTool =>
Utilities
.GenerateFullPathToTool(ToolName);
ManagedCompiler.cs (2)
491
protected sealed override string PathToManagedTool =>
Utilities
.GenerateFullPathToTool(ToolName);
1110
item.ItemSpec =
Utilities
.GetFullPathNoThrow(item.ItemSpec);
MapSourceRoots.cs (1)
174
if (containingRoot != null && topLevelMappedPaths.TryGetValue(
Utilities
.FixFilePath(containingRoot), out var mappedTopLevelPath))
Utilities.cs (3)
50
throw
Utilities
.GetLocalizedArgumentException(
76
throw
Utilities
.GetLocalizedArgumentException(
176
var buildTask = typeof(
Utilities
).GetTypeInfo().Assembly;
Vbc.cs (4)
324
Utilities
.DeleteNoThrow(desiredPdbInfo.FullName);
332
catch (Exception e) when (
Utilities
.IsIoRelatedException(e))
373
throw
Utilities
.GetLocalizedArgumentException(e,
566
bool embed =
Utilities
.TryConvertItemMetadataToBool(reference, "EmbedInteropTypes");
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\");