Updating to netcoreapp1.1

This commit is contained in:
Pranav K 2016-10-13 11:21:09 -07:00
parent ed1378a365
commit a52d692de0
47 changed files with 62 additions and 62 deletions

View File

@ -30,7 +30,7 @@
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -13,7 +13,7 @@
},
"testRunner": "xunit",
"frameworks": {
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -18,7 +18,7 @@
},
"testRunner": "xunit",
"frameworks": {
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -4,7 +4,7 @@
using System;
using System.Collections.Generic;
using System.Text.Encodings.Web;
#if NETCOREAPP1_0
#if NETCOREAPP1_1
using System.Reflection;
#endif
using System.Threading.Tasks;

View File

@ -9,7 +9,7 @@ namespace Microsoft.AspNetCore.Mvc.Internal
{
public class NonDisposableStreamTest
{
#if !NETCOREAPP1_0
#if !NETCOREAPP1_1
[Fact]
public void InnerStreamIsOpenOnClose()
{
@ -49,7 +49,7 @@ namespace Microsoft.AspNetCore.Mvc.Internal
nonDisposableStream.Dispose();
}
#if !NETCOREAPP1_0
#if !NETCOREAPP1_1
[Fact]
public void InnerStreamIsNotFlushedOnClose()
{

View File

@ -28,7 +28,7 @@
},
"testRunner": "xunit",
"frameworks": {
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -20,7 +20,7 @@
},
"testRunner": "xunit",
"frameworks": {
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -24,7 +24,7 @@
},
"testRunner": "xunit",
"frameworks": {
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -308,14 +308,14 @@ namespace Microsoft.AspNetCore.Mvc.Formatters
{ "This is a test 激光這兩個字是甚麼意思 string written using utf-8", "utf-8", true },
{ "This is a test 激光這兩個字是甚麼意思 string written using utf-16", "utf-16", true },
{ "This is a test 激光這兩個字是甚麼意思 string written using utf-32", "utf-32", false },
#if !NETCOREAPP1_0
#if !NETCOREAPP1_1
// CoreCLR does not like shift_jis as an encoding.
{ "This is a test 激光這兩個字是甚麼意思 string written using shift_jis", "shift_jis", false },
#endif
{ "This is a test æøå string written using iso-8859-1", "iso-8859-1", false },
};
#if !NETCOREAPP1_0
#if !NETCOREAPP1_1
// CoreCLR does not like iso-2022-kr as an encoding.
if (!TestPlatformHelper.IsMono)
{

View File

@ -20,7 +20,7 @@
},
"testRunner": "xunit",
"frameworks": {
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -19,7 +19,7 @@
},
"testRunner": "xunit",
"frameworks": {
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -26,10 +26,10 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
var expected =
@"This method is running from NET451
This method is only defined in NET451";
#elif NETCOREAPP1_0
#elif NETCOREAPP1_1
var expected =
@"This method is running from NETCOREAPP1_0
This method is only defined in NETCOREAPP1_0";
@"This method is running from NETCOREAPP1_1
This method is only defined in NETCOREAPP1_1";
#endif
// Act

View File

@ -62,7 +62,7 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
{
typeof(JsonMediaTypeFormatter).FullName,
typeof(XmlMediaTypeFormatter).FullName,
#if !NETCOREAPP1_0
#if !NETCOREAPP1_1
typeof(FormUrlEncodedMediaTypeFormatter).FullName,
#endif
};

View File

@ -46,7 +46,7 @@
},
"testRunner": "xunit",
"frameworks": {
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -19,7 +19,7 @@
},
"testRunner": "xunit",
"frameworks": {
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -18,7 +18,7 @@
},
"testRunner": "xunit",
"frameworks": {
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -30,7 +30,7 @@
}
},
"frameworks": {
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -40,7 +40,7 @@
},
"testRunner": "xunit",
"frameworks": {
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -22,7 +22,7 @@
},
"testRunner": "xunit",
"frameworks": {
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -14,7 +14,7 @@
},
"testRunner": "xunit",
"frameworks": {
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -27,7 +27,7 @@
},
"testRunner": "xunit",
"frameworks": {
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -149,7 +149,7 @@ namespace System.Net.Http.Formatting
{
get
{
#if !NETCOREAPP1_0
#if !NETCOREAPP1_1
// Only mapping and accept makes sense with q != 1.0
MediaTypeFormatterMatch matchMapping10 = CreateMatch(1.0, MediaTypeFormatterMatchRanking.MatchOnRequestWithMediaTypeMapping);
MediaTypeFormatterMatch matchMapping05 = CreateMatch(0.5, MediaTypeFormatterMatchRanking.MatchOnRequestWithMediaTypeMapping);
@ -176,7 +176,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 !NETCOREAPP1_0
#if !NETCOREAPP1_1
{ new List<MediaTypeFormatterMatch>() { matchType10, matchRequest10, matchAcceptAllRange10, matchAcceptSubTypeRange10, matchAccept10, matchMapping10 }, matchMapping10 },
#endif
{ new List<MediaTypeFormatterMatch>() { matchAccept05, matchAccept10 }, matchAccept10 },
@ -187,7 +187,7 @@ namespace System.Net.Http.Formatting
{ new List<MediaTypeFormatterMatch>() { matchAcceptAllRange05, matchAcceptAllRange10 }, matchAcceptAllRange10 },
{ new List<MediaTypeFormatterMatch>() { matchAcceptAllRange10, matchAcceptAllRange05 }, matchAcceptAllRange10 },
#if !NETCOREAPP1_0
#if !NETCOREAPP1_1
{ new List<MediaTypeFormatterMatch>() { matchMapping05, matchMapping10 }, matchMapping10 },
{ new List<MediaTypeFormatterMatch>() { matchMapping10, matchMapping05 }, matchMapping10 },
@ -251,7 +251,7 @@ namespace System.Net.Http.Formatting
Assert.Null(result);
}
#if !NETCOREAPP1_0
#if !NETCOREAPP1_1
[Fact]
public void Negotiate_MediaTypeMappingTakesPrecedenceOverAcceptHeader()
@ -359,7 +359,7 @@ namespace System.Net.Http.Formatting
Assert.IsType<JsonMediaTypeFormatter>(result.Formatter);
}
#if !NETCOREAPP1_0
#if !NETCOREAPP1_1
[Fact]
public void Negotiate_RespectsFormatterOrdering_ForXhrRequestThatDoesNotSpecifyAcceptHeaders()
@ -458,7 +458,7 @@ namespace System.Net.Http.Formatting
}
}
#if !NETCOREAPP1_0
#if !NETCOREAPP1_1
[Fact]
public void MatchMediaTypeMapping_ReturnsMatch()
@ -810,7 +810,7 @@ namespace System.Net.Http.Formatting
}
}
#if !NETCOREAPP1_0
#if !NETCOREAPP1_1
private class MyMediaTypeMapping : MediaTypeMapping
{

View File

@ -278,7 +278,7 @@ namespace System.Net.Http
Assert.Equal("bin/baz", response.Content.Headers.ContentType.MediaType);
}
#if !NETCOREAPP1_0
#if !NETCOREAPP1_1
// API doesn't exist in CoreCLR.
[Fact]
public void CreateErrorResponseRangeNotSatisfiable_SetsCorrectStatusCodeAndContentRangeHeader()

View File

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

View File

@ -1,7 +1,7 @@
// 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.
#if !NETCOREAPP1_0
#if !NETCOREAPP1_1
using System.Net.Http.Headers;

View File

@ -15,7 +15,7 @@
},
"testRunner": "xunit",
"frameworks": {
"netcoreapp1.0": {
"netcoreapp1.1": {
"imports": [
"portable-net451+win8"
],

View File

@ -13,7 +13,7 @@
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -12,7 +12,7 @@
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -18,7 +18,7 @@
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -7,6 +7,6 @@
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {}
"netcoreapp1.1": {}
}
}

View File

@ -16,7 +16,7 @@
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -19,7 +19,7 @@
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -13,7 +13,7 @@
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -16,7 +16,7 @@
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -15,7 +15,7 @@
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -13,7 +13,7 @@
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -16,7 +16,7 @@
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -13,7 +13,7 @@
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -9,8 +9,8 @@ namespace RazorWebSite
{
#if NET451 || DNX451
return "This method is running from NET451";
#elif NETCOREAPP1_0
return "This method is running from NETCOREAPP1_0";
#elif NETCOREAPP1_1
return "This method is running from NETCOREAPP1_1";
#endif
}
@ -21,10 +21,10 @@ namespace RazorWebSite
}
#endif
#if NETCOREAPP1_0_CUSTOM_DEFINE
#if NETCOREAPP1_1_CUSTOM_DEFINE
public string ExecuteNetCoreApp1_0Operation()
{
return "This method is only defined in NETCOREAPP1_0";
return "This method is only defined in NETCOREAPP1_1";
}
#endif
}

View File

@ -1,10 +1,10 @@
@inject FrameworkSpecificHelper MyHelper
@inject FrameworkSpecificHelper MyHelper
@{
string value =
#if NET451_CUSTOM_DEFINE
MyHelper.ExecuteNet451Operation();
#endif
#if NETCOREAPP1_0_CUSTOM_DEFINE
#if NETCOREAPP1_1_CUSTOM_DEFINE
MyHelper.ExecuteNetCoreApp1_0Operation();
#endif
}

View File

@ -27,10 +27,10 @@
]
}
},
"netcoreapp1.0": {
"netcoreapp1.1": {
"buildOptions": {
"define": [
"NETCOREAPP1_0_CUSTOM_DEFINE"
"NETCOREAPP1_1_CUSTOM_DEFINE"
]
},
"dependencies": {

View File

@ -12,7 +12,7 @@
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -10,7 +10,7 @@
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -18,7 +18,7 @@
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -12,7 +12,7 @@
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",

View File

@ -13,7 +13,7 @@
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {
"netcoreapp1.1": {
"imports": "portable-net451+win8",
"dependencies": {
"Microsoft.NETCore.App": {

View File

@ -13,7 +13,7 @@
},
"frameworks": {
"net451": {},
"netcoreapp1.0": {
"netcoreapp1.1": {
"dependencies": {
"Microsoft.NETCore.App": {
"version": "1.1.0-*",