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