20 references to Utils
Microsoft.DotNet.Build.Tasks.Workloads (20)
Msi\MsiBase.wix.cs (2)
96protected string OutputName => $"{Utils.GetTruncatedHash(BaseOutputName, HashAlgorithmName.SHA256)}-{Platform}.msi"; 129CompilerOutputPath = Utils.EnsureTrailingSlash(Path.Combine(baseIntermediateOutputPath, "wixobj", metadata.Id, $"{metadata.PackageVersion}", platform));
Msi\MsiPayloadPackageProject.wix.cs (1)
55Utils.StringReplace(msiCsproj, ReplacementTokens, Encoding.UTF8);
Msi\WorkloadManifestMsi.wix.cs (2)
135Guid upgradeCode = IsSxS ? Utils.CreateUuid(UpgradeCodeNamespaceUuid, $"{Package.Identity};{Platform}") : 136Utils.CreateUuid(UpgradeCodeNamespaceUuid, $"{Package.ManifestId};{Package.SdkFeatureBand};{Platform}");
Msi\WorkloadPackGroupMsi.wix.cs (1)
127Guid upgradeCode = Utils.CreateUuid(UpgradeCodeNamespaceUuid, $"{Metadata.Id};{Platform}");
Msi\WorkloadPackMsi.wix.cs (1)
62Guid upgradeCode = Utils.CreateUuid(UpgradeCodeNamespaceUuid, $"{_package.Identity};{Platform}");
Msi\WorkloadSetMsi.wix.cs (1)
58Guid upgradeCode = Utils.CreateUuid(UpgradeCodeNamespaceUuid, $"{_package.Identity};{Platform}");
Swix\MsiSwixProject.wix.cs (2)
90ProjectFile = $"{Utils.GetTruncatedHash(hashInputs, HashAlgorithmName.SHA256)}.swixproj"; 111Utils.StringReplace(swixProj, ReplacementTokens, Encoding.UTF8);
Swix\SwixComponent.cs (2)
170SwixComponent component = new(sdkFeatureBand, Utils.ToSafeId(workload.Id, componentSuffix), 182component.AddDependency(Utils.ToSafeId(dependency, componentSuffix), s_v1);
Swix\SwixProjectBase.cs (1)
88Utils.StringReplace(path, ReplacementTokens, Encoding.UTF8);
WorkloadPackageBase.cs (6)
234Utils.DeleteDirectory(DestinationDirectory); 247Utils.DeleteDirectory(Path.Combine(DestinationDirectory, "_rels")); 248Utils.DeleteDirectory(Path.Combine(DestinationDirectory, "package")); 250Utils.DeleteFile(Path.Combine(DestinationDirectory, ".signature.p7s")); 251Utils.DeleteFile(Path.Combine(DestinationDirectory, "[Content_Types].xml")); 252Utils.DeleteFile(Path.Combine(DestinationDirectory, $"{Id}.nuspec"));
WorkloadPackGroupPackage.wix.cs (1)
31return Utils.ToSafeId(workloadName) + ".WorkloadPacks";