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