58 references to FileUtilities
MSBuildTaskHost (58)
BuildEnvironmentHelper.cs (9)
150
var vsRoot =
FileUtilities
.GetFolderAbove(vsProcess, 3);
202
var msBuildExe = Path.Combine(
FileUtilities
.GetFolderAbove(buildAssembly), "MSBuild.exe");
203
var msBuildDll = Path.Combine(
FileUtilities
.GetFolderAbove(buildAssembly), "MSBuild.dll");
360
return
FileUtilities
.GetFolderAbove(msBuildAssembly,
369
return
FileUtilities
.CombinePaths(
445
return
FileUtilities
.ExecutingAssemblyPath;
604
var potentialAmd64FromX86 =
FileUtilities
.CombinePaths(MSBuildToolsDirectoryRoot, "amd64", msBuildExeName);
605
var potentialARM64FromX86 =
FileUtilities
.CombinePaths(MSBuildToolsDirectoryRoot, "arm64", msBuildExeName);
677
defaultSdkPath =
FileUtilities
.CombinePaths(VisualStudioInstallRootDirectory, "MSBuild", "Sdks");
CommunicationsUtilities.cs (2)
821
s_debugDumpPath =
FileUtilities
.TempFileDirectory;
838
using (StreamWriter file =
FileUtilities
.OpenWrite(
D\a\_work\1\s\bin\repo\msbuild\src\Shared\ErrorUtilities.cs\ErrorUtilities.cs (1)
543
if (
FileUtilities
.PathIsInvalid(parameter))
ExceptionHandling.cs (3)
74
:
FileUtilities
.TempFileDirectory;
359
using (StreamWriter writer =
FileUtilities
.OpenWrite(s_dumpFileName, append: true))
366
using (StreamWriter writer =
FileUtilities
.OpenWrite(s_dumpFileName, append: true))
FileUtilities.cs (1)
747
internal static string ExecutingAssemblyPath => Path.GetFullPath(AssemblyUtilities.GetAssemblyLocation(typeof(
FileUtilities
).GetTypeInfo().Assembly));
Modifiers.cs (31)
110
if (name ==
FileUtilities
.ItemSpecModifiers.RootDir)
126
if (name ==
FileUtilities
.ItemSpecModifiers.FullPath)
130
if (name ==
FileUtilities
.ItemSpecModifiers.Filename)
138
if (name ==
FileUtilities
.ItemSpecModifiers.Identity)
153
if (name ==
FileUtilities
.ItemSpecModifiers.Directory)
161
if (name ==
FileUtilities
.ItemSpecModifiers.Extension)
176
if (name ==
FileUtilities
.ItemSpecModifiers.CreatedTime)
184
if (name ==
FileUtilities
.ItemSpecModifiers.RelativeDir)
200
if (name ==
FileUtilities
.ItemSpecModifiers.AccessedTime)
208
if (name ==
FileUtilities
.ItemSpecModifiers.ModifiedTime)
216
if (name ==
FileUtilities
.ItemSpecModifiers.RecursiveDir)
256
if (name ==
FileUtilities
.ItemSpecModifiers.DefiningProjectName)
262
if (name ==
FileUtilities
.ItemSpecModifiers.DefiningProjectFullPath)
274
if (name ==
FileUtilities
.ItemSpecModifiers.DefiningProjectDirectory)
282
if (name ==
FileUtilities
.ItemSpecModifiers.DefiningProjectExtension)
392
if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.FullPath, StringComparison.OrdinalIgnoreCase))
409
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.RootDir, StringComparison.OrdinalIgnoreCase))
425
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.Filename, StringComparison.OrdinalIgnoreCase))
440
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.Extension, StringComparison.OrdinalIgnoreCase))
454
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.RelativeDir, StringComparison.OrdinalIgnoreCase))
458
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.Directory, StringComparison.OrdinalIgnoreCase))
495
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.RecursiveDir, StringComparison.OrdinalIgnoreCase))
500
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.Identity, StringComparison.OrdinalIgnoreCase))
504
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.ModifiedTime, StringComparison.OrdinalIgnoreCase))
510
FileInfo info =
FileUtilities
.GetFileInfoNoThrow(unescapedItemSpec);
522
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.CreatedTime, StringComparison.OrdinalIgnoreCase))
538
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.AccessedTime, StringComparison.OrdinalIgnoreCase))
563
if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.DefiningProjectDirectory, StringComparison.OrdinalIgnoreCase))
574
if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.DefiningProjectFullPath, StringComparison.OrdinalIgnoreCase))
578
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.DefiningProjectName, StringComparison.OrdinalIgnoreCase))
582
else if (string.Equals(modifier,
FileUtilities
.ItemSpecModifiers.DefiningProjectExtension, StringComparison.OrdinalIgnoreCase))
OutOfProcTaskHostNode.cs (1)
814
? File.CreateText(string.Format(CultureInfo.CurrentCulture, Path.Combine(
FileUtilities
.TempFileDirectory, @"MSBuild_NodeShutdown_{0}.txt"), Process.GetCurrentProcess().Id))
TaskParameter.cs (10)
298
escapedDefiningProject = copyFromAsITaskItem2.GetMetadataValueEscaped(
FileUtilities
.ItemSpecModifiers.DefiningProjectFullPath);
319
escapedDefiningProject = EscapingUtilities.EscapeWithCaching(copyFrom.GetMetadata(
FileUtilities
.ItemSpecModifiers.DefiningProjectFullPath));
413
escapedDefiningProject = wrappedItemAsITaskItem2.GetMetadataValueEscaped(
FileUtilities
.ItemSpecModifiers.DefiningProjectFullPath);
422
escapedDefiningProject = EscapingUtilities.EscapeWithCaching(wrappedItem.GetMetadata(
FileUtilities
.ItemSpecModifiers.DefiningProjectFullPath));
794
metadataNames.AddRange(
FileUtilities
.ItemSpecModifiers.All);
810
return count +
FileUtilities
.ItemSpecModifiers.All.Length;
852
ErrorUtilities.VerifyThrowArgument(!
FileUtilities
.ItemSpecModifiers.IsDerivableItemSpecModifier(metadataName), "Shared.CannotChangeItemSpecModifiers", metadataName);
866
ErrorUtilities.VerifyThrowArgument(!
FileUtilities
.ItemSpecModifiers.IsItemSpecModifier(metadataName), "Shared.CannotChangeItemSpecModifiers", metadataName);
959
if (
FileUtilities
.ItemSpecModifiers.IsDerivableItemSpecModifier(metadataName))
963
metadataValue =
FileUtilities
.ItemSpecModifiers.GetItemSpecModifier(null, _escapedItemSpec, _escapedDefiningProject, metadataName, ref _fullPath);