Fixed up resources.
This commit is contained in:
parent
b9c2bcecb7
commit
b1ff6d32d3
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue