Updated to use the new target framework in project.json

This commit is contained in:
David Fowler 2014-09-04 02:02:40 -07:00
parent b6fb7ac7df
commit 34add2249e
71 changed files with 127 additions and 127 deletions

View File

@ -1,4 +1,4 @@
#if NET45 #if ASPNET50
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
@ -105,4 +105,4 @@ namespace MvcSample.Web
} }
} }
} }
#endif #endif

View File

@ -1,4 +1,4 @@
#if NET45 #if ASPNET50
using System; using System;
using System.Collections.Concurrent; using System.Collections.Concurrent;
using Autofac; using Autofac;
@ -74,4 +74,4 @@ namespace MvcSample.Web
} }
} }
} }
#endif #endif

View File

@ -6,7 +6,7 @@ using Microsoft.Framework.DependencyInjection;
using MvcSample.Web.Filters; using MvcSample.Web.Filters;
using MvcSample.Web.Services; using MvcSample.Web.Services;
#if NET45 #if ASPNET50
using Autofac; using Autofac;
using Microsoft.Framework.DependencyInjection.Autofac; using Microsoft.Framework.DependencyInjection.Autofac;
using Microsoft.Framework.OptionsModel; using Microsoft.Framework.OptionsModel;
@ -19,7 +19,7 @@ namespace MvcSample.Web
public void Configure(IBuilder app) public void Configure(IBuilder app)
{ {
app.UseFileServer(); app.UseFileServer();
#if NET45 #if ASPNET50
var configuration = new Configuration() var configuration = new Configuration()
.AddJsonFile(@"App_Data\config.json") .AddJsonFile(@"App_Data\config.json")
.AddEnvironmentVariables(); .AddEnvironmentVariables();

View File

@ -19,7 +19,7 @@
}, },
"commands": { "web": "Microsoft.AspNet.Hosting server=Microsoft.AspNet.Server.WebListener server.urls=http://localhost:5001" }, "commands": { "web": "Microsoft.AspNet.Hosting server=Microsoft.AspNet.Server.WebListener server.urls=http://localhost:5001" },
"frameworks": { "frameworks": {
"net45": { "aspnet50": {
"dependencies": { "dependencies": {
"System.ComponentModel.DataAnnotations": "", "System.ComponentModel.DataAnnotations": "",
"Microsoft.Framework.DependencyInjection.Autofac": "1.0.0-*", "Microsoft.Framework.DependencyInjection.Autofac": "1.0.0-*",

View File

@ -8,7 +8,7 @@
"System.Runtime" : "4.0.20.0" "System.Runtime" : "4.0.20.0"
}, },
"frameworks": { "frameworks": {
"net45": {}, "aspnet50": {},
"aspnetcore50": { "aspnetcore50": {
"dependencies": { "dependencies": {
"System.Text.Encoding.Extensions": "4.0.10.0" "System.Text.Encoding.Extensions": "4.0.10.0"

View File

@ -11,7 +11,7 @@ namespace Microsoft.AspNet.Mvc
{ {
var response = context.HttpContext.Response; var response = context.HttpContext.Response;
#if NET45 #if ASPNET50
response.StatusCode = (int)HttpStatusCode.NoContent; response.StatusCode = (int)HttpStatusCode.NoContent;
#else #else
response.StatusCode = 204; response.StatusCode = 204;

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System; using System;
@ -102,7 +102,7 @@ namespace Microsoft.AspNet.Mvc
{ {
return _innerStream.ReadAsync(buffer, offset, count, cancellationToken); return _innerStream.ReadAsync(buffer, offset, count, cancellationToken);
} }
#if NET45 #if ASPNET50
/// <inheritdoc /> /// <inheritdoc />
public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, public override IAsyncResult BeginRead(byte[] buffer, int offset, int count,
AsyncCallback callback, object state) AsyncCallback callback, object state)
@ -157,7 +157,7 @@ namespace Microsoft.AspNet.Mvc
{ {
return _innerStream.WriteAsync(buffer, offset, count, cancellationToken); return _innerStream.WriteAsync(buffer, offset, count, cancellationToken);
} }
#if NET45 #if ASPNET50
/// <inheritdoc /> /// <inheritdoc />
public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count,
AsyncCallback callback, object state) AsyncCallback callback, object state)
@ -176,7 +176,7 @@ namespace Microsoft.AspNet.Mvc
{ {
_innerStream.WriteByte(value); _innerStream.WriteByte(value);
} }
#if NET45 #if ASPNET50
/// <inheritdoc /> /// <inheritdoc />
public override void Close() public override void Close()
{ {

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System; using System;
@ -14,7 +14,7 @@ namespace Microsoft.AspNet.Mvc
{ {
public static readonly int DefaultMaxDepth = 32; public static readonly int DefaultMaxDepth = 32;
#if NET45 #if ASPNET50
public static readonly XsdDataContractExporter XsdDataContractExporter = new XsdDataContractExporter(); public static readonly XsdDataContractExporter XsdDataContractExporter = new XsdDataContractExporter();
#endif #endif
@ -24,7 +24,7 @@ namespace Microsoft.AspNet.Mvc
/// <returns>XmlReaderQuotas with default values</returns> /// <returns>XmlReaderQuotas with default values</returns>
public static XmlDictionaryReaderQuotas GetDefaultXmlReaderQuotas() public static XmlDictionaryReaderQuotas GetDefaultXmlReaderQuotas()
{ {
#if NET45 #if ASPNET50
return new XmlDictionaryReaderQuotas() return new XmlDictionaryReaderQuotas()
{ {
MaxArrayLength = Int32.MaxValue, MaxArrayLength = Int32.MaxValue,
@ -38,4 +38,4 @@ namespace Microsoft.AspNet.Mvc
#endif #endif
} }
} }
} }

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System; using System;
@ -42,7 +42,7 @@ namespace Microsoft.AspNet.Mvc
DataContractSerializer serializer = null; DataContractSerializer serializer = null;
try try
{ {
#if NET45 #if ASPNET50
// Verify that type is a valid data contract by forcing the serializer to try to create a data contract // Verify that type is a valid data contract by forcing the serializer to try to create a data contract
FormattingUtilities.XsdDataContractExporter.GetRootElementName(type); FormattingUtilities.XsdDataContractExporter.GetRootElementName(type);
#endif #endif
@ -76,4 +76,4 @@ namespace Microsoft.AspNet.Mvc
return Task.FromResult(true); return Task.FromResult(true);
} }
} }
} }

View File

@ -49,7 +49,7 @@ namespace Microsoft.AspNet.Mvc
KeyHandling = keyHandling; KeyHandling = keyHandling;
break; break;
default: default:
#if NET45 #if ASPNET50
throw new InvalidEnumArgumentException("keyHandling", (int)keyHandling, typeof (RouteKeyHandling)); throw new InvalidEnumArgumentException("keyHandling", (int)keyHandling, typeof (RouteKeyHandling));
#else #else
throw new ArgumentOutOfRangeException("keyHandling"); throw new ArgumentOutOfRangeException("keyHandling");

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System; using System;
@ -166,7 +166,7 @@ namespace Microsoft.AspNet.Mvc.Routing
{ {
// We'd already have failed before getting here. The RouteDataActionConstraint constructor // We'd already have failed before getting here. The RouteDataActionConstraint constructor
// would throw. // would throw.
#if NET45 #if ASPNET50
throw new InvalidEnumArgumentException( throw new InvalidEnumArgumentException(
"item", "item",
(int)constraint.KeyHandling, (int)constraint.KeyHandling,
@ -184,4 +184,4 @@ namespace Microsoft.AspNet.Mvc.Routing
} }
} }
} }
} }

View File

@ -19,7 +19,7 @@
"Newtonsoft.Json": "5.0.8" "Newtonsoft.Json": "5.0.8"
}, },
"frameworks": { "frameworks": {
"net45": { "aspnet50": {
"dependencies": { "dependencies": {
"System.Xml": "" "System.Xml": ""
} }

View File

@ -2,7 +2,7 @@
"version": "1.0.0-*", "version": "1.0.0-*",
"dependencies": {}, "dependencies": {},
"frameworks": { "frameworks": {
"net45": {}, "aspnet50": {},
"aspnetcore50": { "aspnetcore50": {
"dependencies": { "dependencies": {
"System.Collections": "4.0.10.0", "System.Collections": "4.0.10.0",

View File

@ -12,7 +12,7 @@
"Newtonsoft.Json": "5.0.8" "Newtonsoft.Json": "5.0.8"
}, },
"frameworks": { "frameworks": {
"net45": { "aspnet50": {
"dependencies": { "dependencies": {
"System.Xml": "", "System.Xml": "",
"System.ComponentModel.DataAnnotations": "", "System.ComponentModel.DataAnnotations": "",

View File

@ -10,7 +10,7 @@
"Microsoft.Framework.Runtime.Interfaces": "1.0.0-*" "Microsoft.Framework.Runtime.Interfaces": "1.0.0-*"
}, },
"frameworks": { "frameworks": {
"net45": { "aspnet50": {
"dependencies": { "dependencies": {
"System.Collections": "", "System.Collections": "",
"System.Runtime": "", "System.Runtime": "",

View File

@ -16,7 +16,7 @@
"Microsoft.Framework.Runtime.Interfaces": "1.0.0-*" "Microsoft.Framework.Runtime.Interfaces": "1.0.0-*"
}, },
"frameworks": { "frameworks": {
"net45": { "aspnet50": {
"dependencies": { "dependencies": {
"System.Collections": "", "System.Collections": "",
"System.Runtime": "", "System.Runtime": "",

View File

@ -18,7 +18,7 @@
"Microsoft.Framework.DependencyInjection" : "1.0.0-*" "Microsoft.Framework.DependencyInjection" : "1.0.0-*"
}, },
"frameworks": { "frameworks": {
"net45": {}, "aspnet50": {},
"aspnetcore50": { "aspnetcore50": {
"dependencies": { "dependencies": {
"System.Diagnostics.Debug": "4.0.10.0", "System.Diagnostics.Debug": "4.0.10.0",

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

View File

@ -9,7 +9,7 @@ using System.Text;
using Microsoft.AspNet.Mvc.ModelBinding; using Microsoft.AspNet.Mvc.ModelBinding;
using Microsoft.AspNet.Routing; using Microsoft.AspNet.Routing;
using Microsoft.AspNet.Testing; using Microsoft.AspNet.Testing;
#if NET45 #if ASPNET50
using Moq; using Moq;
#endif #endif
using Xunit; using Xunit;
@ -542,7 +542,7 @@ namespace Microsoft.AspNet.Mvc.Test
// These tests share code with the ActionFilterAttribute tests because the various filter // These tests share code with the ActionFilterAttribute tests because the various filter
// implementations need to behave the same way. // implementations need to behave the same way.
#if NET45 #if ASPNET50
[Fact] [Fact]
public async Task Controller_ActionFilter_SettingResult_ShortCircuits() public async Task Controller_ActionFilter_SettingResult_ShortCircuits()
{ {

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using System; using System;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc.ModelBinding; using Microsoft.AspNet.Mvc.ModelBinding;
@ -148,4 +148,4 @@ namespace Microsoft.AspNet.Mvc.Core.Test
} }
} }
} }
#endif #endif

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using System; using System;
using System.IO; using System.IO;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -140,4 +140,4 @@ namespace Microsoft.AspNet.Mvc
} }
} }
} }
#endif #endif

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using System.Collections.Generic; using System.Collections.Generic;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
@ -265,4 +265,4 @@ namespace Microsoft.AspNet.Mvc.Test
} }
} }
} }
#endif #endif

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using System.Threading.Tasks; using System.Threading.Tasks;
using Moq; using Moq;
using Xunit; using Xunit;
@ -34,4 +34,4 @@ namespace Microsoft.AspNet.Mvc.Test
} }
} }
} }
#endif #endif

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using System.IO; using System.IO;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -88,4 +88,4 @@ namespace Microsoft.AspNet.Mvc
} }
} }
} }
#endif #endif

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
@ -175,4 +175,4 @@ namespace Microsoft.AspNet.Mvc
} }
} }
} }
#endif #endif

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using System; using System;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
@ -349,4 +349,4 @@ namespace Microsoft.AspNet.Mvc
} }
} }
} }
#endif #endif

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using System; using System;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
@ -355,4 +355,4 @@ namespace Microsoft.AspNet.Mvc
} }
} }
} }
#endif #endif

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
@ -195,4 +195,4 @@ namespace Microsoft.AspNet.Routing.Tests
} }
} }
} }
#endif #endif

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using Microsoft.AspNet.Mvc.OptionDescriptors; using Microsoft.AspNet.Mvc.OptionDescriptors;
@ -71,4 +71,4 @@ namespace Microsoft.AspNet.Mvc.Core.Test
} }
} }
} }
#endif #endif

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
@ -135,4 +135,4 @@ namespace Microsoft.AspNet.Mvc.Core.Test
} }
} }
} }
#endif #endif

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using Microsoft.AspNet.Routing; using Microsoft.AspNet.Routing;
using Microsoft.AspNet.Routing.Template; using Microsoft.AspNet.Routing.Template;
using Microsoft.Framework.OptionsModel; using Microsoft.Framework.OptionsModel;
@ -72,4 +72,4 @@ namespace Microsoft.AspNet.Mvc.Routing
} }
} }
} }
#endif #endif

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using Microsoft.AspNet.Routing; using Microsoft.AspNet.Routing;
using Microsoft.Framework.OptionsModel; using Microsoft.Framework.OptionsModel;
using Moq; using Moq;
@ -183,4 +183,4 @@ namespace Microsoft.AspNet.Mvc.Routing
} }
} }
} }
#endif #endif

View File

@ -21,6 +21,6 @@
"test": "Xunit.KRunner" "test": "Xunit.KRunner"
}, },
"frameworks": { "frameworks": {
"net45": { } "aspnet50": { }
} }
} }

View File

@ -1,4 +1,4 @@
#if NET45 #if ASPNET50
using System; using System;
using System.Net.Http; using System.Net.Http;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -36,4 +36,4 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
} }
} }
} }
#endif #endif

View File

@ -30,7 +30,7 @@
"test": "Xunit.KRunner" "test": "Xunit.KRunner"
}, },
"frameworks": { "frameworks": {
"net45": { "aspnet50": {
"dependencies": { "dependencies": {
"AutofacWebSite": "" "AutofacWebSite": ""
} }

View File

@ -9,7 +9,7 @@
"test": "Xunit.KRunner" "test": "Xunit.KRunner"
}, },
"configurations": { "configurations": {
"net45": { "aspnet50": {
"dependencies": { "dependencies": {
"System.Runtime": "4.0.20.0" "System.Runtime": "4.0.20.0"
} }

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using System.Threading.Tasks; using System.Threading.Tasks;
using Moq; using Moq;
using Xunit; using Xunit;

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using System; using System;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -125,4 +125,4 @@ namespace Microsoft.AspNet.Mvc.ModelBinding.Test
} }
} }
} }
#endif #endif

View File

@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.Globalization; using System.Globalization;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
#if NET45 #if ASPNET50
using Moq; using Moq;
#endif #endif
using Xunit; using Xunit;
@ -14,7 +14,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding.Test
{ {
public class CollectionModelBinderTest public class CollectionModelBinderTest
{ {
#if NET45 #if ASPNET50
[Fact] [Fact]
public async Task BindComplexCollectionFromIndexes_FiniteIndexes() public async Task BindComplexCollectionFromIndexes_FiniteIndexes()
{ {
@ -124,7 +124,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding.Test
Assert.Null(boundCollection); Assert.Null(boundCollection);
} }
#if NET45 #if ASPNET50
[Fact] [Fact]
public async Task BindSimpleCollection_SubBindingSucceeds() public async Task BindSimpleCollection_SubBindingSucceeds()
{ {

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using System.Collections.Generic; using System.Collections.Generic;
using System.Threading.Tasks; using System.Threading.Tasks;
using Moq; using Moq;

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
@ -962,4 +962,4 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
} }
} }
} }
#endif #endif

View File

@ -183,7 +183,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
// GetMetadataForType // GetMetadataForType
#if NET45 // No ReadOnlyAttribute in K #if ASPNET50 // No ReadOnlyAttribute in K
[Fact] [Fact]
public void GetMetadataForTypeIncludesAttributesOnType() public void GetMetadataForTypeIncludesAttributesOnType()
{ {
@ -235,7 +235,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
public string Value { get; set; } public string Value { get; set; }
} }
#if NET45 // No [ReadOnly] in K #if ASPNET50 // No [ReadOnly] in K
[ReadOnly(true)] [ReadOnly(true)]
private class TypeModel private class TypeModel
{ {

View File

@ -4,7 +4,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
#if NET45 #if ASPNET50
using Moq; using Moq;
#endif #endif
using Xunit; using Xunit;
@ -41,7 +41,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
} }
} }
#if NET45 #if ASPNET50
// Constructor // Constructor
[Fact] [Fact]
@ -90,7 +90,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
{ {
} }
#if NET45 #if ASPNET50
[Theory] [Theory]
[InlineData(typeof(string))] [InlineData(typeof(string))]
[InlineData(typeof(Nullable<int>))] [InlineData(typeof(Nullable<int>))]
@ -331,7 +331,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
Assert.Equal("displayName", result); Assert.Equal("displayName", result);
} }
#if NET45 #if ASPNET50
[Fact] [Fact]
public void ReturnsPropertyNameWhenSetAndDisplayNameIsNull() public void ReturnsPropertyNameWhenSetAndDisplayNameIsNull()
{ {

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using Moq; using Moq;
using Xunit; using Xunit;
@ -38,4 +38,4 @@ namespace Microsoft.AspNet.Mvc.ModelBinding.Test
} }
} }
} }
#endif #endif

View File

@ -5,7 +5,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.Linq; using System.Linq;
#if NET45 #if ASPNET50
using Moq; using Moq;
#endif #endif
using Xunit; using Xunit;
@ -16,7 +16,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
{ {
private readonly DataAnnotationsModelMetadataProvider _metadataProvider = new DataAnnotationsModelMetadataProvider(); private readonly DataAnnotationsModelMetadataProvider _metadataProvider = new DataAnnotationsModelMetadataProvider();
#if NET45 #if ASPNET50
[Fact] [Fact]
public void GetValidators_ReturnsValidatorForIValidatableObject() public void GetValidators_ReturnsValidatorForIValidatableObject()
{ {
@ -164,7 +164,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
// Default IValidatableObject adapter factory // Default IValidatableObject adapter factory
#if NET45 #if ASPNET50
[Fact] [Fact]
public void IValidatableObjectGetsAValidator() public void IValidatableObjectGetsAValidator()
{ {

View File

@ -4,7 +4,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.Linq; using System.Linq;
#if NET45 #if ASPNET50
using Moq; using Moq;
using Moq.Protected; using Moq.Protected;
#endif #endif
@ -49,7 +49,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
} }
} }
#if NET45 #if ASPNET50
[Theory] [Theory]
[MemberData(nameof(ValidateSetsMemberNamePropertyDataSet))] [MemberData(nameof(ValidateSetsMemberNamePropertyDataSet))]
public void ValidateSetsMemberNamePropertyOfValidationContextForProperties(ModelMetadata metadata, public void ValidateSetsMemberNamePropertyOfValidationContextForProperties(ModelMetadata metadata,
@ -222,4 +222,4 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
public string Name { get; set; } public string Name { get; set; }
} }
} }
} }

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.Linq; using System.Linq;
@ -350,4 +350,4 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
} }
} }
} }
#endif #endif

View File

@ -1,7 +1,7 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
#if NET45 #if ASPNET50
using System.Collections.Generic; using System.Collections.Generic;
using System.Globalization; using System.Globalization;
using System.Threading.Tasks; using System.Threading.Tasks;

View File

@ -4,7 +4,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Globalization; using System.Globalization;
using Microsoft.AspNet.Http; using Microsoft.AspNet.Http;
#if NET45 #if ASPNET50
using Moq; using Moq;
#endif #endif
using Xunit; using Xunit;
@ -17,7 +17,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding.Test
{ {
private readonly QueryStringValueProviderFactory _factory = new QueryStringValueProviderFactory(); private readonly QueryStringValueProviderFactory _factory = new QueryStringValueProviderFactory();
#if NET45 #if ASPNET50
[Fact] [Fact]
public void GetValueProvider_ReturnsQueryStringValueProviderInstaceWithInvariantCulture() public void GetValueProvider_ReturnsQueryStringValueProviderInstaceWithInvariantCulture()
{ {

View File

@ -19,7 +19,7 @@
"test": "Xunit.KRunner" "test": "Xunit.KRunner"
}, },
"frameworks": { "frameworks": {
"net45": { "aspnet50": {
"dependencies": { "dependencies": {
"System.ComponentModel.DataAnnotations": "", "System.ComponentModel.DataAnnotations": "",
"System.Reflection": "", "System.Reflection": "",

View File

@ -12,7 +12,7 @@
"test": "Xunit.KRunner" "test": "Xunit.KRunner"
}, },
"frameworks": { "frameworks": {
"net45": { "aspnet50": {
"dependencies": { "dependencies": {
"Moq": "4.2.1312.1622" "Moq": "4.2.1312.1622"
} }

View File

@ -16,7 +16,7 @@
"test": "Xunit.KRunner" "test": "Xunit.KRunner"
}, },
"frameworks": { "frameworks": {
"net45": { "aspnet50": {
"dependencies": { "dependencies": {
"Moq": "4.2.1312.1622", "Moq": "4.2.1312.1622",
"System.Reflection": "" "System.Reflection": ""

View File

@ -10,6 +10,6 @@
"test": "Xunit.KRunner" "test": "Xunit.KRunner"
}, },
"frameworks": { "frameworks": {
"net45": { } "aspnet50": { }
} }
} }

View File

@ -5,7 +5,7 @@
"Microsoft.AspNet.Mvc.TestConfiguration": "" "Microsoft.AspNet.Mvc.TestConfiguration": ""
}, },
"frameworks": { "frameworks": {
"net45": { }, "aspnet50": { },
"aspnetcore50": { } "aspnetcore50": { }
} }
} }

View File

@ -4,7 +4,7 @@
"Microsoft.AspNet.Mvc.TestConfiguration": "" "Microsoft.AspNet.Mvc.TestConfiguration": ""
}, },
"frameworks": { "frameworks": {
"net45": { }, "aspnet50": { },
"aspnetcore50": { } "aspnetcore50": { }
} }
} }

View File

@ -7,7 +7,7 @@
"Microsoft.AspNet.Security.Cookies": "1.0.0-*" "Microsoft.AspNet.Security.Cookies": "1.0.0-*"
}, },
"frameworks": { "frameworks": {
"net45": { }, "aspnet50": { },
"aspnetcore50": { } "aspnetcore50": { }
} }
} }

View File

@ -6,6 +6,6 @@
"Autofac": "3.3.0" "Autofac": "3.3.0"
}, },
"frameworks" : { "frameworks" : {
"net45" : { } "aspnet50" : { }
} }
} }

View File

@ -6,7 +6,7 @@
"Microsoft.Framework.ConfigurationModel": "" "Microsoft.Framework.ConfigurationModel": ""
}, },
"frameworks": { "frameworks": {
"net45": { }, "aspnet50": { },
"aspnetcore50": { } "aspnetcore50": { }
} }
} }

View File

@ -6,7 +6,7 @@
"Microsoft.Framework.ConfigurationModel": "" "Microsoft.Framework.ConfigurationModel": ""
}, },
"frameworks": { "frameworks": {
"net45": { }, "aspnet50": { },
"aspnetcore50": { } "aspnetcore50": { }
} }
} }

View File

@ -5,7 +5,7 @@
"Microsoft.AspNet.Mvc.TestConfiguration": "" "Microsoft.AspNet.Mvc.TestConfiguration": ""
}, },
"frameworks": { "frameworks": {
"net45": { }, "aspnet50": { },
"aspnetcore50": { } "aspnetcore50": { }
} }
} }

View File

@ -4,7 +4,7 @@
"Microsoft.AspNet.Mvc.TestConfiguration": "" "Microsoft.AspNet.Mvc.TestConfiguration": ""
}, },
"configurations": { "configurations": {
"net45": { }, "aspnet50": { },
"aspnetcore50": { } "aspnetcore50": { }
} }
} }

View File

@ -6,7 +6,7 @@
"Microsoft.Framework.ConfigurationModel.Json": "1.0.0-*" "Microsoft.Framework.ConfigurationModel.Json": "1.0.0-*"
}, },
"frameworks": { "frameworks": {
"net45": { }, "aspnet50": { },
"aspnetcore50": { } "aspnetcore50": { }
} }
} }

View File

@ -5,7 +5,7 @@
"Microsoft.Framework.DependencyInjection": "1.0.0-*" "Microsoft.Framework.DependencyInjection": "1.0.0-*"
}, },
"frameworks" : { "frameworks" : {
"net45" : { }, "aspnet50" : { },
"aspnetcore50" : { } "aspnetcore50" : { }
} }
} }

View File

@ -4,7 +4,7 @@
"Microsoft.AspNet.Mvc.TestConfiguration": "" "Microsoft.AspNet.Mvc.TestConfiguration": ""
}, },
"configurations": { "configurations": {
"net45": { }, "aspnet50": { },
"aspnetcore50": { } "aspnetcore50": { }
} }
} }

View File

@ -5,7 +5,7 @@
"Microsoft.AspNet.Mvc.TestConfiguration": "" "Microsoft.AspNet.Mvc.TestConfiguration": ""
}, },
"frameworks": { "frameworks": {
"net45": { }, "aspnet50": { },
"aspnetcore50": { } "aspnetcore50": { }
} }
} }

View File

@ -5,7 +5,7 @@
"Microsoft.AspNet.Server.IIS": "1.0.0-*" "Microsoft.AspNet.Server.IIS": "1.0.0-*"
}, },
"frameworks": { "frameworks": {
"net45": { }, "aspnet50": { },
"aspnetcore50": { } "aspnetcore50": { }
} }
} }

View File

@ -6,7 +6,7 @@
"Microsoft.Framework.ConfigurationModel": "" "Microsoft.Framework.ConfigurationModel": ""
}, },
"configurations": { "configurations": {
"net45": { }, "aspnet50": { },
"aspnetcore50": { } "aspnetcore50": { }
} }
} }