82 references to Util
Microsoft.Build.Tasks.Core (82)
GenerateApplicationManifest.cs (16)
44set => _dependencies = Util.SortItems(value); 54if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) < 0) 66set => _files = Util.SortItems(value); 76set => _isolatedComReferences = Util.SortItems(value); 104if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) < 0) 173if (manifest.EntryPoint == null && Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) < 0) 190if (HostInBrowser && Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion30) < 0) 244Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "GenerateApplicationManifest.AddIsolatedComReferences t={0}", Environment.TickCount - t1)); 309if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion30) == 0) 313else if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) == 0) 329Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "GenerateApplicationManifest.AddClickOnceFiles t={0}", Environment.TickCount - t1)); 357if (ClrVersion != null && !Util.IsValidVersion(ClrVersion, 4)) 362if (OSVersion != null && !Util.IsValidVersion(OSVersion, 4)) 367if (!Util.IsValidFrameworkVersion(TargetFrameworkVersion) || Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion20) < 0) 404string org = Util.GetRegisteredOrganization();
GenerateDeploymentManifest.cs (5)
41if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) < 0) 62if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) < 0) 93if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) < 0) 146string org = Util.GetRegisteredOrganization(); 267if (!String.IsNullOrEmpty(MinimumRequiredVersion) && !Util.IsValidVersion(MinimumRequiredVersion, 4))
GenerateManifestBase.cs (8)
522Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "GenerateManifestBase.ResolveFiles t={0}", Environment.TickCount - t1)); 546if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) >= 0) 555if (!String.IsNullOrEmpty(AssemblyName) && !Util.IsValidAssemblyName(AssemblyName)) 560if (!String.IsNullOrEmpty(AssemblyVersion) && !Util.IsValidVersion(AssemblyVersion, 4)) 565if (!String.IsNullOrEmpty(TargetCulture) && !Util.IsValidCulture(TargetCulture)) 572_processorArchitecture = Util.PlatformToProcessorArchitecture(Platform); 628Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "GenerateManifestBase.WriteManifest t={0}", Environment.TickCount - t1)); 629Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "Total time to generate manifest '{1}': t={0}", Environment.TickCount - _startTime, Path.GetFileName(OutputManifest.ItemSpec)));
LC.cs (2)
183Version targetFramework = Util.GetTargetFrameworkVersion(TargetFrameworkVersion); 201Version targetFramework = Util.GetTargetFrameworkVersion(TargetFrameworkVersion);
ManifestUtil\ApplicationManifest.cs (4)
129CLRPlatformAssembly.AssemblyIdentity = new AssemblyIdentity(Constants.CLRPlatformAssemblyName, Util.GetClrVersion(_targetFrameworkVersion)); 511Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "GenerateManifest.CheckForComDuplicates t={0}", Environment.TickCount - t1)); 721Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "GenerateManifest.CheckManifestReferences t={0}", Environment.TickCount - t1)); 734if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) <= 0)
ManifestUtil\ComImporter.cs (2)
72string helpdir = Util.FilterNonprintableChars(helpFile); // Path.GetDirectoryName(helpFile); 96string description = Util.FilterNonprintableChars(docString);
ManifestUtil\DeployManifest.cs (1)
249SupportedRuntime = PatchCLRVersion(Util.GetClrVersion(frameworkName.Version.ToString())),
ManifestUtil\EmbeddedManifestReader.cs (1)
77Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "EmbeddedManifestReader.Read t={0}", Environment.TickCount - t1));
ManifestUtil\Manifest.cs (4)
416Util.GetFileInfo(applicationManifestPath, targetFrameworkVersion, out string hash, out long size); 499Util.GetFileInfo(f.ResolvedPath, out hash, out size); 503Util.GetFileInfo(f.ResolvedPath, targetFrameworkVersion, out hash, out size); 759get { return Util.Schema; }
ManifestUtil\ManifestFormatter.cs (1)
100Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "ManifestWriter.Format t={0}", Environment.TickCount - t1));
ManifestUtil\ManifestReader.cs (6)
99Util.WriteLogFile(Path.GetFileNameWithoutExtension(path) + ".embedded.xml", m); 209Util.CopyStream(input, m.InputStream); 217Util.WriteLogFile(n + ".read.xml", s); 223Util.WriteLog(String.Format(CultureInfo.InvariantCulture, "ManifestReader.ReadManifest t={0}", Environment.TickCount - t1)); 237string ns = typeof(Util).Namespace; 249Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "ManifestReader.Deserialize t={0}", Environment.TickCount - t1));
ManifestUtil\ManifestWriter.cs (11)
31Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "ManifestWriter.Serialize t={0}", Environment.TickCount - t1)); 102Util.WriteLogFile(n + ".write.0-serialized.xml", s1); 106if (string.IsNullOrEmpty(targetframeWorkVersion) || Util.CompareFrameworkVersions(targetframeWorkVersion, Constants.TargetFrameworkVersion40) <= 0) 130if (Util.logging) 134File.Copy(temp, Path.Combine(Util.logPath, n + ".trust-file.xml"), true); 165Util.WriteLogFile(n + ".write.1-transformed.xml", s2); 174string temp = Util.WriteTempFile(manifest.InputStream); 184Util.WriteLogFile(n + ".write.2-merged.xml", s3); 188Util.WriteLogFile(n + ".write.3-formatted.xml", s4); 190Util.CopyStream(s4, output); 191Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "ManifestWriter.WriteManifest t={0}", Environment.TickCount - t1));
ManifestUtil\SecurityUtil.cs (1)
574Version targetVersion = Util.GetTargetFrameworkVersion(targetFrameworkVersion);
ManifestUtil\TrustInfo.cs (4)
582tempPrivilegeDocument = Util.WriteTempFile(p); 632Util.CopyStream(s, output); 692Stream input = Util.GetEmbeddedResourceStream(r); 793Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "ManifestWriter.WriteTrustInfo t={0}", Environment.TickCount - t1));
ManifestUtil\Util.cs (1)
219Stream s = a.GetManifestResourceStream(String.Format(CultureInfo.InvariantCulture, "{0}.{1}", typeof(Util).Namespace, name));
ManifestUtil\XmlUtil.cs (9)
81Stream s = Util.GetEmbeddedResourceStream(resource); 85Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "new XPathDocument(1) t={0}", Environment.TickCount - t2)); 92Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "XslCompiledTransform.Load t={0}", Environment.TickCount - t3)); 97Util.CopyStream(input, clonedInput); 102Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "new XmlReader(2) t={0}", Environment.TickCount - t4)); 113Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "arg: key='{0}' value='{1}'", key, val.ToString())); 125Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "XslCompiledTransform.Transform t={0}", Environment.TickCount - t4)); 131Util.WriteLog(String.Format(CultureInfo.CurrentCulture, "XslCompiledTransform(\"{0}\") t={1}", resource, Environment.TickCount - t1)); 156s = a.GetManifestResourceStream(String.Format(CultureInfo.InvariantCulture, "{0}.{1}", typeof(Util).Namespace, filename));
ResolveManifestFiles.cs (6)
70set => _extraFiles = Util.SortItems(value); 76set => _files = Util.SortItems(value); 82set => _managedAssemblies = Util.SortItems(value); 88set => _nativeAssemblies = Util.SortItems(value); 115set => _publishFiles = Util.SortItems(value); 121set => _satelliteAssemblies = Util.SortItems(value);