fix #2289 by integrating EF's version of project load context (#3402)

This commit is contained in:
Andrew Stanton-Nurse 2016-06-06 15:08:46 -07:00
parent b84832bd8d
commit dd51836aac
10 changed files with 248 additions and 39 deletions

View file

@ -7,14 +7,19 @@ namespace TestProjectWithCultureSpecificResource
{
public class Program
{
public static void Main(string[] args)
// This method is consumed by load context tests
public static string GetMessage()
{
var rm = new ResourceManager(
"TestProjectWithCultureSpecificResource.Strings",
typeof(Program).GetTypeInfo().Assembly);
Console.WriteLine(rm.GetString("hello"));
Console.WriteLine(rm.GetString("hello", new CultureInfo("fr")));
return rm.GetString("hello") + Environment.NewLine + rm.GetString("hello", new CultureInfo("fr"));
}
public static void Main(string[] args)
{
Console.WriteLine(GetMessage());
}
}
}