113 references to AssemblyResources
Microsoft.Build.Tasks.Core (23)
AppDomainIsolatedTaskExtension.cs (3)
24
base(
AssemblyResources
.PrimaryResources, "MSBuild.")
28
AssemblyResources
.PrimaryResources,
29
AssemblyResources
.SharedResources,
AssemblyResources.cs (2)
53
internal static ResourceManager PrimaryResources { get; } = new ResourceManager("Microsoft.Build.Tasks.Core.Strings", typeof(
AssemblyResources
).GetTypeInfo().Assembly);
60
internal static ResourceManager SharedResources { get; } = new ResourceManager("Microsoft.Build.Tasks.Core.Strings.shared", typeof(
AssemblyResources
).GetTypeInfo().Assembly);
CodeTaskFactory.cs (2)
196
TaskResources =
AssemblyResources
.PrimaryResources,
337
TaskResources =
AssemblyResources
.PrimaryResources,
GenerateManifestBase.cs (1)
44
protected GenerateManifestBase() : base(
AssemblyResources
.PrimaryResources, "MSBuild.")
ManifestUtil\OutputMessage.cs (1)
79
private readonly System.Resources.ResourceManager _taskResources = Shared.
AssemblyResources
.PrimaryResources;
ResourceUtilities.cs (2)
144
=>
AssemblyResources
.GetString(resourceName);
450
string unformattedMessage =
AssemblyResources
.GetString(resourceName);
RoslynCodeTaskFactory\RoslynCodeTaskFactory.cs (1)
161
TaskResources =
AssemblyResources
.PrimaryResources,
SignFile.cs (1)
28
: base(
AssemblyResources
.PrimaryResources, "MSBuild.")
TaskExtension.cs (3)
19
base(
AssemblyResources
.PrimaryResources, "MSBuild.")
23
AssemblyResources
.PrimaryResources,
24
AssemblyResources
.SharedResources,
ToolTaskExtension.cs (3)
29
base(
AssemblyResources
.PrimaryResources, "MSBuild.")
33
AssemblyResources
.PrimaryResources,
34
AssemblyResources
.SharedResources,
WriteCodeFragment.cs (1)
184
string comment =
AssemblyResources
.GetInvariantString("WriteCodeFragment.Comment");
XamlTaskFactory\XamlDataDrivenToolTask.cs (2)
49
TaskResources =
AssemblyResources
.PrimaryResources,
428
TaskResources =
AssemblyResources
.PrimaryResources,
XamlTaskFactory\XamlTaskFactory.cs (1)
107
TaskResources =
AssemblyResources
.PrimaryResources,
Microsoft.Build.Tasks.UnitTests (90)
AssemblyDependency\FilePrimary.cs (1)
249
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.UnificationByAppConfig"), "1.0.0.0", appConfigFile, Path.Combine(s_myApp_V10Path, "DependsOnUnified.dll")));
AssemblyDependency\Miscellaneous.cs (5)
3150
String.Format(
AssemblyResources
.GetString("General.MalformedAssemblyName"), "c:\\DoesntExist\\System.Xml.dll"));
3171
String.Format(
AssemblyResources
.GetString("General.MalformedAssemblyName"), "c:\\DoesntExist\\System.Xml.dll"));
3486
string message = String.Format(
AssemblyResources
.GetString("General.InvalidAttributeMetadata"), assemblyNames[0].ItemSpec, "Private", "bogus", "bool");
4648
String.Format(
AssemblyResources
.GetString("General.ExpectedFileGotDirectory"), Path.GetTempPath()),
7712
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.ConflictUnsolvable"), @"MyAssembly, Version=2.0.0.0, Culture=Neutral, PublicKeyToken=null", "MyAssembly, Version=1.0.0.0, Culture=Neutral, PublicKeyToken=null"));
AssemblyDependency\ResolveAssemblyReferenceCacheSerialization.cs (1)
32
TaskResources =
AssemblyResources
.PrimaryResources
AssemblyDependency\ResolveAssemblyReferenceTestFixture.cs (1)
44
internal Microsoft.Build.UnitTests.MockEngine.GetStringDelegate resourceDelegate = new Microsoft.Build.UnitTests.MockEngine.GetStringDelegate(
AssemblyResources
.GetString);
AssemblyDependency\StronglyNamedDependency.cs (3)
79
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.UnificationByFrameworkRetarget"), "1.0.5000.0", Path.Combine(s_myApp_V10Path, "DependsOnEverettSystem.dll")));
82
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.NotCopyLocalBecausePrerequisite")));
124
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.UnificationByFrameworkRetarget"), "1.0.5000.0", Path.Combine(s_myApp_V10Path, "DependsOnEverettSystem.dll")));
AssemblyDependency\StronglyNamedDependencyAppConfig.cs (10)
82
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.UnificationByAppConfig"), "1.0.0.0", appConfigFile, Path.Combine(s_myApp_V10Path, "DependsOnUnified.dll")));
154
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.UnificationByAppConfig"), "1.0.0.0", appConfigFile, Path.Combine(s_myApp_V10Path, "DependsOnUnified.dll")));
262
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.UnificationByAppConfig"), "1.0.0.0", appConfigFile, Path.Combine(s_myApp_V10Path, "DependsOnUnified.dll")));
315
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.FailedToResolveReference"),
316
String.Format(
AssemblyResources
.GetString("General.CouldNotLocateAssembly"), "UNIFyMe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")),
324
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.UnificationByAppConfig"), "1.0.0.0", appConfigFile, Path.Combine(s_myApp_V10Path, "DependsOnUnified.dll")));
327
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.UnifiedDependency"), "UNIFyMe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"));
380
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.UnificationByAppConfig"), "0.5.0.0", appConfigFile, Path.Combine(s_myApp_V05Path, "DependsOnUnified.dll")));
466
String.Format(
AssemblyResources
.GetString("AppConfig.BindingRedirectMissingOldVersion")));
510
String.Format(
AssemblyResources
.GetString("AppConfig.BindingRedirectMissingNewVersion")));
AssemblyDependency\StronglyNamedDependencyAutoUnify.cs (12)
88
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.UnifiedDependency"), "UniFYme, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"));
91
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.UnificationByAutoUnify"), "1.0.0.0", Path.Combine(s_myApp_V10Path, "DependsOnUnified.dll")));
160
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.UnifiedDependency"), "UnifyMe, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, ProcessorArchitecture=MSIL"));
163
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.UnificationByAutoUnify"), "1.0.0.0", Path.Combine(s_myApp_V20Path, "DependsOnUnified.dll")));
241
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.UnificationByAppConfig"), "1.0.0.0", appConfigFile, Path.Combine(s_myApp_V10Path, "DependsOnUnified.dll")));
392
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.UnifiedDependency"), "UniFYme, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"));
395
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.UnificationByAutoUnify"), "1.0.0.0", Path.Combine(s_myApp_V10Path, "DependsOnUnified.dll")));
398
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.UnificationByAutoUnify"), "2.0.0.0", Path.Combine(s_myApp_V20Path, "DependsOnUnified.dll")));
446
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.UnifiedDependency"), "UniFYme, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"));
449
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.UnificationByAutoUnify"), "1.0.0.0", Path.Combine(s_myApp_V10Path, "DependsOnUnified.dll")));
452
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.UnificationByAutoUnify"), "2.0.0.0", Path.Combine(s_myApp_V20Path, "DependsOnUnified.dll")));
496
String.Format(
AssemblyResources
.GetString("ResolveAssemblyReference.UnificationByAutoUnify"), "0.5.0.0", Path.Combine(s_myApp_V05Path, "DependsOnUnified.dll")));
AssemblyDependency\SuggestedRedirects.cs (1)
113
AssemblyResources
.GetString(
Copy_Tests.cs (9)
1162
engine.AssertLogContainsMessageFromResource(
AssemblyResources
.GetString,
1171
engine.AssertLogDoesntContainMessageFromResource(
AssemblyResources
.GetString,
1926
MockEngine.GetStringDelegate resourceDelegate =
AssemblyResources
.GetString;
1931
MockEngine.GetStringDelegate resourceDelegate =
AssemblyResources
.GetString;
2638
MockEngine.GetStringDelegate resourceDelegate =
AssemblyResources
.GetString;
2730
MockEngine.GetStringDelegate resourceDelegate =
AssemblyResources
.GetString;
2826
MockEngine.GetStringDelegate resourceDelegate =
AssemblyResources
.GetString;
2898
MockEngine.GetStringDelegate resourceDelegate =
AssemblyResources
.GetString;
2961
MockEngine.GetStringDelegate resourceDelegate =
AssemblyResources
.GetString;
CreateCSharpManifestResourceName_Tests.cs (1)
766
String.Format(
AssemblyResources
.GetString("CreateManifestResourceName.DefinitionFoundWithinConditionalDirective"), "MyForm.cs", "MyForm.resx"),
CreateVisualBasicManifestResourceName_Tests.cs (1)
503
String.Format(
AssemblyResources
.GetString("CreateManifestResourceName.DefinitionFoundWithinConditionalDirective"), "MyForm.vb", "MyForm.resx"),
ErrorWarningMessage_Tests.cs (7)
126
Assert.Contains(
AssemblyResources
.GetString("ErrorAndWarning.EmptyMessage"), e.Log);
151
Assert.Contains(
AssemblyResources
.GetString("ErrorAndWarning.EmptyMessage"), e.Log);
177
Assert.Contains(
AssemblyResources
.GetString("ErrorAndWarning.EmptyMessage"), e.Log);
203
Assert.Contains(
AssemblyResources
.GetString("ErrorAndWarning.EmptyMessage"), e.Log);
250
string message =
AssemblyResources
.GetString(err.Resource);
277
string message =
AssemblyResources
.GetString(err.Resource);
305
string message = String.Format(
AssemblyResources
.GetString(err.Resource), err.Arguments);
GetSDKReference_Tests.cs (1)
198
_resourceDelegate =
AssemblyResources
.GetString;
MakeDir_Tests.cs (6)
46
String.Format(
AssemblyResources
.GetString("MakeDir.Comment"), dir),
109
String.Format(
AssemblyResources
.GetString("MakeDir.Comment"), dir),
151
String.Format(
AssemblyResources
.GetString("MakeDir.Comment"), dir),
162
String.Format(
AssemblyResources
.GetString("MakeDir.Comment"), dir),
198
String.Format(
AssemblyResources
.GetString("MakeDir.Comment"), dir),
221
String.Format(
AssemblyResources
.GetString("MakeDir.Comment"), dir),
MSBuild_Tests.cs (3)
329
string message = String.Format(
AssemblyResources
.GetString("MSBuild.ProjectFileNotFoundMessage"), "this_project_does_not_exist_warn.csproj");
330
string error = String.Format(
AssemblyResources
.GetString("MSBuild.ProjectFileNotFound"), "this_project_does_not_exist_warn.csproj");
331
string error2 = String.Format(
AssemblyResources
.GetString("MSBuild.ProjectFileNotFound"), "this_project_does_not_exist_error.csproj");
ResolveSDKReference_Tests.cs (9)
23
private Microsoft.Build.UnitTests.MockEngine.GetStringDelegate _resourceDelegate = new Microsoft.Build.UnitTests.MockEngine.GetStringDelegate(
AssemblyResources
.GetString);
193
log1.TaskResources =
AssemblyResources
.PrimaryResources;
211
log2.TaskResources =
AssemblyResources
.PrimaryResources;
229
log3.TaskResources =
AssemblyResources
.PrimaryResources;
247
log3a.TaskResources =
AssemblyResources
.PrimaryResources;
269
log4.TaskResources =
AssemblyResources
.PrimaryResources;
286
log5.TaskResources =
AssemblyResources
.PrimaryResources;
316
log.TaskResources =
AssemblyResources
.PrimaryResources;
388
log.TaskResources =
AssemblyResources
.PrimaryResources;
ResourceHandling\GenerateResource_Tests.cs (3)
4026
String.Format(
AssemblyResources
.GetString(messageID), replacements),
4036
var unformattedMessage =
AssemblyResources
.GetString(messageID);
4077
Assert.DoesNotContain(String.Format(
AssemblyResources
.GetString(messageID), replacements), ((MockEngine)t.BuildEngine).Log);
RoslynCodeTaskFactory_Tests.cs (8)
923
TaskResources = Shared.
AssemblyResources
.PrimaryResources
949
TaskResources = Shared.
AssemblyResources
.PrimaryResources
1290
TaskResources =
AssemblyResources
.PrimaryResources,
1341
TaskResources =
AssemblyResources
.PrimaryResources,
1387
TaskResources =
AssemblyResources
.PrimaryResources,
1425
TaskResources =
AssemblyResources
.PrimaryResources,
1464
TaskResources =
AssemblyResources
.PrimaryResources,
1503
TaskResources =
AssemblyResources
.PrimaryResources,
SdkToolsPathUtility_Tests.cs (1)
35
_log.TaskResources =
AssemblyResources
.PrimaryResources;
Touch_Tests.cs (6)
204
String.Format(
AssemblyResources
.GetString("Touch.Touching"), myexisting_txt),
227
String.Format(
AssemblyResources
.GetString("Touch.FileDoesNotExist"), mynonexisting_txt),
251
String.Format(
AssemblyResources
.GetString("Touch.CreatingFile"), mynonexisting_txt, "AlwaysCreate"),
366
String.Format(
AssemblyResources
.GetString("Touch.FileDoesNotExist"), mynonexisting_txt),
392
String.Format(
AssemblyResources
.GetString("Touch.CreatingFile"), mynonexisting_txt, "AlwaysCreate"),
417
String.Format(
AssemblyResources
.GetString("Touch.Touching"), myexisting_txt),
WriteLinesToFile_Tests.cs (1)
190
engine.AssertLogContainsMessageFromResource(
AssemblyResources
.GetString, "WriteLinesToFile.UnusedWriteOnlyWhenDifferent", file);