Fixed up resources.

This commit is contained in:
David Fowler 2014-01-27 21:30:53 -08:00
parent b9c2bcecb7
commit b1ff6d32d3
2 changed files with 10 additions and 4 deletions

View File

@ -11,7 +11,7 @@
namespace Microsoft.Internal.Web.Utils
{
using System;
using System.Reflection;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
@ -43,12 +43,15 @@ namespace Microsoft.Internal.Web.Utils
{
get
{
if (object.ReferenceEquals(resourceMan, null))
{
#if NET45
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.AspNet.Razor.Common.CommonResources", typeof(CommonResources).Assembly);
#else
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.AspNet.Razor.Common.CommonResources", typeof(CommonResources).GetTypeInfo().Assembly);
#endif
resourceMan = temp;
}
#endif
return resourceMan;
}
}

View File

@ -11,6 +11,7 @@
namespace Microsoft.AspNet.Razor.Resources
{
using System;
using System.Reflection;
/// <summary>
@ -47,8 +48,10 @@ namespace Microsoft.AspNet.Razor.Resources
{
#if NET45
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.AspNet.Razor.Resources.RazorResources", typeof(RazorResources).Assembly);
resourceMan = temp;
#else
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.AspNet.Razor.Resources.RazorResources", typeof(RazorResources).GetTypeInfo().Assembly);
#endif
resourceMan = temp;
}
return resourceMan;
}