56 references to Metadata
Microsoft.DotNet.Build.Tasks.Workloads (56)
CreateVisualStudioWorkload.wix.cs (24)
349msiOutputItem.SetMetadata(Metadata.PackageProject, csproj.Create()); 359if (_supportsMachineArch[sdkFeatureBand] || !string.Equals(msiOutputItem.GetMetadata(Metadata.Platform), DefaultValues.arm64)) 362new(msiOutputItem, BaseIntermediateOutputPath, BaseOutputPath, sdkFeatureBand, chip: null, machineArch: msiOutputItem.GetMetadata(Metadata.Platform), outOfSupport: IsOutOfSupportInVisualStudio) : 363new(msiOutputItem, BaseIntermediateOutputPath, BaseOutputPath, sdkFeatureBand, chip: msiOutputItem.GetMetadata(Metadata.Platform), outOfSupport: IsOutOfSupportInVisualStudio); 367swixProjectItem.SetMetadata(Metadata.SdkFeatureBand, $"{sdkFeatureBand}"); 368swixProjectItem.SetMetadata(Metadata.PackageType, DefaultValues.PackageTypeMsiPack); 369swixProjectItem.SetMetadata(Metadata.IsPreview, "false"); 396msiOutputItem.SetMetadata(Metadata.PackageProject, csproj.Create()); 408if (_supportsMachineArch[manifestPackage.SdkFeatureBand] || !string.Equals(msiOutputItem.GetMetadata(Metadata.Platform), DefaultValues.arm64)) 411new(msiOutputItem, BaseIntermediateOutputPath, BaseOutputPath, manifestPackage.SdkFeatureBand, chip: null, machineArch: msiOutputItem.GetMetadata(Metadata.Platform), outOfSupport: IsOutOfSupportInVisualStudio) : 412new(msiOutputItem, BaseIntermediateOutputPath, BaseOutputPath, manifestPackage.SdkFeatureBand, chip: msiOutputItem.GetMetadata(Metadata.Platform), outOfSupport: IsOutOfSupportInVisualStudio); 416swixProjectItem.SetMetadata(Metadata.SdkFeatureBand, $"{manifestPackage.SdkFeatureBand}"); 417swixProjectItem.SetMetadata(Metadata.PackageType, DefaultValues.PackageTypeMsiPack); 418swixProjectItem.SetMetadata(Metadata.IsPreview, "false"); 437if (_supportsMachineArch[msi.Package.SdkFeatureBand] || !string.Equals(msiOutputItem.GetMetadata(Metadata.Platform), DefaultValues.arm64)) 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}"); 446swixProjectItem.SetMetadata(Metadata.PackageType, DefaultValues.PackageTypeMsiManifest); 447swixProjectItem.SetMetadata(Metadata.IsPreview, "false"); 457msiOutputItem.SetMetadata(Metadata.PackageProject, csproj.Create()); 472swixProjectItem.SetMetadata(Metadata.SdkFeatureBand, $"{swixComponent.SdkFeatureBand}"); 473swixProjectItem.SetMetadata(Metadata.PackageType, DefaultValues.PackageTypeComponent); 474swixProjectItem.SetMetadata(Metadata.IsPreview, swixComponent.Name.EndsWith(".pre").ToString().ToLowerInvariant());
CreateVisualStudioWorkloadSet.wix.cs (5)
74msiOutputItem.SetMetadata(Metadata.PackageProject, csproj.Create()); 83MsiSwixProject swixProject = new(msiOutputItem, BaseIntermediateOutputPath, BaseOutputPath, workloadSetPackage.SdkFeatureBand, chip: null, machineArch: msiOutputItem.GetMetadata(Metadata.Platform)); 88swixProjectItem.SetMetadata(Metadata.SdkFeatureBand, $"{workloadSetPackage.SdkFeatureBand}"); 89swixProjectItem.SetMetadata(Metadata.PackageType, DefaultValues.PackageTypeMsiWorkloadSet); 90swixProjectItem.SetMetadata(Metadata.IsPreview, "false");
Msi\MsiBase.wix.cs (5)
233msiItem.SetMetadata(Workloads.Metadata.Platform, Platform); 234msiItem.SetMetadata(Workloads.Metadata.WixObj, compilerOutputPath); 235msiItem.SetMetadata(Workloads.Metadata.Version, $"{Metadata.MsiVersion}"); 236msiItem.SetMetadata(Workloads.Metadata.SwixPackageId, Metadata.SwixPackageId); 243NuGetPackageFiles[msi.GetMetadata(Workloads.Metadata.FullPath)] = @"\data";
Msi\MsiPayloadPackageProject.wix.cs (1)
36string platform = msi.GetMetadata(Metadata.Platform);
StringExtensions.cs (1)
46str = str.Replace(item.ItemSpec, item.GetMetadata(Metadata.Replacement));
Swix\MsiSwixProject.wix.cs (4)
67string chip = null, string machineArch = null, string productArch = null, bool outOfSupport = false) : base(msi.GetMetadata(Metadata.SwixPackageId), new Version(msi.GetMetadata(Metadata.Version)), baseIntermediateOutputPath, baseOutputPath, outOfSupport) 73Platform = msi.GetMetadata(Metadata.Platform); 92ReplacementTokens[SwixTokens.__VS_PAYLOAD_SOURCE__] = msi.GetMetadata(Metadata.FullPath);
Swix\PackageGroupSwixProject.wix.cs (3)
83swixProjectItem.SetMetadata(Metadata.SdkFeatureBand, $"{swixPackageGroup.SdkFeatureBand}"); 84swixProjectItem.SetMetadata(Metadata.PackageType, packageGroupType); 85swixProjectItem.SetMetadata(Metadata.IsPreview, "false");
Swix\SwixComponent.cs (9)
162Version componentVersion = resourceItem != null && !string.IsNullOrWhiteSpace(resourceItem.GetMetadata(Metadata.Version)) ? 163new Version(resourceItem.GetMetadata(Metadata.Version)) : 166bool.TryParse(resourceItem?.GetMetadata(Metadata.AdvertisePackage), out bool advertise); 171resourceItem != null && !string.IsNullOrEmpty(resourceItem.GetMetadata(Metadata.Title)) ? resourceItem.GetMetadata(Metadata.Title) : workload.Description ?? throw new Exception(Strings.ComponentTitleCannotBeNull), 172resourceItem != null && !string.IsNullOrEmpty(resourceItem.GetMetadata(Metadata.Description)) ? resourceItem.GetMetadata(Metadata.Description) : workload.Description ?? throw new Exception(Strings.ComponentDescriptionCannotBeNull), 174resourceItem != null && !string.IsNullOrEmpty(resourceItem.GetMetadata(Metadata.Category)) ? resourceItem.GetMetadata(Metadata.Category) : DefaultValues.ComponentCategory ?? throw new Exception(Strings.ComponentCategoryCannotBeNull),
WorkloadManifestPackage.wix.cs (1)
95SupportsMachineArch = bool.TryParse(package.GetMetadata(Metadata.SupportsMachineArch), out bool supportsMachineArch) ? supportsMachineArch : false;
WorkloadPackageBase.cs (3)
323if (!string.IsNullOrWhiteSpace(package.GetMetadata(Metadata.MsiVersion))) 326return new(package.GetMetadata(Metadata.MsiVersion)); 338taskParameterName, taskItemName, Metadata.MsiVersion));