From a626896b80db5f3ac1433354232abb9134294048 Mon Sep 17 00:00:00 2001 From: dougbu Date: Thu, 1 May 2014 19:01:53 -0700 Subject: [PATCH] =?UTF-8?q?Correcting=20WebFx=20failure=20on=20CI=20machin?= =?UTF-8?q?es=20-=20a=20single=20test=20is=20failing=20under=20CoreCLR=20o?= =?UTF-8?q?nly=20-=20using=20the=20resource-related=20properties=20of=20a?= =?UTF-8?q?=20`ValidationAttribute`=20in=20=20=20precisely=20one=20place?= =?UTF-8?q?=20=E2=80=93=20the=20failing=20test.=20-=20in=20.NET=20the=20Da?= =?UTF-8?q?taAnnotations=20assembly=20is=20somehow=20able=20to=20get=20acc?= =?UTF-8?q?ess=20to=20=20=20`internal`=20resources=20-=20that=20doesn?= =?UTF-8?q?=E2=80=99t=20work=20under=20CoreCLR=20-=20short-term=20fix=20is?= =?UTF-8?q?=20to=20add=20an=20`[InternalsVisibleTo]`=20in=20the=20test=20?= =?UTF-8?q?=20=20assembly,=20giving=20DataAnnotations=20access=20to=20the?= =?UTF-8?q?=20resource?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Will also file a bug in the DataAnnotations repo --- .../Properties/AssemblyInfo.cs | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/Microsoft.AspNet.Mvc.ModelBinding.Test/Properties/AssemblyInfo.cs diff --git a/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Properties/AssemblyInfo.cs b/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Properties/AssemblyInfo.cs new file mode 100644 index 0000000000..beb7da05b1 --- /dev/null +++ b/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Properties/AssemblyInfo.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Open Technologies, Inc. +// All Rights Reserved +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR +// CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING +// WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF +// TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR +// NON-INFRINGEMENT. +// See the Apache 2 License for the specific language governing +// permissions and limitations under the License. + +using System.Runtime.CompilerServices; + +[assembly: InternalsVisibleTo("Microsoft.ComponentModel.DataAnnotations")]