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