40 references to Strings
Microsoft.DotNet.Build.Tasks.Workloads (40)
CreateVisualStudioWorkload.wix.cs (4)
182
Log.LogError(
Strings
.ManifestPackageGroupExists, manifestPackage.Id, packageGroup.Name);
321
Log.LogError(
Strings
.WorkloadComponentExists, workload.Id, component.Name);
326
Log.LogError(
Strings
.WorkloadComponentExists, workload.Id, previewComponent.Name);
338
Log.LogMessage(MessageImportance.Low, string.Format(
Strings
.BuildExtractingPackage, data.Package.PackagePath));
CreateVisualStudioWorkloadSet.wix.cs (1)
62
Log.LogError(
Strings
.ManifestPackageGroupExists, workloadSetPackage.Id, packageGroup.Name);
EmbeddedTemplates.cs (2)
37
throw new KeyNotFoundException(string.Format(
Strings
.TemplateNotFound, filename));
56
throw new IOException(string.Format(
Strings
.TemplateResourceNotFound, resourceName));
Msi\MsiBase.wix.cs (1)
227
throw new Exception(
Strings
.FailedToLinkMsi);
Msi\MsiUtils.wix.cs (3)
196
throw new ArgumentOutOfRangeException(string.Format(
Strings
.MsiProductVersionOutOfRange, nameof(version.Major), 255));
201
throw new ArgumentOutOfRangeException(string.Format(
Strings
.MsiProductVersionOutOfRange, nameof(version.Minor), 255));
206
throw new ArgumentOutOfRangeException(string.Format(
Strings
.MsiProductVersionOutOfRange, nameof(version.Build), ushort.MaxValue));
Msi\WorkloadManifestMsi.wix.cs (3)
63
throw new Exception(
Strings
.HeatFailedToHarvest);
98
throw new Exception(
Strings
.HeatFailedToHarvest);
154
throw new Exception(
Strings
.FailedToCompileMsi);
Msi\WorkloadPackGroupMsi.wix.cs (2)
74
throw new Exception(
Strings
.HeatFailedToHarvest);
140
throw new Exception(
Strings
.FailedToCompileMsi);
Msi\WorkloadPackMsi.wix.cs (3)
45
throw new Exception(
Strings
.HeatFailedToHarvest);
74
throw new Exception(
Strings
.FailedToCompileMsi);
96
_ => throw new ArgumentException(string.Format(
Strings
.UnknownWorkloadKind, kind)),
Msi\WorkloadSetMsi.wix.cs (2)
45
throw new Exception(
Strings
.HeatFailedToHarvest);
71
throw new Exception(
Strings
.FailedToCompileMsi);
Strings.Designer.cs (1)
42
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.DotNet.Build.Tasks.Workloads.Strings", typeof(
Strings
).Assembly);
Swix\ComponentSwixProject.cs (1)
36
throw new ArgumentException(string.Format(
Strings
.ComponentMustHaveAtLeastOneDependency, component.Name));
Swix\MsiSwixProject.wix.cs (1)
78
throw new ArgumentOutOfRangeException(
Strings
.ChipOrMachineArchRequired);
Swix\PackageGroupSwixProject.wix.cs (1)
38
throw new ArgumentException(string.Format(
Strings
.ComponentMustHaveAtLeastOneDependency, packageGroup.Name));
Swix\SwixComponent.cs (3)
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),
Swix\SwixDependency.cs (2)
60
throw new ArgumentException(
Strings
.SwixDependencyVersionRequired);
65
throw new ArgumentException(
Strings
.SwixDependencyMaxVersionLessThanMinVersion);
Swix\SwixProjectBase.cs (1)
110
throw new Exception(string.Format(
Strings
.RelativePackagePathTooLong, MaxRelativePackagePath, relativePackagePath));
WorkloadManifestPackage.wix.cs (2)
117
throw new FileNotFoundException(string.Format(
Strings
.WorkloadManifestNotFound, primaryManifest, secondaryManifest));
149
throw new FormatException(string.Format(
Strings
.CannotExtractManifestIdFromPackageId, packageId));
WorkloadPackageBase.cs (3)
260
Log?.LogMessage(MessageImportance.Low, string.Format(
Strings
.WorkloadPackageDeleteExclusion, file));
307
throw new FormatException(string.Format(
Strings
.CannotExtractSdkVersionFromPackageId, packageId));
337
throw new Exception(string.Format(
Strings
.NoInstallerVersion, taskName,
WorkloadPackPackage.wix.cs (1)
121
_ => throw new ArgumentException(string.Format(
Strings
.UnknownWorkloadKind, pack.Kind))
WorkloadSetPackage.wix.cs (3)
104
throw new Exception(string.Format(
Strings
.InvalidWorkloadSetPackageMissingDataDir, Id));
120
Log?.LogWarning(string.Format(
Strings
.WarnNonWorkloadSetFileFound, Path.GetFileName(file)));
131
throw new Exception(string.Format(
Strings
.InvalidWorkloadSetPackageNoWorkloadSet, Id));