5 writes to TargetPath
Microsoft.Build.Tasks.Core (5)
GenerateManifestBase.cs (2)
538
file.
TargetPath
= targetPath;
542
file.
TargetPath
= Path.IsPathRooted(file.SourcePath) || file.SourcePath.StartsWith("..", StringComparison.Ordinal) ? Path.GetFileName(file.SourcePath) : file.SourcePath;
ManifestUtil\Manifest.cs (3)
524
f.
TargetPath
= BaseReference.GetDefaultTargetPath(f.ResolvedPath);
537
f.
TargetPath
= BaseReference.GetDefaultTargetPath(f.SourcePath);
541
f.
TargetPath
= BaseReference.GetDefaultTargetPath(Path.GetFileName(f.ResolvedPath));
33 references to TargetPath
Microsoft.Build.Tasks.Core (33)
GenerateApplicationManifest.cs (2)
274
manifest.ConfigFile = FindFileFromItem(ConfigFile).
TargetPath
;
279
manifest.IconFile = FindFileFromItem(IconFile).
TargetPath
;
GenerateManifestBase.cs (1)
342
if (String.Equals(targetPath, file.
TargetPath
, StringComparison.OrdinalIgnoreCase))
ManifestUtil\ApplicationManifest.cs (16)
403
_entryPointPath = _entryPoint.
TargetPath
;
486
clsidList.Add(key, new ComInfo(outputFileName, file.
TargetPath
, comClass.ClsId, null));
501
tlbidList.Add(key, new ComInfo(outputFileName, file.
TargetPath
, null, typeLib.TlbId));
549
bool isCorrectFileType = !String.IsNullOrEmpty(_entryPoint.
TargetPath
) && _entryPoint.
TargetPath
.EndsWith(".exe", StringComparison.OrdinalIgnoreCase);
600
if (fileReference.
TargetPath
.Equals(fileAssociation.DefaultIcon, StringComparison.Ordinal))
631
Path.GetFileNameWithoutExtension(assembly.
TargetPath
),
634
OutputMessages.AddErrorMessage("GenerateManifest.IdentityFileNameMismatch", assembly.ToString(), assembly.AssemblyIdentity.Name, assembly.AssemblyIdentity.Name + Path.GetExtension(assembly.
TargetPath
));
654
if (!assembly.IsPrerequisite && !String.IsNullOrEmpty(assembly.
TargetPath
))
657
if (_maxTargetPath > 0 && assembly.
TargetPath
.Length > _maxTargetPath)
663
string key = assembly.
TargetPath
.ToLowerInvariant();
700
if (!String.IsNullOrEmpty(file.
TargetPath
))
703
if (_maxTargetPath > 0 && file.
TargetPath
.Length > _maxTargetPath)
705
OutputMessages.AddWarningMessage("GenerateManifest.TargetPathTooLong", file.
TargetPath
, _maxTargetPath.ToString(CultureInfo.CurrentCulture));
709
string key = file.
TargetPath
.ToLowerInvariant();
716
OutputMessages.AddWarningMessage("GenerateManifest.DuplicateTargetPath", file.
TargetPath
);
ManifestUtil\AssemblyReference.cs (1)
145
name = "3: " + name + ", " +
TargetPath
; // eveything else...
ManifestUtil\AssemblyReferenceCollection.cs (1)
161
if (String.Equals(targetPath, a.
TargetPath
, StringComparison.OrdinalIgnoreCase))
ManifestUtil\DeployManifest.cs (3)
571
if (!String.IsNullOrEmpty(_entryPoint.
TargetPath
) && !_entryPoint.
TargetPath
.EndsWith(
581
manifestPath = Path.Combine(Path.GetDirectoryName(SourcePath), _entryPoint.
TargetPath
);
ManifestUtil\FileReference.cs (1)
100
protected internal override string SortName =>
TargetPath
;
ManifestUtil\FileReferenceCollection.cs (1)
84
if (String.Equals(targetPath, f.
TargetPath
, StringComparison.OrdinalIgnoreCase))
ManifestUtil\Manifest.cs (7)
175
a.ResolvedPath = ResolvePath(a.
TargetPath
, searchPaths);
197
f.ResolvedPath = ResolvePath(f.
TargetPath
, searchPaths);
517
if (!string.IsNullOrEmpty(f.
TargetPath
))
519
f.ResolvedPath = Path.Combine(Path.GetDirectoryName(f.ResolvedPath), f.
TargetPath
);
533
if (string.IsNullOrEmpty(f.
TargetPath
))
651
Path.GetFileNameWithoutExtension(assembly.
TargetPath
),
654
OutputMessages.AddWarningMessage("GenerateManifest.IdentityFileNameMismatch", assembly.ToString(), assembly.AssemblyIdentity.Name, assembly.AssemblyIdentity.Name + Path.GetExtension(assembly.
TargetPath
));