Update aspnet50/aspnetcore50 => dnx451/dnxcore50.

This commit is contained in:
N. Taylor Mullen 2015-03-08 12:52:24 -07:00
parent c483b846e4
commit e829ba7646
149 changed files with 394 additions and 394 deletions

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.
#if ASPNET50
#if DNX451
using System;
using System.Collections.Generic;
using System.Linq;

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.
#if ASPNET50
#if DNX451
using System;
using System.Collections.Concurrent;
using Autofac;

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.
using System;
@ -13,7 +13,7 @@ using Microsoft.Framework.DependencyInjection;
using MvcSample.Web.Filters;
using MvcSample.Web.Services;
#if ASPNET50
#if DNX451
using Autofac;
using Microsoft.Framework.DependencyInjection.Autofac;
#endif
@ -27,7 +27,7 @@ namespace MvcSample.Web
app.UseStatusCodePages();
app.UseFileServer();
#if ASPNET50
#if DNX451
// Set up configuration sources.
var configuration = new Configuration()
.AddJsonFile("config.json")

View File

@ -1,4 +1,4 @@
{
{
"commands": {
"web": "Microsoft.AspNet.Hosting server=Microsoft.AspNet.Server.WebListener server.urls=http://localhost:5001",
"kestrel": "Microsoft.AspNet.Hosting --server Kestrel --server.urls http://localhost:5000"
@ -19,13 +19,13 @@
"Microsoft.Framework.NotNullAttribute.Internal": { "type": "build", "version": "1.0.0-*" }
},
"frameworks": {
"aspnet50": {
"dnx451": {
"dependencies": {
"Microsoft.Framework.DependencyInjection.Autofac": "1.0.0-*",
"Microsoft.Framework.ConfigurationModel.Json": "1.0.0-*"
}
},
"aspnetcore50": {
"dnxcore50": {
"dependencies": { }
}
},
@ -42,4 +42,4 @@
"**.vspscc"
],
"webroot": "wwwroot"
}
}

View File

@ -19,8 +19,8 @@
"Microsoft.Framework.PropertyHelper.Internal": { "version": "1.0.0-*", "type": "build" }
},
"frameworks": {
"aspnet50": { },
"aspnetcore50": { }
"dnx451": { },
"dnxcore50": { }
},
"webroot": "wwwroot"
}

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.
using System;
@ -11,8 +11,8 @@ namespace Microsoft.AspNet.Mvc
internal static class TypeExtensions
{
// NOTE: Do not make #105 worse! Do not add new extension methods that conflict w/ .NET 4.5 methods. The
// exising NETFX_CORE || ASPNETCORE50 methods should go away (soon).
#if NETFX_CORE || ASPNETCORE50
// exising NETFX_CORE || DNXCORE50 methods should go away (soon).
#if NETFX_CORE || DNXCORE50
private static bool EqualTo([NotNull] this Type[] t1, [NotNull] Type[] t2)
{
if (t1.Length != t2.Length)
@ -54,7 +54,7 @@ namespace Microsoft.AspNet.Mvc
queryType.GetInterfaces().FirstOrDefault(matchesInterface);
}
#if NETFX_CORE || ASPNETCORE50
#if NETFX_CORE || DNXCORE50
public static Type[] GetGenericArguments([NotNull] this Type type)
{
return type.GetTypeInfo().GenericTypeArguments;

View File

@ -1,12 +1,12 @@
{
{
"version": "6.0.0-*",
"shared": "*.cs",
"dependencies": {
},
"frameworks": {
"net45": { },
"aspnet50": { },
"aspnetcore50": {
"dnx451": { },
"dnxcore50": {
"dependencies": {
"System.ComponentModel.TypeConverter": "4.0.0-beta-*",
"System.Reflection.Extensions": "4.0.0-beta-*",

View File

@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
#if ASPNET50
#if DNX451
using System.Runtime.Serialization;
#endif
@ -11,7 +11,7 @@ namespace Microsoft.AspNet.Mvc
/// <summary>
/// An exception which indicates multiple matches in action selection.
/// </summary>
#if ASPNET50
#if DNX451
[Serializable]
#endif
public class AmbiguousActionException : InvalidOperationException
@ -21,11 +21,11 @@ namespace Microsoft.AspNet.Mvc
{
}
#if ASPNET50
#if DNX451
protected AmbiguousActionException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
#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.
#if ASPNET50
#if DNX451
using System;
#endif
using System.IO;
@ -105,7 +105,7 @@ namespace Microsoft.AspNet.Mvc.Internal
{
return _innerStream.ReadAsync(buffer, offset, count, cancellationToken);
}
#if ASPNET50
#if DNX451
/// <inheritdoc />
public override IAsyncResult BeginRead(byte[] buffer, int offset, int count,
AsyncCallback callback, object state)
@ -160,7 +160,7 @@ namespace Microsoft.AspNet.Mvc.Internal
{
return _innerStream.WriteAsync(buffer, offset, count, cancellationToken);
}
#if ASPNET50
#if DNX451
/// <inheritdoc />
public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count,
AsyncCallback callback, object state)
@ -179,7 +179,7 @@ namespace Microsoft.AspNet.Mvc.Internal
{
_innerStream.WriteByte(value);
}
#if ASPNET50
#if DNX451
/// <inheritdoc />
public override void Close()
{

View File

@ -15,7 +15,7 @@ namespace Microsoft.AspNet.Mvc.Logging
public AssemblyValues([NotNull] Assembly inner)
{
AssemblyName = inner.FullName;
#if ASPNET50
#if DNX451
Location = inner.Location;
#endif
IsDynamic = inner.IsDynamic;
@ -26,7 +26,7 @@ namespace Microsoft.AspNet.Mvc.Logging
/// </summary>
public string AssemblyName { get; }
#if ASPNET50
#if DNX451
/// <summary>
/// The location of the assembly. See <see cref="Assembly.Location"/>.
/// </summary>
@ -43,4 +43,4 @@ namespace Microsoft.AspNet.Mvc.Logging
return LogFormatter.FormatLogValues(this);
}
}
}
}

View File

@ -1,9 +1,9 @@
// 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.
using System;
using System.Collections.Generic;
#if ASPNET50
#if DNX451
using System.ComponentModel;
#endif
using System.Diagnostics;
@ -168,7 +168,7 @@ namespace Microsoft.AspNet.Mvc.Routing
{
// We'd already have failed before getting here. The RouteDataActionConstraint constructor
// would throw.
#if ASPNET50
#if DNX451
throw new InvalidEnumArgumentException(
"item",
(int)constraint.KeyHandling,

View File

@ -1,4 +1,4 @@
{
{
"description": "The core runtime components of ASP.NET MVC.",
"version": "6.0.0-*",
"compilationOptions": {
@ -24,8 +24,8 @@
"Microsoft.Framework.WebEncoders": "1.0.0-*"
},
"frameworks": {
"aspnet50": {},
"aspnetcore50": {
"dnx451": {},
"dnxcore50": {
"dependencies": {
"Microsoft.CSharp": "4.0.0-beta-*"
}

View File

@ -1,4 +1,4 @@
{
{
"description": "The ASP.NET MVC model binding components for binding data from a request to an object model.",
"version": "6.0.0-*",
"compilationOptions": {
@ -16,13 +16,13 @@
"Newtonsoft.Json": "6.0.6"
},
"frameworks": {
"aspnet50": {
"dnx451": {
"frameworkAssemblies": {
"System.ComponentModel.DataAnnotations": "",
"System.Runtime.Serialization": ""
}
},
"aspnetcore50": {
"dnxcore50": {
"dependencies": {
"System.Collections.Concurrent": "4.0.10-beta-*",
"System.ComponentModel.Annotations": "4.0.10-beta-*",

View File

@ -1,4 +1,4 @@
{
{
"description": "Design time hosting infrastructure for the ASP.NET MVC Razor view engine.",
"version": "6.0.0-*",
"compilationOptions": {
@ -14,12 +14,12 @@
},
"frameworks": {
"net45": {},
"aspnet50": {
"dnx451": {
"dependencies": {
"Microsoft.Framework.Runtime.Interfaces": "1.0.0-*"
}
},
"aspnetcore50": {
"dnxcore50": {
"dependencies": {
"System.Collections.Concurrent": "4.0.10-beta-*",
"Microsoft.Framework.Runtime.Interfaces": "1.0.0-*"

View File

@ -1,4 +1,4 @@
{
{
"description": "The Razor view engine for ASP.NET MVC.",
"version": "6.0.0-*",
"compilationOptions": {
@ -17,7 +17,7 @@
"Microsoft.Framework.Runtime.Roslyn.Interfaces": "1.0.0-*"
},
"frameworks": {
"aspnet50": {
"dnx451": {
"frameworkAssemblies": {
"System.Collections": "",
"System.IO": "",
@ -26,7 +26,7 @@
"System.Threading.Tasks": ""
}
},
"aspnetcore50": {
"dnxcore50": {
"dependencies": {
"System.Threading.Tasks.Parallel": "4.0.0-beta-*"
}

View File

@ -1,4 +1,4 @@
{
{
"description": "Contains a default set of Tag Helpers for building ASP.NET MVC applications.",
"version": "6.0.0-*",
"compilationOptions": {
@ -15,7 +15,7 @@
"System.Security.Cryptography.Hashing.Algorithms": "4.0.0-beta-*"
},
"frameworks": {
"aspnet50": { },
"aspnetcore50": { }
"dnx451": { },
"dnxcore50": { }
}
}
}

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNETCORE50
#if DNXCORE50
using System.Collections.ObjectModel;
using System.Diagnostics;
@ -293,4 +293,4 @@ namespace System.Collections.Generic
}
}
}
#endif
#endif

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNETCORE50
#if DNXCORE50
using Microsoft.AspNet.Mvc;
using System.Collections.Generic;

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNETCORE50
#if DNXCORE50
using System.Collections.Generic;
using System.Collections.ObjectModel;
@ -491,4 +491,4 @@ namespace System.Net.Http.Formatting
}
}
}
#endif
#endif

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNETCORE50
#if DNXCORE50
using Microsoft.AspNet.WebUtilities;
using System;
@ -43,4 +43,4 @@ namespace System.Net.Http.Formatting
}
}
#endif
#endif

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNETCORE50
#if DNXCORE50
using System.Collections.Generic;
using System.Globalization;
@ -241,4 +241,4 @@ namespace System.Net.Http
}
}
}
#endif
#endif

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNETCORE50
#if DNXCORE50
using System.Collections.Generic;
using System.Net.Http.Headers;

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNETCORE50
#if DNXCORE50
using System.Collections.Generic;
@ -31,4 +31,4 @@ namespace System.Collections.ObjectModel
}
}
}
#endif
#endif

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNETCORE50
#if DNXCORE50
using System.Net.Http.Headers;
@ -109,4 +109,4 @@ namespace System.Net.Http.Formatting
}
}
}
#endif
#endif

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNETCORE50
#if DNXCORE50
using System.Net.Http.Headers;
@ -57,4 +57,4 @@ namespace System.Net.Http.Formatting
public MediaTypeFormatterMatchRanking Ranking { get; private set; }
}
}
#endif
#endif

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNETCORE50
#if DNXCORE50
namespace System.Net.Http.Formatting
{
@ -45,4 +45,4 @@ namespace System.Net.Http.Formatting
MatchOnRequestMediaType,
}
}
#endif
#endif

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNETCORE50
#if DNXCORE50
using System.Collections.Generic;
using System.Diagnostics;
@ -118,4 +118,4 @@ namespace System.Net.Http.Formatting
}
}
}
#endif
#endif

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNETCORE50
#if DNXCORE50
using System.Collections.Generic;
using System.Diagnostics;
@ -112,4 +112,4 @@ namespace System.Net.Http.Formatting
}
}
}
#endif
#endif

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNETCORE50
#if DNXCORE50
using System.Diagnostics;
using System.Net.Http.Headers;
@ -88,4 +88,4 @@ namespace System.Net.Http.Formatting
}
}
}
#endif
#endif

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNETCORE50
#if DNXCORE50
using System.Collections.Generic;
using System.Diagnostics;
@ -74,4 +74,4 @@ namespace System.Net.Http.Formatting
}
}
}
#endif
#endif

View File

@ -21,7 +21,7 @@ namespace System.Net.Http
/// </summary>
public static class HttpRequestMessageExtensions
{
#if !ASPNETCORE50
#if !DNXCORE50
/// <summary>
/// Helper method for creating an <see cref="HttpResponseMessage"/> message with a "416 (Requested Range Not
@ -422,4 +422,4 @@ namespace System.Net.Http
}
}
}
}
}

View File

@ -13,14 +13,14 @@
"Microsoft.Framework.NotNullAttribute.Internal": { "version": "1.0.0-*", "type": "build" }
},
"frameworks": {
"aspnet50": {
"dnx451": {
"frameworkAssemblies": {
"System.Net.Http": "",
"System.Xml": "",
"System.Runtime.Serialization": ""
}
},
"aspnetcore50": {
"dnxcore50": {
"dependencies": {
"System.Net.Http": "4.0.0-beta-*",
"System.Xml.XmlSerializer": "4.0.10-beta-*",
@ -28,4 +28,4 @@
}
}
}
}
}

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.
#if ASPNET50
#if DNX451
using System.Runtime.Serialization;
#endif
using System.Xml;
@ -15,7 +15,7 @@ namespace Microsoft.AspNet.Mvc.Xml
{
public static readonly int DefaultMaxDepth = 32;
#if ASPNET50
#if DNX451
public static readonly XsdDataContractExporter XsdDataContractExporter = new XsdDataContractExporter();
#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.
using System;
@ -135,7 +135,7 @@ namespace Microsoft.AspNet.Mvc.Xml
{
try
{
#if ASPNET50
#if DNX451
// Verify that type is a valid data contract by forcing the serializer to try to create a data contract
FormattingUtilities.XsdDataContractExporter.GetRootElementName(type);
#endif

View File

@ -11,17 +11,17 @@
"Microsoft.Framework.NotNullAttribute.Internal": { "version": "1.0.0-*", "type": "build" }
},
"frameworks": {
"aspnet50": {
"dnx451": {
"frameworkAssemblies": {
"System.Xml": "",
"System.Runtime.Serialization": ""
}
},
"aspnetcore50": {
"dnxcore50": {
"dependencies": {
"System.Runtime.Serialization.Xml": "4.0.10-beta-*",
"System.Xml.XmlSerializer": "4.0.10-beta-*"
}
}
}
}
}

View File

@ -1,4 +1,4 @@
{
{
"description": "ASP.NET MVC is a web framework that gives you a powerful, patterns-based way to build dynamic websites and Web APIs. ASP.NET MVC enables a clean separation of concerns and gives you full control over markup.",
"version": "6.0.0-*",
"compilationOptions": {
@ -13,7 +13,7 @@
"Microsoft.Framework.NotNullAttribute.Internal": { "version": "1.0.0-*", "type": "build" }
},
"frameworks": {
"aspnet50": {},
"aspnetcore50": {}
"dnx451": {},
"dnxcore50": {}
}
}

View File

@ -1,12 +1,12 @@
{
{
"description": "Abstractions for page instrumentation.",
"version": "1.0.0-*",
"compilationOptions": {
"warningsAsErrors": true
},
"frameworks": {
"aspnet50": { },
"aspnetcore50": {
"dnx451": { },
"dnxcore50": {
"dependencies": {
"System.IO": "4.0.10-beta-*"
}

View File

@ -15,11 +15,11 @@
"test": "xunit.runner.kre"
},
"frameworks": {
"aspnet50": {
"dnx451": {
"dependencies": {
"Moq": "4.2.1312.1622"
}
},
"aspnetcore50": { }
"dnxcore50": { }
}
}

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.
using System;
@ -14,7 +14,7 @@ using Microsoft.AspNet.Routing;
using Microsoft.AspNet.Testing;
using Microsoft.AspNet.WebUtilities;
using Microsoft.AspNet.Http.Core;
#if ASPNET50
#if DNX451
using Moq;
#endif
using Xunit;
@ -911,7 +911,7 @@ namespace Microsoft.AspNet.Mvc.Test
// These tests share code with the ActionFilterAttribute tests because the various filter
// implementations need to behave the same way.
#if ASPNET50
#if DNX451
[Fact]
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.
#if ASPNET50
#if DNX451
using System;
using System.IO;
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.
#if ASPNET50
#if DNX451
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNet.Http;

View File

@ -11,7 +11,7 @@ using Microsoft.Framework.OptionsModel;
using Microsoft.Net.Http.Headers;
using Xunit;
#if ASPNET50
#if DNX451
using Moq;
using System.Net;
#endif
@ -27,7 +27,7 @@ namespace Microsoft.AspNet.Mvc
RouteAndQueryData
}
#if ASPNET50
#if DNX451
[Theory]
[InlineData("json", FormatSource.RouteData, "application/json")]
[InlineData("json", FormatSource.QueryData, "application/json")]
@ -411,4 +411,4 @@ namespace Microsoft.AspNet.Mvc
}
#endif
}
}
}

View File

@ -9,7 +9,7 @@ using Microsoft.AspNet.Routing;
using Microsoft.Net.Http.Headers;
using Xunit;
#if ASPNET50
#if DNX451
using Moq;
#endif
@ -191,4 +191,4 @@ namespace Microsoft.AspNet.Mvc.Test
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.
#if ASPNET50
#if DNX451
using System.Threading.Tasks;
using Moq;
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.
#if ASPNET50
#if DNX451
using System;
using System.Collections.Generic;
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.
#if ASPNET50
#if DNX451
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc.Core;

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.
#if ASPNET50
#if DNX451
using System;
using System.Collections.Generic;
using Microsoft.AspNet.Http;

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.
#if ASPNET50
#if DNX451
using System;
using System.Collections;
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.
#if ASPNET50
#if DNX451
using Microsoft.AspNet.Routing;
using Microsoft.AspNet.Routing.Template;
using Microsoft.Framework.OptionsModel;

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNET50
#if DNX451
using System;
using System.Collections.Generic;
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.
#if ASPNET50
#if DNX451
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

View File

@ -1,4 +1,4 @@
{
{
"compilationOptions": {
"warningsAsErrors": "true"
},
@ -13,6 +13,6 @@
"test": "xunit.runner.kre"
},
"frameworks": {
"aspnet50": { }
"dnx451": { }
}
}

View File

@ -22,16 +22,16 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
public async Task CompilationOptions_AreUsedByViewsAndPartials()
{
// Arrange
#if ASPNET50
#if DNX451
var expected =
@"This method is running from ASPNET50
@"This method is running from DNX451
This method is only defined in ASPNET50";
#elif ASPNETCORE50
This method is only defined in DNX451";
#elif DNXCORE50
var expected =
@"This method is running from ASPNETCORE50
@"This method is running from DNXCORE50
This method is only defined in ASPNETCORE50";
This method is only defined in DNXCORE50";
#endif
var server = TestServer.Create(_provider, _app);
var client = server.CreateClient();
@ -43,4 +43,4 @@ This method is only defined in ASPNETCORE50";
Assert.Equal(expected, body.Trim());
}
}
}
}

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.
#if ASPNET50
#if DNX451
using System;
using System.Net.Http;
using System.Threading.Tasks;

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNET50 // Since Json.net serialization fails in CoreCLR
#if DNX451 // Since Json.net serialization fails in CoreCLR
using System;
using System.Collections.Generic;
using System.Linq;
@ -98,4 +98,4 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
}
}
#endif
#endif

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNET50 // Since Json.net serialization fails in CoreCLR
#if DNX451 // Since Json.net serialization fails in CoreCLR
using System;
using System.Collections.Generic;
using System.Linq;
@ -101,4 +101,4 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
}
}
}
#endif
#endif

View File

@ -1230,7 +1230,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
Assert.Equal(trackingId, actual.LastUpdatedTrackingId);
}
#if ASPNET50
#if DNX451
[Fact]
public async Task UpdateVehicle_WithXml_BindsBodyServicesAndHeaders()
{
@ -2073,4 +2073,4 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
return JsonConvert.DeserializeObject<TVal>(await response.Content.ReadAsStringAsync());
}
}
}
}

View File

@ -161,12 +161,12 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
{
// Arrange
var assemblyNamePrefix = GetAssemblyNamePrefix();
#if ASPNET50
#if DNX451
var expected =
@"Value set inside ASPNET50 " + assemblyNamePrefix;
#elif ASPNETCORE50
@"Value set inside DNX451 " + assemblyNamePrefix;
#elif DNXCORE50
var expected =
@"Value set inside ASPNETCORE50 " + assemblyNamePrefix;
@"Value set inside DNXCORE50 " + assemblyNamePrefix;
#endif
var server = TestServer.Create(_services, _app);
@ -299,4 +299,4 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
}
}
}
}

View File

@ -20,7 +20,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
private readonly Action<IApplicationBuilder> _app = new XmlFormattersWebSite.Startup().Configure;
[Theory]
#if !ASPNETCORE50
#if !DNXCORE50
[InlineData("application/xml-xmlser")]
#endif
[InlineData("application/xml-dcs")]
@ -45,7 +45,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
}
[Theory]
#if !ASPNETCORE50
#if !DNXCORE50
[InlineData("application/xml-xmlser")]
#endif
[InlineData("application/xml-dcs")]
@ -97,4 +97,4 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
XmlAssert.Equal(expected, responseData);
}
}
}
}

View File

@ -58,7 +58,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
content);
}
#if !ASPNETCORE50
#if !DNXCORE50
[Fact]
public async Task Options_SetsDefaultFormatters()

View File

@ -178,7 +178,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
result);
}
#if !ASPNETCORE50
#if !DNXCORE50
[Fact]
public async Task CanWrite_IEnumerableOf_SerializableErrors()
{
@ -202,4 +202,4 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
}
#endif
}
}
}

View File

@ -1,4 +1,4 @@
{
{
"code": [
"**/*.cs",
"../Microsoft.AspNet.Mvc.Xml.Test/XmlAssert.cs"
@ -61,7 +61,7 @@
"test": "xunit.runner.kre"
},
"frameworks": {
"aspnet50": {
"dnx451": {
"dependencies": {
"AutofacWebSite": "1.0.0"
}

View File

@ -1,10 +1,10 @@
// 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.
using System;
using Microsoft.AspNet.Http.Core;
using Microsoft.Framework.DependencyInjection;
#if ASPNET50
#if DNX451
using Moq;
#endif
using Xunit;
@ -59,7 +59,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
Assert.Equal(isIncluded, predicate(context, property));
}
#if ASPNET50
#if DNX451
[Theory]
[InlineData("UserName", true)]
[InlineData("Username", false)]

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.
#if ASPNET50
#if DNX451
using System.Threading.Tasks;
using Moq;
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.
#if ASPNET50
#if DNX451
using System;
using System.Collections.Generic;
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.
#if ASPNET50
#if DNX451
using System;
using System.Linq;
using System.Threading.Tasks;

View File

@ -1,13 +1,13 @@
// 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.
#if ASPNET50
#if DNX451
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
#endif
using System.Threading.Tasks;
#if ASPNET50
#if DNX451
using Moq;
#endif
using Xunit;
@ -16,7 +16,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding.Test
{
public class CollectionModelBinderTest
{
#if ASPNET50
#if DNX451
[Fact]
public async Task BindComplexCollectionFromIndexes_FiniteIndexes()
{
@ -132,7 +132,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding.Test
Assert.Null(boundCollection);
}
#if ASPNET50
#if DNX451
[Fact]
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.
#if ASPNET50
#if DNX451
using System;
using System.Collections.Generic;
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.
#if ASPNET50
#if DNX451
using System.Collections.Generic;
using System.Threading.Tasks;
using Moq;

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNET50
#if DNX451
using System;
using System.Collections;
@ -145,4 +145,4 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
}
}
#endif
#endif

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNET50
#if DNX451
using System;
using System.Collections.Generic;
@ -201,4 +201,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.
#if ASPNET50
#if DNX451
using System;
using System.Collections.Generic;
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.
#if ASPNET50
#if DNX451
using System;
using System.Collections.Generic;
using System.ComponentModel;

View File

@ -5,7 +5,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
#if !ASPNETCORE50
#if !DNXCORE50
using Moq;
#endif
using Xunit;
@ -169,7 +169,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding.Metadata
Assert.True(isRequired);
}
#if !ASPNETCORE50
#if !DNXCORE50
[Fact]
public void PropertiesProperty_CallsProvider()
{
@ -435,4 +435,4 @@ namespace Microsoft.AspNet.Mvc.ModelBinding.Metadata
{
}
}
}
}

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.
#if ASPNET50
#if DNX451
using System;
using System.Collections.Generic;
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.
#if ASPNET50
#if DNX451
using Moq;
using Xunit;

View File

@ -1,11 +1,11 @@
// 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.
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
#if ASPNET50
#if DNX451
using Moq;
#endif
using Xunit;
@ -16,7 +16,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
{
private readonly IModelMetadataProvider _metadataProvider = TestModelMetadataProvider.CreateDefaultProvider();
#if ASPNET50
#if DNX451
[Fact]
public void GetValidators_ReturnsValidatorForIValidatableObject()
{
@ -163,7 +163,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
// Default IValidatableObject adapter factory
#if ASPNET50
#if DNX451
[Fact]
public void IValidatableObjectGetsAValidator()
{

View File

@ -1,14 +1,14 @@
// 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.
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
#if ASPNET50
#if DNX451
using System.Linq;
#endif
using Microsoft.Framework.DependencyInjection;
#if ASPNET50
#if DNX451
using Moq;
using Moq.Protected;
#endif
@ -51,7 +51,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding
}
}
#if ASPNET50
#if DNX451
[Theory]
[MemberData(nameof(ValidateSetsMemberNamePropertyDataSet))]
public void ValidateSetsMemberNamePropertyOfValidationContextForProperties(

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNET50
#if DNX451
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
@ -665,4 +665,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.
#if ASPNET50
#if DNX451
using System;
using System.Collections.Generic;
@ -127,4 +127,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.
#if ASPNET50
#if DNX451
using System;
using System.Collections.Generic;
using System.Globalization;

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.
#if ASPNET50
#if DNX451
using System;
using System.Collections.Generic;
using System.Globalization;
@ -16,7 +16,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding.Test
{
private readonly QueryStringValueProviderFactory _factory = new QueryStringValueProviderFactory();
#if ASPNET50
#if DNX451
[Fact]
public void GetValueProvider_ReturnsQueryStringValueProviderInstanceWithInvariantCulture()
{

View File

@ -1,4 +1,4 @@
{
{
"compilationOptions": {
"warningsAsErrors": "true"
},
@ -13,7 +13,7 @@
"test": "xunit.runner.kre"
},
"frameworks": {
"aspnet50": { },
"aspnetcore50": { }
"dnx451": { },
"dnxcore50": { }
}
}

View File

@ -1,4 +1,4 @@
{
{
"resources": "TestFiles/**",
"dependencies": {
"Microsoft.AspNet.Mvc.Razor.Host": "6.0.0-*",
@ -9,7 +9,7 @@
"test": "xunit.runner.kre"
},
"frameworks": {
"aspnet50": {
"dnx451": {
"dependencies": {
"Moq": "4.2.1312.1622"
}

View File

@ -1,4 +1,4 @@
{
{
"code": [
"**/*.cs",
"../Microsoft.AspNet.Mvc.Razor.Host.Test/TestFileProvider.cs",
@ -14,7 +14,7 @@
"test": "xunit.runner.kre"
},
"frameworks": {
"aspnet50": {
"dnx451": {
"dependencies": {
"Moq": "4.2.1312.1622"
}

View File

@ -1,4 +1,4 @@
{
{
"dependencies": {
"Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-*",
"Microsoft.AspNet.Testing": "1.0.0-*",
@ -9,10 +9,10 @@
"test": "xunit.runner.kre"
},
"frameworks": {
"aspnet50": {
"dnx451": {
"dependencies": {
"Moq": "4.2.1312.1622"
}
}
}
}
}

View File

@ -1,4 +1,4 @@
{
{
"compilationOptions": {
"warningsAsErrors": "true"
},
@ -10,7 +10,7 @@
"test": "xunit.runner.kre"
},
"frameworks": {
"aspnet50": {
"dnx451": {
"dependencies": {
"Moq": "4.2.1312.1622"
}

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNET50
#if DNX451
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
@ -86,4 +86,4 @@ namespace System.Web.Http
}
}
}
#endif
#endif

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNET50
#if DNX451
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
@ -86,4 +86,4 @@ namespace System.Web.Http
}
}
}
#endif
#endif

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNET50
#if DNX451
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
@ -99,4 +99,4 @@ namespace System.Web.Http
}
}
}
#endif
#endif

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNET50
#if DNX451
using System.Collections.Generic;
using System.IO;
using System.Net;
@ -94,4 +94,4 @@ namespace System.Web.Http
};
}
}
#endif
#endif

View File

@ -1,7 +1,7 @@
// 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.
#if ASPNET50
#if DNX451
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
@ -68,4 +68,4 @@ namespace System.Web.Http
};
}
}
#endif
#endif

View File

@ -1,7 +1,7 @@
// 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.
#if !ASPNETCORE50
#if !DNXCORE50
using System.Collections.Generic;
using System.Linq;
@ -506,4 +506,4 @@ namespace System.Web.Http.TestControllers
}
}
}
#endif
#endif

View File

@ -148,7 +148,7 @@ namespace System.Net.Http.Formatting
{
get
{
#if !ASPNETCORE50
#if !DNXCORE50
// Only mapping and accept makes sense with q != 1.0
MediaTypeFormatterMatch matchMapping10 = CreateMatch(1.0, MediaTypeFormatterMatchRanking.MatchOnRequestWithMediaTypeMapping);
MediaTypeFormatterMatch matchMapping05 = CreateMatch(0.5, MediaTypeFormatterMatchRanking.MatchOnRequestWithMediaTypeMapping);
@ -175,7 +175,7 @@ namespace System.Net.Http.Formatting
{ new List<MediaTypeFormatterMatch>() { matchType10, matchRequest10, matchAcceptAllRange10 }, matchAcceptAllRange10 },
{ new List<MediaTypeFormatterMatch>() { matchType10, matchRequest10, matchAcceptAllRange10, matchAcceptSubTypeRange10 }, matchAcceptSubTypeRange10 },
{ new List<MediaTypeFormatterMatch>() { matchType10, matchRequest10, matchAcceptAllRange10, matchAcceptSubTypeRange10, matchAccept10 }, matchAccept10 },
#if !ASPNETCORE50
#if !DNXCORE50
{ new List<MediaTypeFormatterMatch>() { matchType10, matchRequest10, matchAcceptAllRange10, matchAcceptSubTypeRange10, matchAccept10, matchMapping10 }, matchMapping10 },
#endif
{ new List<MediaTypeFormatterMatch>() { matchAccept05, matchAccept10 }, matchAccept10 },
@ -186,7 +186,7 @@ namespace System.Net.Http.Formatting
{ new List<MediaTypeFormatterMatch>() { matchAcceptAllRange05, matchAcceptAllRange10 }, matchAcceptAllRange10 },
{ new List<MediaTypeFormatterMatch>() { matchAcceptAllRange10, matchAcceptAllRange05 }, matchAcceptAllRange10 },
#if !ASPNETCORE50
#if !DNXCORE50
{ new List<MediaTypeFormatterMatch>() { matchMapping05, matchMapping10 }, matchMapping10 },
{ new List<MediaTypeFormatterMatch>() { matchMapping10, matchMapping05 }, matchMapping10 },
@ -250,7 +250,7 @@ namespace System.Net.Http.Formatting
Assert.Null(result);
}
#if !ASPNETCORE50
#if !DNXCORE50
[Fact]
public void Negotiate_MediaTypeMappingTakesPrecedenceOverAcceptHeader()
@ -358,7 +358,7 @@ namespace System.Net.Http.Formatting
Assert.IsType<JsonMediaTypeFormatter>(result.Formatter);
}
#if !ASPNETCORE50
#if !DNXCORE50
[Fact]
public void Negotiate_RespectsFormatterOrdering_ForXhrRequestThatDoesNotSpecifyAcceptHeaders()
@ -455,7 +455,7 @@ namespace System.Net.Http.Formatting
}
}
#if !ASPNETCORE50
#if !DNXCORE50
[Fact]
public void MatchMediaTypeMapping_ReturnsMatch()
@ -807,7 +807,7 @@ namespace System.Net.Http.Formatting
}
}
#if !ASPNETCORE50
#if !DNXCORE50
private class MyMediaTypeMapping : MediaTypeMapping
{

View File

@ -109,7 +109,7 @@ namespace System.Web.Http.Dispatcher
Assert.DoesNotContain("OH NO", modelStateError["[2].Name"] as IEnumerable<string>);
}
#if !ASPNETCORE50
#if !DNXCORE50
[Fact]
public void HttpError_Roundtrips_WithJsonFormatter()

View File

@ -8,7 +8,7 @@ using Microsoft.AspNet.Http;
using Microsoft.AspNet.Http.Core;
using Microsoft.AspNet.Mvc.WebApiCompatShim;
using Microsoft.Framework.OptionsModel;
#if !ASPNETCORE50
#if !DNXCORE50
using Moq;
#endif
using Xunit;
@ -46,7 +46,7 @@ namespace System.Net.Http
ex.Message);
}
#if !ASPNETCORE50
#if !DNXCORE50
[Fact]
public void CreateResponse_DoingConneg_OnlyContent_RetrievesContentNegotiatorFromServices()

View File

@ -1,7 +1,7 @@
// 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.
#if !ASPNETCORE50
#if !DNXCORE50
using System.Collections.Generic;
using System.Net;
using System.Net.Http;
@ -27,7 +27,7 @@ namespace Microsoft.AspNet.Mvc.WebApiCompatShim
Assert.Equal(expectedFilterOrder, filter.Order);
}
#if !ASPNETCORE50
#if !DNXCORE50
[Fact]
public void OnActionExecuting_IsNoOp()
@ -89,4 +89,4 @@ namespace Microsoft.AspNet.Mvc.WebApiCompatShim
#endif
}
}
}

View File

@ -1,7 +1,7 @@
// 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.
#if !ASPNETCORE50
#if !DNXCORE50
using System;
using System.IO;
@ -148,4 +148,4 @@ namespace Microsoft.AspNet.Mvc.WebApiCompatShimTest
}
}
}
#endif
#endif

View File

@ -34,7 +34,7 @@ namespace System.Net.Http.Formatting.Mocks
return base.SelectResponseCharacterEncoding(request, formatter);
}
#if !ASPNETCORE50
#if !DNXCORE50
public new MediaTypeFormatterMatch MatchMediaTypeMapping(HttpRequestMessage request, MediaTypeFormatter formatter)
{

View File

@ -1,7 +1,7 @@
// 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.
#if !ASPNETCORE50
#if !DNXCORE50
using System.Net.Http.Headers;
namespace System.Net.Http.Formatting.Mocks
@ -34,4 +34,4 @@ namespace System.Net.Http.Formatting.Mocks
}
}
}
#endif
#endif

Some files were not shown because too many files have changed in this diff Show More