74 references to GetString
Microsoft.Build.Tasks.Core (2)
ResourceUtilities.cs (2)
144
=> AssemblyResources.
GetString
(resourceName);
450
string unformattedMessage = AssemblyResources.
GetString
(resourceName);
Microsoft.Build.Tasks.UnitTests (72)
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\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 (1)
23
private Microsoft.Build.UnitTests.MockEngine.GetStringDelegate _resourceDelegate = new Microsoft.Build.UnitTests.MockEngine.GetStringDelegate(AssemblyResources.
GetString
);
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);
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);