6 references to ResourceName
Microsoft.NET.Build.Extensions.Tasks (6)
MessageBase.cs (6)
37
if (string.IsNullOrEmpty(FormattedText) && string.IsNullOrEmpty(
ResourceName
))
39
throw new ArgumentException($"Either {nameof(FormattedText)} or {nameof(
ResourceName
)} must be specified.");
41
else if (!string.IsNullOrEmpty(FormattedText) && !string.IsNullOrEmpty(
ResourceName
))
43
throw new ArgumentException($"Only one of {nameof(FormattedText)} and {nameof(
ResourceName
)} can be specified.");
45
else if (!string.IsNullOrEmpty(
ResourceName
))
56
string? format = Strings.ResourceManager.GetString(
ResourceName
, Strings.Culture);