Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Commit 45bd402

Browse files
committed
Bump test projects up to .NET 4.6.2
- aspnet/Testing#248 - xUnit no longer supports .NET 4.5.1 - skipping 4.5.2 to avoid that version's odd System.XML casing and related Linux failures - build tests for desktop .NET only on Windows
1 parent 366dbde commit 45bd402

File tree

48 files changed

+59
-59
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+59
-59
lines changed

test/Microsoft.AspNetCore.Mvc.Abstractions.Test/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
"System.Diagnostics.TraceSource": "4.3.0"
2323
}
2424
},
25-
"net451": {}
25+
"net461": {}
2626
}
2727
}

test/Microsoft.AspNetCore.Mvc.ApiExplorer.Test/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
"System.Diagnostics.TraceSource": "4.3.0"
2222
}
2323
},
24-
"net451": {}
24+
"net461": {}
2525
}
2626
}

test/Microsoft.AspNetCore.Mvc.Core.Test/Infrastructure/ActionContextAccessorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace Microsoft.AspNetCore.Mvc.Infrastructure
88
{
9-
#if NET451
9+
#if NET461
1010
public class ActionContextAccessorTests
1111
{
1212
private static void DomainFunc()

test/Microsoft.AspNetCore.Mvc.Core.Test/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
"System.Xml.XmlDocument": "4.3.0"
3535
}
3636
},
37-
"net451": {}
37+
"net461": {}
3838
}
3939
}

test/Microsoft.AspNetCore.Mvc.Cors.Test/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
"System.Diagnostics.TraceSource": "4.3.0"
2525
}
2626
},
27-
"net451": {}
27+
"net461": {}
2828
}
2929
}

test/Microsoft.AspNetCore.Mvc.DataAnnotations.Test/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
"System.Diagnostics.TraceSource": "4.3.0"
2828
}
2929
},
30-
"net451": {}
30+
"net461": {}
3131
}
3232
}

test/Microsoft.AspNetCore.Mvc.Formatters.Json.Test/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
"System.Diagnostics.TraceSource": "4.3.0"
2525
}
2626
},
27-
"net451": {}
27+
"net461": {}
2828
}
2929
}

test/Microsoft.AspNetCore.Mvc.Formatters.Xml.Test/XmlSerializerInputFormatterTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4-
#if NET451
4+
#if NET461
55
using System;
66
using System.Collections.Generic;
77
using System.IO;

test/Microsoft.AspNetCore.Mvc.Formatters.Xml.Test/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
"System.Diagnostics.TraceSource": "4.3.0"
2323
}
2424
},
25-
"net451": {}
25+
"net461": {}
2626
}
2727
}

test/Microsoft.AspNetCore.Mvc.FunctionalTests/CompilationOptionsTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ public CompilationOptionsTests(MvcTestFixture<RazorWebSite.Startup> fixture)
2222
public async Task CompilationOptions_AreUsedByViewsAndPartials()
2323
{
2424
// Arrange
25-
#if NET451
25+
#if NET461
2626
var expected =
27-
@"This method is running from NET451
28-
This method is only defined in NET451";
27+
@"This method is running from NET461
28+
This method is only defined in NET461";
2929
#elif NETCOREAPP1_1
3030
var expected =
3131
@"This method is running from NETCOREAPP1_1

test/Microsoft.AspNetCore.Mvc.FunctionalTests/ErrorPageTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public async Task RuntimeErrorAreListedByErrorPageMiddleware()
9797
// The desktop CLR does not correctly read the stack trace from portable PDBs. However generating full pdbs
9898
// is only supported on machines with CLSID_CorSymWriter available. On desktop, we'll skip this test on
9999
// machines without this component.
100-
#if NET451
100+
#if NET461
101101
if (!SymbolsUtility.SupportsFullPdbGeneration())
102102
{
103103
return;

test/Microsoft.AspNetCore.Mvc.FunctionalTests/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,6 @@
9696
},
9797
"imports": "portable-net451+win8"
9898
},
99-
"net451": {}
99+
"net461": {}
100100
}
101101
}

test/Microsoft.AspNetCore.Mvc.IntegrationTests/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
"System.Diagnostics.TraceSource": "4.3.0"
2424
}
2525
},
26-
"net451": {}
26+
"net461": {}
2727
}
2828
}

test/Microsoft.AspNetCore.Mvc.Localization.Test/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
"System.Diagnostics.TraceSource": "4.3.0"
2525
}
2626
},
27-
"net451": {}
27+
"net461": {}
2828
}
2929
}

test/Microsoft.AspNetCore.Mvc.Razor.Host.Test/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@
3333
"System.Diagnostics.TraceSource": "4.3.0"
3434
}
3535
},
36-
"net451": {}
36+
"net461": {}
3737
}
3838
}

test/Microsoft.AspNetCore.Mvc.Razor.Test/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@
3838
"System.Diagnostics.TraceSource": "4.3.0"
3939
}
4040
},
41-
"net451": {}
41+
"net461": {}
4242
}
4343
}

test/Microsoft.AspNetCore.Mvc.RazorPages.Test/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
}
2626
}
2727
},
28-
"net451": {}
28+
"net461": {}
2929
}
3030
}

test/Microsoft.AspNetCore.Mvc.TagHelpers.Test/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232
"System.Diagnostics.TraceSource": "4.3.0"
3333
}
3434
},
35-
"net451": {}
35+
"net461": {}
3636
}
3737
}

test/Microsoft.AspNetCore.Mvc.Test/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
"System.Xml.XmlDocument": "4.3.0"
2525
}
2626
},
27-
"net451": {}
27+
"net461": {}
2828
}
2929
}

test/Microsoft.AspNetCore.Mvc.TestCommon/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"keyFile": "../../tools/Key.snk"
55
},
66
"frameworks": {
7-
"net451": {},
7+
"net461": {},
88
"netstandard1.6": {
99
"dependencies": {
1010
"System.ComponentModel.Annotations": "4.3.0"

test/Microsoft.AspNetCore.Mvc.TestDiagnosticListener.Sources/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"shared": "**/*.cs",
33
"frameworks": {
4-
"net451": {},
4+
"net461": {},
55
"netstandard1.3": {
66
"dependencies": {
77
"NETStandard.Library": "1.6.1"

test/Microsoft.AspNetCore.Mvc.ViewFeatures.Test/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
"System.Diagnostics.TraceSource": "4.3.0"
3131
}
3232
},
33-
"net451": {}
33+
"net461": {}
3434
}
3535
}

test/Microsoft.AspNetCore.Mvc.WebApiCompatShimTest/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
"System.Diagnostics.TraceSource": "4.3.0"
2828
}
2929
},
30-
"net451": {}
30+
"net461": {}
3131
}
3232
}

test/WebSites/ApiExplorerWebSite/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"Microsoft.AspNetCore.StaticFiles": "1.2.0-*"
1515
},
1616
"frameworks": {
17-
"net451": {},
17+
"net461": {},
1818
"netcoreapp1.1": {
1919
"dependencies": {
2020
"Microsoft.NETCore.App": {

test/WebSites/ApplicationModelWebSite/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"Microsoft.AspNetCore.StaticFiles": "1.2.0-*"
1414
},
1515
"frameworks": {
16-
"net451": {},
16+
"net461": {},
1717
"netcoreapp1.1": {
1818
"dependencies": {
1919
"Microsoft.NETCore.App": {

test/WebSites/BasicWebSite/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"Microsoft.AspNetCore.StaticFiles": "1.2.0-*"
2020
},
2121
"frameworks": {
22-
"net451": {},
22+
"net461": {},
2323
"netcoreapp1.1": {
2424
"dependencies": {
2525
"Microsoft.NETCore.App": {

test/WebSites/ControllersFromServicesClassLibrary/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"Microsoft.AspNetCore.Mvc": "1.2.0-*"
77
},
88
"frameworks": {
9-
"net451": {},
9+
"net461": {},
1010
"netcoreapp1.1": {}
1111
}
1212
}

test/WebSites/ControllersFromServicesWebSite/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"Microsoft.AspNetCore.StaticFiles": "1.2.0-*"
2020
},
2121
"frameworks": {
22-
"net451": {},
22+
"net461": {},
2323
"netcoreapp1.1": {
2424
"dependencies": {
2525
"Microsoft.NETCore.App": {

test/WebSites/CorsWebSite/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"Microsoft.AspNetCore.StaticFiles": "1.2.0-*"
2121
},
2222
"frameworks": {
23-
"net451": {},
23+
"net461": {},
2424
"netcoreapp1.1": {
2525
"dependencies": {
2626
"Microsoft.NETCore.App": {

test/WebSites/ErrorPageMiddlewareWebSite/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"Microsoft.AspNetCore.StaticFiles": "1.2.0-*"
1515
},
1616
"frameworks": {
17-
"net451": {},
17+
"net461": {},
1818
"netcoreapp1.1": {
1919
"dependencies": {
2020
"Microsoft.NETCore.App": {

test/WebSites/FilesWebSite/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"Microsoft.Extensions.FileProviders.Embedded": "1.2.0-*"
1818
},
1919
"frameworks": {
20-
"net451": {},
20+
"net461": {},
2121
"netcoreapp1.1": {
2222
"dependencies": {
2323
"Microsoft.NETCore.App": {

test/WebSites/FiltersWebSite/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"Microsoft.AspNetCore.StaticFiles": "1.2.0-*"
1717
},
1818
"frameworks": {
19-
"net451": {},
19+
"net461": {},
2020
"netcoreapp1.1": {
2121
"dependencies": {
2222
"Microsoft.NETCore.App": {

test/WebSites/FormatterWebSite/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"Microsoft.AspNetCore.StaticFiles": "1.2.0-*"
1515
},
1616
"frameworks": {
17-
"net451": {},
17+
"net461": {},
1818
"netcoreapp1.1": {
1919
"dependencies": {
2020
"Microsoft.NETCore.App": {

test/WebSites/HtmlGenerationWebSite/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"Microsoft.AspNetCore.StaticFiles": "1.2.0-*"
1818
},
1919
"frameworks": {
20-
"net451": {},
20+
"net461": {},
2121
"netcoreapp1.1": {
2222
"dependencies": {
2323
"Microsoft.NETCore.App": {

test/WebSites/Microsoft.AspNetCore.Mvc.TestConfiguration/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"NETStandard.Library": "1.6.1"
99
},
1010
"frameworks": {
11-
"net451": {},
11+
"net461": {},
1212
"netstandard1.3": {}
1313
}
1414
}

test/WebSites/RazorPageExecutionInstrumentationWebSite/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"Microsoft.Extensions.DiagnosticAdapter": "1.2.0-*"
1515
},
1616
"frameworks": {
17-
"net451": {},
17+
"net461": {},
1818
"netcoreapp1.1": {
1919
"dependencies": {
2020
"Microsoft.NETCore.App": {

test/WebSites/RazorWebSite/Services/FrameworkSpecificHelper.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@ public class FrameworkSpecificHelper
77
{
88
public string ExecuteOperation()
99
{
10-
#if NET451 || DNX451
11-
return "This method is running from NET451";
10+
#if NET461
11+
return "This method is running from NET461";
1212
#elif NETCOREAPP1_1
1313
return "This method is running from NETCOREAPP1_1";
1414
#endif
1515
}
1616

17-
#if NET451_CUSTOM_DEFINE
18-
public string ExecuteNet451Operation()
17+
#if NET461_CUSTOM_DEFINE
18+
public string ExecuteNet461Operation()
1919
{
20-
return "This method is only defined in NET451";
20+
return "This method is only defined in NET461";
2121
}
2222
#endif
2323

2424
#if NETCOREAPP1_1_CUSTOM_DEFINE
25-
public string ExecuteNetCoreApp1_0Operation()
25+
public string ExecuteNetCoreApp1_1Operation()
2626
{
2727
return "This method is only defined in NETCOREAPP1_1";
2828
}

test/WebSites/RazorWebSite/Startup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ public void ConfigureServices(IServiceCollection services)
2929
$"{nameof(RazorWebSite)}.EmbeddedViews"));
3030
options.FileProviders.Add(updateableFileProvider);
3131
options.ViewLocationExpanders.Add(new NonMainPageViewLocationExpander());
32-
#if NET451
33-
options.ParseOptions = options.ParseOptions.WithPreprocessorSymbols("DNX451", "NET451_CUSTOM_DEFINE");
32+
#if NET461
33+
options.ParseOptions = options.ParseOptions.WithPreprocessorSymbols("NET461", "NET461_CUSTOM_DEFINE");
3434
#endif
3535
})
3636
.AddViewOptions(options =>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
@inject FrameworkSpecificHelper MyHelper
22
@{
33
string value =
4-
#if NET451_CUSTOM_DEFINE
5-
MyHelper.ExecuteNet451Operation();
4+
#if NET461_CUSTOM_DEFINE
5+
MyHelper.ExecuteNet461Operation();
66
#endif
77
#if NETCOREAPP1_1_CUSTOM_DEFINE
8-
MyHelper.ExecuteNetCoreApp1_0Operation();
8+
MyHelper.ExecuteNetCoreApp1_1Operation();
99
#endif
1010
}
1111
@value

test/WebSites/RazorWebSite/project.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
"Microsoft.Extensions.FileProviders.Embedded": "1.2.0-*"
2525
},
2626
"frameworks": {
27-
"net451": {
27+
"net461": {
2828
"buildOptions": {
2929
"define": [
30-
"NET451_CUSTOM_DEFINE"
30+
"NET461_CUSTOM_DEFINE"
3131
]
3232
}
3333
},

test/WebSites/RoutingWebSite/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"Microsoft.AspNetCore.StaticFiles": "1.2.0-*"
1414
},
1515
"frameworks": {
16-
"net451": {},
16+
"net461": {},
1717
"netcoreapp1.1": {
1818
"dependencies": {
1919
"Microsoft.NETCore.App": {

0 commit comments

Comments
 (0)