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