Remove check for using ANCM with Win7. (#1235)

This commit is contained in:
Justin Kotalik 2017-10-03 16:43:12 -07:00 committed by GitHub
parent a63932a492
commit 36bede16e9
1 changed files with 8 additions and 16 deletions

View File

@ -109,13 +109,6 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting
if (serverConfig.Contains("[ANCMPath]")) if (serverConfig.Contains("[ANCMPath]"))
{ {
string ancmPath; string ancmPath;
if (!IsWin8OrLater)
{
// The nupkg build of ANCM does not support Win7. https://github.com/aspnet/AspNetCoreModule/issues/40.
ancmPath = @"%ProgramFiles%\IIS Express\aspnetcore.dll";
}
else
{
// We need to pick the bitness based the OS / IIS Express, not the application. // We need to pick the bitness based the OS / IIS Express, not the application.
// We'll eventually add support for choosing which IIS Express bitness to run: https://github.com/aspnet/Hosting/issues/880 // We'll eventually add support for choosing which IIS Express bitness to run: https://github.com/aspnet/Hosting/issues/880
var ancmFile = Is64BitHost ? "aspnetcore_x64.dll" : "aspnetcore_x86.dll"; var ancmFile = Is64BitHost ? "aspnetcore_x64.dll" : "aspnetcore_x86.dll";
@ -129,7 +122,6 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting
{ {
ancmPath = Path.Combine(contentRoot, ancmFile); ancmPath = Path.Combine(contentRoot, ancmFile);
} }
}
if (!File.Exists(Environment.ExpandEnvironmentVariables(ancmPath))) if (!File.Exists(Environment.ExpandEnvironmentVariables(ancmPath)))
{ {