Update aspnet50/aspnetcore50 => dnx451/dnxcore50.

This commit is contained in:
N. Taylor Mullen 2015-03-08 12:51:38 -07:00
parent 2ecb358c10
commit 58c8e44786
13 changed files with 35 additions and 35 deletions

View File

@ -1,4 +1,4 @@
{ {
"webroot": "wwwroot", "webroot": "wwwroot",
"exclude": [ "exclude": [
"wwwroot", "wwwroot",
@ -47,7 +47,7 @@
"prepare": [ "grunt bower:install" ] "prepare": [ "grunt bower:install" ]
},*/ },*/
"frameworks": { "frameworks": {
"aspnet50": {}, "dnx451": {},
"aspnetcore50": {} "dnxcore50": {}
} }
} }

View File

@ -1,4 +1,4 @@
{ {
"authors": [ "authors": [
"Microsoft" "Microsoft"
], ],
@ -42,7 +42,7 @@
"web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.WebListener --server.urls http://localhost:5002" "web": "Microsoft.AspNet.Hosting --server Microsoft.AspNet.Server.WebListener --server.urls http://localhost:5002"
}, },
"frameworks": { "frameworks": {
"aspnet50": { }, "dnx451": { },
"aspnetcore50": { } "dnxcore50": { }
} }
} }

View File

@ -97,7 +97,7 @@ namespace E2ETests
//Reason to do pack here instead of in a common place is use the right runtime to do the packing. Previous line switches to use the right runtime. //Reason to do pack here instead of in a common place is use the right runtime to do the packing. Previous line switches to use the right runtime.
if (startParameters.BundleApplicationBeforeStart) if (startParameters.BundleApplicationBeforeStart)
{ {
#if ASPNET50 #if DNX451
if (startParameters.ServerType == ServerType.IISNativeModule || if (startParameters.ServerType == ServerType.IISNativeModule ||
startParameters.ServerType == ServerType.IIS) startParameters.ServerType == ServerType.IIS)
{ {
@ -145,7 +145,7 @@ namespace E2ETests
} }
} }
#if ASPNET50 #if DNX451
if (startParameters.ServerType == ServerType.IISNativeModule || if (startParameters.ServerType == ServerType.IISNativeModule ||
startParameters.ServerType == ServerType.IIS) startParameters.ServerType == ServerType.IIS)
{ {
@ -360,7 +360,7 @@ namespace E2ETests
if (startParameters.ServerType == ServerType.IISNativeModule || if (startParameters.ServerType == ServerType.IISNativeModule ||
startParameters.ServerType == ServerType.IIS) startParameters.ServerType == ServerType.IIS)
{ {
#if ASPNET50 #if DNX451
// Stop & delete the application pool. // Stop & delete the application pool.
if (startParameters.IISApplication != null) if (startParameters.IISApplication != null)
{ {
@ -424,4 +424,4 @@ namespace E2ETests
} }
} }
} }
} }

View File

@ -29,7 +29,7 @@ namespace E2ETests
catch (AggregateException exception) catch (AggregateException exception)
{ {
if (exception.InnerException is HttpRequestException if (exception.InnerException is HttpRequestException
#if ASPNET50 #if DNX451
|| exception.InnerException is WebException || exception.InnerException is WebException
#endif #endif
) )
@ -41,4 +41,4 @@ namespace E2ETests
} }
} }
} }
} }

View File

@ -1,4 +1,4 @@
#if ASPNET50 #if DNX451
using System; using System;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
@ -78,4 +78,4 @@ namespace E2ETests
} }
} }
} }
#endif #endif

View File

@ -27,8 +27,8 @@
public string Runtime { get; set; } public string Runtime { get; set; }
#if ASPNET50 #if DNX451
public IISApplication IISApplication { get; set; } public IISApplication IISApplication { get; set; }
#endif #endif
} }
} }

View File

@ -64,7 +64,7 @@ namespace E2ETests
private string PrefixBaseAddress(string url) private string PrefixBaseAddress(string url)
{ {
#if ASPNET50 #if DNX451
url = (_startParameters.ServerType == ServerType.IISNativeModule || url = (_startParameters.ServerType == ServerType.IISNativeModule ||
_startParameters.ServerType == ServerType.IIS) ? _startParameters.ServerType == ServerType.IIS) ?
string.Format(url, _startParameters.IISApplication.VirtualDirectoryName) : string.Format(url, _startParameters.IISApplication.VirtualDirectoryName) :
@ -295,7 +295,7 @@ namespace E2ETests
private string CreateAlbum() private string CreateAlbum()
{ {
var albumName = Guid.NewGuid().ToString().Replace("-", string.Empty).Substring(0, 12); var albumName = Guid.NewGuid().ToString().Replace("-", string.Empty).Substring(0, 12);
#if ASPNET50 #if DNX451
string dataFromHub = null; string dataFromHub = null;
var OnReceivedEvent = new AutoResetEvent(false); var OnReceivedEvent = new AutoResetEvent(false);
var hubConnection = new HubConnection(_applicationBaseUrl + "SignalR"); var hubConnection = new HubConnection(_applicationBaseUrl + "SignalR");
@ -328,7 +328,7 @@ namespace E2ETests
responseContent = response.Content.ReadAsStringAsync().Result; responseContent = response.Content.ReadAsStringAsync().Result;
Assert.Equal<string>(_applicationBaseUrl + "Admin/StoreManager", response.RequestMessage.RequestUri.AbsoluteUri); Assert.Equal<string>(_applicationBaseUrl + "Admin/StoreManager", response.RequestMessage.RequestUri.AbsoluteUri);
Assert.Contains(albumName, responseContent); Assert.Contains(albumName, responseContent);
#if ASPNET50 #if DNX451
_logger.LogInformation("Waiting for the SignalR client to receive album created announcement"); _logger.LogInformation("Waiting for the SignalR client to receive album created announcement");
OnReceivedEvent.WaitOne(TimeSpan.FromSeconds(10)); OnReceivedEvent.WaitOne(TimeSpan.FromSeconds(10));
dataFromHub = dataFromHub ?? "No relevant data received from Hub"; dataFromHub = dataFromHub ?? "No relevant data received from Hub";
@ -448,4 +448,4 @@ namespace E2ETests
} }
} }
} }
} }

View File

@ -56,7 +56,7 @@ namespace E2ETests
try try
{ {
hostProcess = DeploymentUtility.StartApplication(_startParameters, _logger); hostProcess = DeploymentUtility.StartApplication(_startParameters, _logger);
#if ASPNET50 #if DNX451
if (serverType == ServerType.IISNativeModule || serverType == ServerType.IIS) if (serverType == ServerType.IISNativeModule || serverType == ServerType.IIS)
{ {
// Accomodate the vdir name. // Accomodate the vdir name.
@ -103,4 +103,4 @@ namespace E2ETests
} }
} }
} }
} }

View File

@ -120,7 +120,7 @@ namespace E2ETests
try try
{ {
hostProcess = DeploymentUtility.StartApplication(_startParameters, _logger); hostProcess = DeploymentUtility.StartApplication(_startParameters, _logger);
#if ASPNET50 #if DNX451
if (serverType == ServerType.IISNativeModule || serverType == ServerType.IIS) if (serverType == ServerType.IISNativeModule || serverType == ServerType.IIS)
{ {
// Accomodate the vdir name. // Accomodate the vdir name.
@ -245,4 +245,4 @@ namespace E2ETests
} }
} }
} }
} }

View File

@ -1,4 +1,4 @@
using System; using System;
using System.IO; using System.IO;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNet.Authentication.Facebook; using Microsoft.AspNet.Authentication.Facebook;
@ -187,7 +187,7 @@ namespace MusicStore
}; };
options.StateDataFormat = new CustomTwitterStateDataFormat(); options.StateDataFormat = new CustomTwitterStateDataFormat();
options.BackchannelHttpHandler = new TwitterMockBackChannelHttpHandler(); options.BackchannelHttpHandler = new TwitterMockBackChannelHttpHandler();
#if ASPNET50 #if DNX451
options.BackchannelCertificateValidator = null; options.BackchannelCertificateValidator = null;
#endif #endif
}); });
@ -231,4 +231,4 @@ namespace MusicStore
SampleData.InitializeMusicStoreDatabaseAsync(app.ApplicationServices).Wait(); SampleData.InitializeMusicStoreDatabaseAsync(app.ApplicationServices).Wait();
} }
} }
} }

View File

@ -1,4 +1,4 @@
{ {
"compilationOptions": { "compilationOptions": {
"warningsAsErrors": "true" "warningsAsErrors": "true"
}, },
@ -16,7 +16,7 @@
"xunit.runner.kre": "1.0.0-*" "xunit.runner.kre": "1.0.0-*"
}, },
"frameworks": { "frameworks": {
"aspnet50": { "dnx451": {
"frameworkAssemblies": { "frameworkAssemblies": {
"System.Data": "", "System.Data": "",
"System.Net.Http": "", "System.Net.Http": "",
@ -24,4 +24,4 @@
} }
} }
} }
} }

View File

@ -12,6 +12,6 @@
"test": "xunit.runner.kre" "test": "xunit.runner.kre"
}, },
"frameworks": { "frameworks": {
"aspnet50": { } "dnx451": { }
} }
} }

View File

@ -12,6 +12,6 @@
"test": "xunit.runner.kre" "test": "xunit.runner.kre"
}, },
"frameworks": { "frameworks": {
"aspnet50": { } "dnx451": { }
} }
} }