32 references to Utilities
Microsoft.Build.Tasks.CodeAnalysis (11)
src\Compilers\Core\MSBuildTask\CommandLineBuilderExtension.cs (1)
268
bool flagSet =
Utilities
.TryConvertItemMetadataToBool(parameter, metadataNames[i]);
src\Compilers\Core\MSBuildTask\Csc.cs (2)
346
bool embed =
Utilities
.TryConvertItemMetadataToBool(reference,
387
throw
Utilities
.GetLocalizedArgumentException(
src\Compilers\Core\MSBuildTask\ManagedCompiler.cs (1)
1089
item.ItemSpec =
Utilities
.GetFullPathNoThrow(item.ItemSpec);
src\Compilers\Core\MSBuildTask\MapSourceRoots.cs (1)
174
if (containingRoot != null && topLevelMappedPaths.TryGetValue(
Utilities
.FixFilePath(containingRoot), out var mappedTopLevelPath))
src\Compilers\Core\MSBuildTask\Utilities.cs (2)
50
throw
Utilities
.GetLocalizedArgumentException(
76
throw
Utilities
.GetLocalizedArgumentException(
src\Compilers\Core\MSBuildTask\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\");