82 references to Util
Microsoft.Build.Tasks.Core (82)
GenerateApplicationManifest.cs (16)
55if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) < 0) 105if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) < 0) 146_dependencies = Util.SortItems(_dependencies, TaskEnvironment); 147_files = Util.SortItems(_files, TaskEnvironment); 148_isolatedComReferences = Util.SortItems(_isolatedComReferences, TaskEnvironment); 178if (manifest.EntryPoint == null && Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) < 0) 195if (HostInBrowser && Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion30) < 0) 249Util.WriteLog($"GenerateApplicationManifest.AddIsolatedComReferences t={Environment.TickCount - t1}"); 315if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion30) == 0) 319else if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) == 0) 335Util.WriteLog($"GenerateApplicationManifest.AddClickOnceFiles t={Environment.TickCount - t1}"); 363if (ClrVersion != null && !Util.IsValidVersion(ClrVersion, 4)) 368if (OSVersion != null && !Util.IsValidVersion(OSVersion, 4)) 373if (!Util.IsValidFrameworkVersion(TargetFrameworkVersion) || Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion20) < 0) 410string org = Util.GetRegisteredOrganization();
GenerateDeploymentManifest.cs (5)
44if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) < 0) 65if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) < 0) 96if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) < 0) 149string org = Util.GetRegisteredOrganization(); 270if (!String.IsNullOrEmpty(MinimumRequiredVersion) && !Util.IsValidVersion(MinimumRequiredVersion, 4))
GenerateManifestBase.cs (8)
526Util.WriteLog($"GenerateManifestBase.ResolveFiles t={Environment.TickCount - t1}"); 550if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) >= 0) 559if (!String.IsNullOrEmpty(AssemblyName) && !Util.IsValidAssemblyName(AssemblyName)) 564if (!String.IsNullOrEmpty(AssemblyVersion) && !Util.IsValidVersion(AssemblyVersion, 4)) 569if (!String.IsNullOrEmpty(TargetCulture) && !Util.IsValidCulture(TargetCulture)) 576_processorArchitecture = Util.PlatformToProcessorArchitecture(Platform); 633Util.WriteLog($"GenerateManifestBase.WriteManifest t={Environment.TickCount - t1}"); 634Util.WriteLog($"Total time to generate manifest '{Path.GetFileName(OutputManifest.ItemSpec)}': t={Environment.TickCount - _startTime}");
LC.cs (2)
183Version targetFramework = Util.GetTargetFrameworkVersion(TargetFrameworkVersion); 201Version targetFramework = Util.GetTargetFrameworkVersion(TargetFrameworkVersion);
ManifestUtil\ApplicationManifest.cs (4)
128CLRPlatformAssembly.AssemblyIdentity = new AssemblyIdentity(Constants.CLRPlatformAssemblyName, Util.GetClrVersion(_targetFrameworkVersion)); 510Util.WriteLog($"GenerateManifest.CheckForComDuplicates t={Environment.TickCount - t1}"); 720Util.WriteLog($"GenerateManifest.CheckManifestReferences t={Environment.TickCount - t1}"); 733if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) <= 0)
ManifestUtil\ComImporter.cs (2)
67string helpdir = Util.FilterNonprintableChars(helpFile); // Path.GetDirectoryName(helpFile); 87string description = Util.FilterNonprintableChars(docString);
ManifestUtil\DeployManifest.cs (1)
249SupportedRuntime = PatchCLRVersion(Util.GetClrVersion(frameworkName.Version.ToString())),
ManifestUtil\EmbeddedManifestReader.cs (1)
76Util.WriteLog($"EmbeddedManifestReader.Read t={Environment.TickCount - t1}");
ManifestUtil\Manifest.cs (4)
420Util.GetFileInfo(applicationManifestPath, targetFrameworkVersion, out string hash, out long size); 503Util.GetFileInfo(f.ResolvedPath, out hash, out size); 507Util.GetFileInfo(f.ResolvedPath, targetFrameworkVersion, out hash, out size); 763get { return Util.Schema; }
ManifestUtil\ManifestFormatter.cs (1)
98Util.WriteLog($"ManifestWriter.Format t={Environment.TickCount - t1}");
ManifestUtil\ManifestReader.cs (6)
97Util.WriteLogFile(Path.GetFileNameWithoutExtension(path) + ".embedded.xml", m); 205Util.CopyStream(input, m.InputStream); 213Util.WriteLogFile(n + ".read.xml", s); 219Util.WriteLog(String.Format(CultureInfo.InvariantCulture, "ManifestReader.ReadManifest t={0}", Environment.TickCount - t1)); 233string ns = typeof(Util).Namespace; 245Util.WriteLog($"ManifestReader.Deserialize t={Environment.TickCount - t1}");
ManifestUtil\ManifestWriter.cs (11)
30Util.WriteLog($"ManifestWriter.Serialize t={Environment.TickCount - t1}"); 101Util.WriteLogFile(n + ".write.0-serialized.xml", s1); 105if (string.IsNullOrEmpty(targetframeWorkVersion) || Util.CompareFrameworkVersions(targetframeWorkVersion, Constants.TargetFrameworkVersion40) <= 0) 129if (Util.logging) 133File.Copy(temp, Path.Combine(Util.logPath, n + ".trust-file.xml"), true); 164Util.WriteLogFile(n + ".write.1-transformed.xml", s2); 173string temp = Util.WriteTempFile(manifest.InputStream); 183Util.WriteLogFile(n + ".write.2-merged.xml", s3); 187Util.WriteLogFile(n + ".write.3-formatted.xml", s4); 189Util.CopyStream(s4, output); 190Util.WriteLog($"ManifestWriter.WriteManifest t={Environment.TickCount - t1}");
ManifestUtil\SecurityUtil.cs (1)
569Version targetVersion = Util.GetTargetFrameworkVersion(targetFrameworkVersion);
ManifestUtil\TrustInfo.cs (4)
583tempPrivilegeDocument = Util.WriteTempFile(p); 633Util.CopyStream(s, output); 693Stream input = Util.GetEmbeddedResourceStream(r); 794Util.WriteLog($"ManifestWriter.WriteTrustInfo t={Environment.TickCount - t1}");
ManifestUtil\Util.cs (1)
202Stream s = a.GetManifestResourceStream($"{typeof(Util).Namespace}.{name}");
ManifestUtil\XmlUtil.cs (9)
80Stream s = Util.GetEmbeddedResourceStream(resource); 85Util.WriteLog($"new XPathDocument(1) t={Environment.TickCount - t2}"); 94Util.WriteLog($"XslCompiledTransform.Load t={Environment.TickCount - t3}"); 99Util.CopyStream(input, clonedInput); 104Util.WriteLog($"new XmlReader(2) t={Environment.TickCount - t4}"); 115Util.WriteLog($"arg: key='{key}' value='{val}'"); 127Util.WriteLog($"XslCompiledTransform.Transform t={Environment.TickCount - t4}"); 133Util.WriteLog($"XslCompiledTransform(\"{resource}\") t={Environment.TickCount - t1}"); 158s = a.GetManifestResourceStream($"{typeof(Util).Namespace}.{filename}");
ResolveManifestFiles.cs (6)
168_extraFiles = Util.SortItems(_extraFiles, TaskEnvironment); 169_files = Util.SortItems(_files, TaskEnvironment); 170_managedAssemblies = Util.SortItems(_managedAssemblies, TaskEnvironment); 171_nativeAssemblies = Util.SortItems(_nativeAssemblies, TaskEnvironment); 172_publishFiles = Util.SortItems(_publishFiles, TaskEnvironment); 173_satelliteAssemblies = Util.SortItems(_satelliteAssemblies, TaskEnvironment);