82 references to Util
Microsoft.Build.Tasks.Core (82)
GenerateApplicationManifest.cs (16)
43set => _dependencies = Util.SortItems(value); 53if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) < 0) 65set => _files = Util.SortItems(value); 75set => _isolatedComReferences = Util.SortItems(value); 103if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) < 0) 172if (manifest.EntryPoint == null && Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) < 0) 189if (HostInBrowser && Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion30) < 0) 243Util.WriteLog($"GenerateApplicationManifest.AddIsolatedComReferences t={Environment.TickCount - t1}"); 308if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion30) == 0) 312else if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) == 0) 328Util.WriteLog($"GenerateApplicationManifest.AddClickOnceFiles t={Environment.TickCount - t1}"); 356if (ClrVersion != null && !Util.IsValidVersion(ClrVersion, 4)) 361if (OSVersion != null && !Util.IsValidVersion(OSVersion, 4)) 366if (!Util.IsValidFrameworkVersion(TargetFrameworkVersion) || Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion20) < 0) 403string 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)
521Util.WriteLog($"GenerateManifestBase.ResolveFiles t={Environment.TickCount - t1}"); 545if (Util.CompareFrameworkVersions(TargetFrameworkVersion, Constants.TargetFrameworkVersion35) >= 0) 554if (!String.IsNullOrEmpty(AssemblyName) && !Util.IsValidAssemblyName(AssemblyName)) 559if (!String.IsNullOrEmpty(AssemblyVersion) && !Util.IsValidVersion(AssemblyVersion, 4)) 564if (!String.IsNullOrEmpty(TargetCulture) && !Util.IsValidCulture(TargetCulture)) 571_processorArchitecture = Util.PlatformToProcessorArchitecture(Platform); 627Util.WriteLog($"GenerateManifestBase.WriteManifest t={Environment.TickCount - t1}"); 628Util.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)
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)
76Util.WriteLog($"EmbeddedManifestReader.Read t={Environment.TickCount - t1}");
ManifestUtil\Manifest.cs (4)
415Util.GetFileInfo(applicationManifestPath, targetFrameworkVersion, out string hash, out long size); 498Util.GetFileInfo(f.ResolvedPath, out hash, out size); 502Util.GetFileInfo(f.ResolvedPath, targetFrameworkVersion, out hash, out size); 758get { return Util.Schema; }
ManifestUtil\ManifestFormatter.cs (1)
99Util.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)
574Version targetVersion = Util.GetTargetFrameworkVersion(targetFrameworkVersion);
ManifestUtil\TrustInfo.cs (4)
581tempPrivilegeDocument = Util.WriteTempFile(p); 631Util.CopyStream(s, output); 691Stream input = Util.GetEmbeddedResourceStream(r); 792Util.WriteLog($"ManifestWriter.WriteTrustInfo t={Environment.TickCount - t1}");
ManifestUtil\Util.cs (1)
203Stream s = a.GetManifestResourceStream($"{typeof(Util).Namespace}.{name}");
ManifestUtil\XmlUtil.cs (9)
80Stream s = Util.GetEmbeddedResourceStream(resource); 84Util.WriteLog($"new XPathDocument(1) t={Environment.TickCount - t2}"); 91Util.WriteLog($"XslCompiledTransform.Load t={Environment.TickCount - t3}"); 96Util.CopyStream(input, clonedInput); 101Util.WriteLog($"new XmlReader(2) t={Environment.TickCount - t4}"); 112Util.WriteLog($"arg: key='{key}' value='{val}'"); 124Util.WriteLog($"XslCompiledTransform.Transform t={Environment.TickCount - t4}"); 130Util.WriteLog($"XslCompiledTransform(\"{resource}\") t={Environment.TickCount - t1}"); 155s = a.GetManifestResourceStream($"{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);