5 writes to TargetPath
Microsoft.Build.Tasks.Core (5)
GenerateManifestBase.cs (2)
537file.TargetPath = targetPath; 541file.TargetPath = Path.IsPathRooted(file.SourcePath) || file.SourcePath.StartsWith("..", StringComparison.Ordinal) ? Path.GetFileName(file.SourcePath) : file.SourcePath;
ManifestUtil\Manifest.cs (3)
523f.TargetPath = BaseReference.GetDefaultTargetPath(f.ResolvedPath); 536f.TargetPath = BaseReference.GetDefaultTargetPath(f.SourcePath); 540f.TargetPath = BaseReference.GetDefaultTargetPath(Path.GetFileName(f.ResolvedPath));
33 references to TargetPath
Microsoft.Build.Tasks.Core (33)
GenerateApplicationManifest.cs (2)
273manifest.ConfigFile = FindFileFromItem(ConfigFile).TargetPath; 278manifest.IconFile = FindFileFromItem(IconFile).TargetPath;
GenerateManifestBase.cs (1)
341if (String.Equals(targetPath, file.TargetPath, StringComparison.OrdinalIgnoreCase))
ManifestUtil\ApplicationManifest.cs (16)
402_entryPointPath = _entryPoint.TargetPath; 485clsidList.Add(key, new ComInfo(outputFileName, file.TargetPath, comClass.ClsId, null)); 500tlbidList.Add(key, new ComInfo(outputFileName, file.TargetPath, null, typeLib.TlbId)); 548bool isCorrectFileType = !String.IsNullOrEmpty(_entryPoint.TargetPath) && _entryPoint.TargetPath.EndsWith(".exe", StringComparison.OrdinalIgnoreCase); 599if (fileReference.TargetPath.Equals(fileAssociation.DefaultIcon, StringComparison.Ordinal)) 630Path.GetFileNameWithoutExtension(assembly.TargetPath), 633OutputMessages.AddErrorMessage("GenerateManifest.IdentityFileNameMismatch", assembly.ToString(), assembly.AssemblyIdentity.Name, assembly.AssemblyIdentity.Name + Path.GetExtension(assembly.TargetPath)); 653if (!assembly.IsPrerequisite && !String.IsNullOrEmpty(assembly.TargetPath)) 656if (_maxTargetPath > 0 && assembly.TargetPath.Length > _maxTargetPath) 662string key = assembly.TargetPath.ToLowerInvariant(); 699if (!String.IsNullOrEmpty(file.TargetPath)) 702if (_maxTargetPath > 0 && file.TargetPath.Length > _maxTargetPath) 704OutputMessages.AddWarningMessage("GenerateManifest.TargetPathTooLong", file.TargetPath, _maxTargetPath.ToString(CultureInfo.CurrentCulture)); 708string key = file.TargetPath.ToLowerInvariant(); 715OutputMessages.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)
174a.ResolvedPath = ResolvePath(a.TargetPath, searchPaths); 196f.ResolvedPath = ResolvePath(f.TargetPath, searchPaths); 516if (!string.IsNullOrEmpty(f.TargetPath)) 518f.ResolvedPath = Path.Combine(Path.GetDirectoryName(f.ResolvedPath), f.TargetPath); 532if (string.IsNullOrEmpty(f.TargetPath)) 650Path.GetFileNameWithoutExtension(assembly.TargetPath), 653OutputMessages.AddWarningMessage("GenerateManifest.IdentityFileNameMismatch", assembly.ToString(), assembly.AssemblyIdentity.Name, assembly.AssemblyIdentity.Name + Path.GetExtension(assembly.TargetPath));