1 write to Package
Microsoft.DotNet.Build.Tasks.Workloads (1)
Msi\WorkloadManifestMsi.wix.cs (1)
41Package = package;
18 references to Package
Microsoft.DotNet.Build.Tasks.Workloads (18)
CreateVisualStudioWorkload.wix.cs (5)
437if (_supportsMachineArch[msi.Package.SdkFeatureBand] || !string.Equals(msiOutputItem.GetMetadata(Metadata.Platform), DefaultValues.arm64)) 441MsiSwixProject swixProject = _supportsMachineArch[msi.Package.SdkFeatureBand] ? 442new(msiOutputItem, BaseIntermediateOutputPath, BaseOutputPath, msi.Package.SdkFeatureBand, chip: null, machineArch: msiOutputItem.GetMetadata(Metadata.Platform)) : 443new(msiOutputItem, BaseIntermediateOutputPath, BaseOutputPath, msi.Package.SdkFeatureBand, chip: msiOutputItem.GetMetadata(Metadata.Platform)); 445swixProjectItem.SetMetadata(Metadata.SdkFeatureBand, $"{((WorkloadManifestPackage)msi.Package).SdkFeatureBand}");
Msi\WorkloadManifestMsi.wix.cs (13)
26protected override string BaseOutputName => Path.GetFileNameWithoutExtension(Package.PackagePath); 51string packageDataDirectory = Path.Combine(Package.DestinationDirectory, "data"); 113candle.AddPreprocessorDefinition("ManifestVersion", Package.GetManifest().Version); 135Guid upgradeCode = IsSxS ? Utils.CreateUuid(UpgradeCodeNamespaceUuid, $"{Package.Identity};{Platform}") : 136Utils.CreateUuid(UpgradeCodeNamespaceUuid, $"{Package.ManifestId};{Package.SdkFeatureBand};{Platform}"); 138$"{Package.ManifestId},{Package.SdkFeatureBand},{Package.PackageVersion},{Platform}" : 139$"{Package.ManifestId},{Package.SdkFeatureBand},{Platform}"; 145candle.AddPreprocessorDefinition(PreprocessorDefinitionNames.SdkFeatureBandVersion, $"{Package.SdkFeatureBand}"); 150candle.AddPreprocessorDefinition(PreprocessorDefinitionNames.ManifestId, $"{Package.ManifestId.ToLowerInvariant()}");