diff --git a/src/Microsoft.AspNet.Localization/RequestLocalizationMiddleware.cs b/src/Microsoft.AspNet.Localization/RequestLocalizationMiddleware.cs index 825e7c4f8c..e92da44b6c 100644 --- a/src/Microsoft.AspNet.Localization/RequestLocalizationMiddleware.cs +++ b/src/Microsoft.AspNet.Localization/RequestLocalizationMiddleware.cs @@ -81,7 +81,7 @@ namespace Microsoft.AspNet.Localization private static void SetCurrentThreadCulture(RequestCulture requestCulture) { -#if DNX451 +#if NET451 Thread.CurrentThread.CurrentCulture = requestCulture.Culture; Thread.CurrentThread.CurrentUICulture = requestCulture.UICulture; #else diff --git a/src/Microsoft.AspNet.Localization/project.json b/src/Microsoft.AspNet.Localization/project.json index 450bf4c204..cf3fff5eac 100644 --- a/src/Microsoft.AspNet.Localization/project.json +++ b/src/Microsoft.AspNet.Localization/project.json @@ -1,28 +1,28 @@ { - "version": "1.0.0-*", - "description": "Middleware for automatically applying culture information to HTTP requests.", - "repository": { - "type": "git", - "url": "https://github.com/aspnet/localization" - }, - "compilationOptions": { - "warningsAsErrors": true - }, - "dependencies": { - "Microsoft.AspNet.Http.Extensions": "1.0.0-*", - "Microsoft.Extensions.Globalization.CultureInfoCache": "1.0.0-*", - "Microsoft.Extensions.Localization.Abstractions": "1.0.0-*" - }, - "frameworks": { - "dnx451": { }, - "dnxcore50": { - "dependencies": { - "Microsoft.CSharp": "4.0.1-beta-*", - "System.Collections": "4.0.11-beta-*", - "System.Globalization": "4.0.11-beta-*", - "System.Linq": "4.0.1-beta-*", - "System.Threading": "4.0.11-beta-*" - } - } + "version": "1.0.0-*", + "description": "Middleware for automatically applying culture information to HTTP requests.", + "repository": { + "type": "git", + "url": "https://github.com/aspnet/localization" + }, + "compilationOptions": { + "warningsAsErrors": true + }, + "dependencies": { + "Microsoft.AspNet.Http.Extensions": "1.0.0-*", + "Microsoft.Extensions.Globalization.CultureInfoCache": "1.0.0-*", + "Microsoft.Extensions.Localization.Abstractions": "1.0.0-*" + }, + "frameworks": { + "net451": {}, + "dotnet5.4": { + "dependencies": { + "Microsoft.CSharp": "4.0.1-beta-*", + "System.Collections": "4.0.11-beta-*", + "System.Globalization": "4.0.11-beta-*", + "System.Linq": "4.0.1-beta-*", + "System.Threading": "4.0.11-beta-*" + } } -} + } +} \ No newline at end of file diff --git a/src/Microsoft.Extensions.Globalization.CultureInfoCache/project.json b/src/Microsoft.Extensions.Globalization.CultureInfoCache/project.json index bcab9ffe4d..7030cda7d3 100644 --- a/src/Microsoft.Extensions.Globalization.CultureInfoCache/project.json +++ b/src/Microsoft.Extensions.Globalization.CultureInfoCache/project.json @@ -1,22 +1,22 @@ { - "version": "1.0.0-*", - "description": "Provides cached instances of CultureInfo using a generated list of known culture names for use in scenarios where unbounded CultureInfo creation is undesirable.", - "repository": { - "type": "git", - "url": "https://github.com/aspnet/localization" - }, - "compilationOptions": { - "warningsAsErrors": true - }, - "frameworks": { - "dnx451": { }, - "dnxcore50": { - "dependencies": { - "Microsoft.CSharp": "4.0.1-beta-*", - "System.Collections": "4.0.11-beta-*", - "System.Collections.Concurrent": "4.0.11-beta-*", - "System.Globalization": "4.0.11-beta-*" - } - } + "version": "1.0.0-*", + "description": "Provides cached instances of CultureInfo using a generated list of known culture names for use in scenarios where unbounded CultureInfo creation is undesirable.", + "repository": { + "type": "git", + "url": "https://github.com/aspnet/localization" + }, + "compilationOptions": { + "warningsAsErrors": true + }, + "frameworks": { + "net451": {}, + "dotnet5.4": { + "dependencies": { + "Microsoft.CSharp": "4.0.1-beta-*", + "System.Collections": "4.0.11-beta-*", + "System.Collections.Concurrent": "4.0.11-beta-*", + "System.Globalization": "4.0.11-beta-*" + } } -} + } +} \ No newline at end of file diff --git a/src/Microsoft.Extensions.Localization.Abstractions/project.json b/src/Microsoft.Extensions.Localization.Abstractions/project.json index 7a35dfaf2e..ad4613c532 100644 --- a/src/Microsoft.Extensions.Localization.Abstractions/project.json +++ b/src/Microsoft.Extensions.Localization.Abstractions/project.json @@ -1,23 +1,23 @@ { - "version": "1.0.0-*", - "description": "Abstractions of application localization services.", - "repository": { - "type": "git", - "url": "https://github.com/aspnet/localization" - }, - "compilationOptions": { - "warningsAsErrors": true - }, - "frameworks": { - "dnx451": { }, - "dnxcore50": { - "dependencies": { - "Microsoft.CSharp": "4.0.1-beta-*", - "System.Collections": "4.0.11-beta-*", - "System.Globalization": "4.0.11-beta-*", - "System.Reflection": "4.0.11-beta-*", - "System.Runtime": "4.0.21-beta-*" - } - } + "version": "1.0.0-*", + "description": "Abstractions of application localization services.", + "repository": { + "type": "git", + "url": "https://github.com/aspnet/localization" + }, + "compilationOptions": { + "warningsAsErrors": true + }, + "frameworks": { + "net451": {}, + "dotnet5.4": { + "dependencies": { + "Microsoft.CSharp": "4.0.1-beta-*", + "System.Collections": "4.0.11-beta-*", + "System.Globalization": "4.0.11-beta-*", + "System.Reflection": "4.0.11-beta-*", + "System.Runtime": "4.0.21-beta-*" + } } -} + } +} \ No newline at end of file diff --git a/src/Microsoft.Extensions.Localization/project.json b/src/Microsoft.Extensions.Localization/project.json index d4ca2308d4..d19fb6dc91 100644 --- a/src/Microsoft.Extensions.Localization/project.json +++ b/src/Microsoft.Extensions.Localization/project.json @@ -1,32 +1,32 @@ { - "version": "1.0.0-*", - "description": "Application localization services.", - "repository": { - "type": "git", - "url": "https://github.com/aspnet/localization" - }, - "compilationOptions": { - "warningsAsErrors": true - }, - "dependencies": { - "Microsoft.Dnx.Runtime.Abstractions": "1.0.0-*", - "Microsoft.Extensions.DependencyInjection.Abstractions": "1.0.0-*", - "Microsoft.Extensions.Localization.Abstractions": "1.0.0-*", - "Microsoft.Extensions.OptionsModel": "1.0.0-*" - }, - "frameworks": { - "dnx451": { }, - "dnxcore50": { - "dependencies": { - "Microsoft.CSharp": "4.0.1-beta-*", - "System.Collections": "4.0.11-beta-*", - "System.Collections.Concurrent": "4.0.11-beta-*", - "System.Globalization": "4.0.11-beta-*", - "System.Linq": "4.0.1-beta-*", - "System.Resources.ReaderWriter": "4.0.0-beta-*", - "System.Resources.ResourceManager": "4.0.1-beta-*", - "System.Threading": "4.0.11-beta-*" - } - } + "version": "1.0.0-*", + "description": "Application localization services.", + "repository": { + "type": "git", + "url": "https://github.com/aspnet/localization" + }, + "compilationOptions": { + "warningsAsErrors": true + }, + "dependencies": { + "Microsoft.Dnx.Runtime.Abstractions": "1.0.0-*", + "Microsoft.Extensions.DependencyInjection.Abstractions": "1.0.0-*", + "Microsoft.Extensions.Localization.Abstractions": "1.0.0-*", + "Microsoft.Extensions.OptionsModel": "1.0.0-*" + }, + "frameworks": { + "net451": {}, + "dotnet5.4": { + "dependencies": { + "Microsoft.CSharp": "4.0.1-beta-*", + "System.Collections": "4.0.11-beta-*", + "System.Collections.Concurrent": "4.0.11-beta-*", + "System.Globalization": "4.0.11-beta-*", + "System.Linq": "4.0.1-beta-*", + "System.Resources.ReaderWriter": "4.0.0-beta-*", + "System.Resources.ResourceManager": "4.0.1-beta-*", + "System.Threading": "4.0.11-beta-*" + } } -} + } +} \ No newline at end of file