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 namespace Microsoft.Internal.Web.Utils
{ {
using System; using System;
using System.Reflection;
/// <summary> /// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc. /// A strongly-typed resource class, for looking up localized strings, etc.
@ -43,12 +43,15 @@ namespace Microsoft.Internal.Web.Utils
{ {
get get
{ {
if (object.ReferenceEquals(resourceMan, null))
{
#if NET45 #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); 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; resourceMan = temp;
} }
#endif
return resourceMan; return resourceMan;
} }
} }

View File

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