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