From b1a2db0a7cb31c3effafcabbf1871a872ff6ce50 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Thu, 10 Sep 2015 17:47:52 -0700 Subject: [PATCH] Adding NeutralResourcesLanguageAttribute --- .../Properties/AssemblyInfo.cs | 8 ++++++++ src/Microsoft.AspNet.Html.Abstractions/project.json | 6 +++++- .../Properties/AssemblyInfo.cs | 4 +++- .../Properties/AssemblyInfo.cs | 4 +++- .../Properties/AssemblyInfo.cs | 4 +++- src/Microsoft.AspNet.Http/Properties/AssemblyInfo.cs | 4 +++- src/Microsoft.AspNet.Owin/Properties/AssemblyInfo.cs | 4 +++- .../Properties/AssemblyInfo.cs | 4 +++- .../Properties/AssemblyInfo.cs | 8 ++++++++ src/Microsoft.Framework.Primitives/project.json | 3 ++- .../Properties/AssemblyInfo.cs | 3 ++- src/Microsoft.Framework.WebEncoders.Core/project.json | 1 + .../Properties/AssemblyInfo.cs | 4 +++- src/Microsoft.Net.Http.Headers/Properties/AssemblyInfo.cs | 4 +++- 14 files changed, 50 insertions(+), 11 deletions(-) create mode 100644 src/Microsoft.AspNet.Html.Abstractions/Properties/AssemblyInfo.cs create mode 100644 src/Microsoft.Framework.Primitives/Properties/AssemblyInfo.cs diff --git a/src/Microsoft.AspNet.Html.Abstractions/Properties/AssemblyInfo.cs b/src/Microsoft.AspNet.Html.Abstractions/Properties/AssemblyInfo.cs new file mode 100644 index 0000000000..b2437d9ad6 --- /dev/null +++ b/src/Microsoft.AspNet.Html.Abstractions/Properties/AssemblyInfo.cs @@ -0,0 +1,8 @@ +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +using System.Reflection; +using System.Resources; + +[assembly: AssemblyMetadata("Serviceable", "True")] +[assembly: NeutralResourcesLanguage("en-us")] \ No newline at end of file diff --git a/src/Microsoft.AspNet.Html.Abstractions/project.json b/src/Microsoft.AspNet.Html.Abstractions/project.json index a2a7420401..6ecc82e292 100644 --- a/src/Microsoft.AspNet.Html.Abstractions/project.json +++ b/src/Microsoft.AspNet.Html.Abstractions/project.json @@ -11,6 +11,10 @@ "frameworks": { "net45" : { }, "dnx451": { }, - "dnxcore50": { } + "dnxcore50": { + "dependencies": { + "System.Resources.ResourceManager": "4.0.1-beta-" + } + } } } \ No newline at end of file diff --git a/src/Microsoft.AspNet.Http.Abstractions/Properties/AssemblyInfo.cs b/src/Microsoft.AspNet.Http.Abstractions/Properties/AssemblyInfo.cs index 2565f9261e..08ea154ce6 100644 --- a/src/Microsoft.AspNet.Http.Abstractions/Properties/AssemblyInfo.cs +++ b/src/Microsoft.AspNet.Http.Abstractions/Properties/AssemblyInfo.cs @@ -2,7 +2,9 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Reflection; +using System.Resources; using System.Runtime.CompilerServices; [assembly: AssemblyMetadata("Serviceable", "True")] -[assembly: InternalsVisibleTo("Microsoft.AspNet.Http.Abstractions.Tests")] \ No newline at end of file +[assembly: InternalsVisibleTo("Microsoft.AspNet.Http.Abstractions.Tests")] +[assembly: NeutralResourcesLanguage("en-us")] \ No newline at end of file diff --git a/src/Microsoft.AspNet.Http.Extensions/Properties/AssemblyInfo.cs b/src/Microsoft.AspNet.Http.Extensions/Properties/AssemblyInfo.cs index 025a94598c..b2437d9ad6 100644 --- a/src/Microsoft.AspNet.Http.Extensions/Properties/AssemblyInfo.cs +++ b/src/Microsoft.AspNet.Http.Extensions/Properties/AssemblyInfo.cs @@ -2,5 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Reflection; +using System.Resources; -[assembly: AssemblyMetadata("Serviceable", "True")] \ No newline at end of file +[assembly: AssemblyMetadata("Serviceable", "True")] +[assembly: NeutralResourcesLanguage("en-us")] \ No newline at end of file diff --git a/src/Microsoft.AspNet.Http.Features/Properties/AssemblyInfo.cs b/src/Microsoft.AspNet.Http.Features/Properties/AssemblyInfo.cs index 025a94598c..b2437d9ad6 100644 --- a/src/Microsoft.AspNet.Http.Features/Properties/AssemblyInfo.cs +++ b/src/Microsoft.AspNet.Http.Features/Properties/AssemblyInfo.cs @@ -2,5 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Reflection; +using System.Resources; -[assembly: AssemblyMetadata("Serviceable", "True")] \ No newline at end of file +[assembly: AssemblyMetadata("Serviceable", "True")] +[assembly: NeutralResourcesLanguage("en-us")] \ No newline at end of file diff --git a/src/Microsoft.AspNet.Http/Properties/AssemblyInfo.cs b/src/Microsoft.AspNet.Http/Properties/AssemblyInfo.cs index 025a94598c..b2437d9ad6 100644 --- a/src/Microsoft.AspNet.Http/Properties/AssemblyInfo.cs +++ b/src/Microsoft.AspNet.Http/Properties/AssemblyInfo.cs @@ -2,5 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Reflection; +using System.Resources; -[assembly: AssemblyMetadata("Serviceable", "True")] \ No newline at end of file +[assembly: AssemblyMetadata("Serviceable", "True")] +[assembly: NeutralResourcesLanguage("en-us")] \ No newline at end of file diff --git a/src/Microsoft.AspNet.Owin/Properties/AssemblyInfo.cs b/src/Microsoft.AspNet.Owin/Properties/AssemblyInfo.cs index 025a94598c..b2437d9ad6 100644 --- a/src/Microsoft.AspNet.Owin/Properties/AssemblyInfo.cs +++ b/src/Microsoft.AspNet.Owin/Properties/AssemblyInfo.cs @@ -2,5 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Reflection; +using System.Resources; -[assembly: AssemblyMetadata("Serviceable", "True")] \ No newline at end of file +[assembly: AssemblyMetadata("Serviceable", "True")] +[assembly: NeutralResourcesLanguage("en-us")] \ No newline at end of file diff --git a/src/Microsoft.AspNet.WebUtilities/Properties/AssemblyInfo.cs b/src/Microsoft.AspNet.WebUtilities/Properties/AssemblyInfo.cs index 025a94598c..b2437d9ad6 100644 --- a/src/Microsoft.AspNet.WebUtilities/Properties/AssemblyInfo.cs +++ b/src/Microsoft.AspNet.WebUtilities/Properties/AssemblyInfo.cs @@ -2,5 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Reflection; +using System.Resources; -[assembly: AssemblyMetadata("Serviceable", "True")] \ No newline at end of file +[assembly: AssemblyMetadata("Serviceable", "True")] +[assembly: NeutralResourcesLanguage("en-us")] \ No newline at end of file diff --git a/src/Microsoft.Framework.Primitives/Properties/AssemblyInfo.cs b/src/Microsoft.Framework.Primitives/Properties/AssemblyInfo.cs new file mode 100644 index 0000000000..b2437d9ad6 --- /dev/null +++ b/src/Microsoft.Framework.Primitives/Properties/AssemblyInfo.cs @@ -0,0 +1,8 @@ +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +using System.Reflection; +using System.Resources; + +[assembly: AssemblyMetadata("Serviceable", "True")] +[assembly: NeutralResourcesLanguage("en-us")] \ No newline at end of file diff --git a/src/Microsoft.Framework.Primitives/project.json b/src/Microsoft.Framework.Primitives/project.json index 3b870f7173..c504f822d2 100644 --- a/src/Microsoft.Framework.Primitives/project.json +++ b/src/Microsoft.Framework.Primitives/project.json @@ -16,7 +16,8 @@ "dnx451": { }, "dnxcore50": { "dependencies": { - "System.Collections": "4.0.11-beta-*" + "System.Collections": "4.0.11-beta-*", + "System.Resources.ResourceManager": "4.0.1-beta-" } } } diff --git a/src/Microsoft.Framework.WebEncoders.Core/Properties/AssemblyInfo.cs b/src/Microsoft.Framework.WebEncoders.Core/Properties/AssemblyInfo.cs index c09b9bdbba..48510ed635 100644 --- a/src/Microsoft.Framework.WebEncoders.Core/Properties/AssemblyInfo.cs +++ b/src/Microsoft.Framework.WebEncoders.Core/Properties/AssemblyInfo.cs @@ -1,9 +1,10 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using System; using System.Reflection; +using System.Resources; using System.Runtime.CompilerServices; [assembly: InternalsVisibleTo("Microsoft.Framework.WebEncoders.Tests")] [assembly: AssemblyMetadata("Serviceable", "True")] +[assembly: NeutralResourcesLanguage("en-us")] \ No newline at end of file diff --git a/src/Microsoft.Framework.WebEncoders.Core/project.json b/src/Microsoft.Framework.WebEncoders.Core/project.json index 7cee739e6e..b2ad614378 100644 --- a/src/Microsoft.Framework.WebEncoders.Core/project.json +++ b/src/Microsoft.Framework.WebEncoders.Core/project.json @@ -20,6 +20,7 @@ "System.Diagnostics.Debug": "4.0.11-beta-*", "System.IO": "4.0.11-beta-*", "System.Reflection": "4.0.10-*", + "System.Resources.ResourceManager": "4.0.1-beta-", "System.Runtime.Extensions": "4.0.11-beta-*", "System.Threading": "4.0.11-beta-*" } diff --git a/src/Microsoft.Framework.WebEncoders/Properties/AssemblyInfo.cs b/src/Microsoft.Framework.WebEncoders/Properties/AssemblyInfo.cs index 025a94598c..b2437d9ad6 100644 --- a/src/Microsoft.Framework.WebEncoders/Properties/AssemblyInfo.cs +++ b/src/Microsoft.Framework.WebEncoders/Properties/AssemblyInfo.cs @@ -2,5 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Reflection; +using System.Resources; -[assembly: AssemblyMetadata("Serviceable", "True")] \ No newline at end of file +[assembly: AssemblyMetadata("Serviceable", "True")] +[assembly: NeutralResourcesLanguage("en-us")] \ No newline at end of file diff --git a/src/Microsoft.Net.Http.Headers/Properties/AssemblyInfo.cs b/src/Microsoft.Net.Http.Headers/Properties/AssemblyInfo.cs index 025a94598c..b2437d9ad6 100644 --- a/src/Microsoft.Net.Http.Headers/Properties/AssemblyInfo.cs +++ b/src/Microsoft.Net.Http.Headers/Properties/AssemblyInfo.cs @@ -2,5 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Reflection; +using System.Resources; -[assembly: AssemblyMetadata("Serviceable", "True")] \ No newline at end of file +[assembly: AssemblyMetadata("Serviceable", "True")] +[assembly: NeutralResourcesLanguage("en-us")] \ No newline at end of file