From afb36d96677067c0d869830eb9bea8313c8a1e39 Mon Sep 17 00:00:00 2001 From: Justin Kotalik Date: Tue, 14 Nov 2017 15:00:26 -0800 Subject: [PATCH] Files put in contentFiles are not actually in contentFiles (#1269) --- .../Deployers/IISExpressDeployer.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Microsoft.AspNetCore.Server.IntegrationTesting/Deployers/IISExpressDeployer.cs b/src/Microsoft.AspNetCore.Server.IntegrationTesting/Deployers/IISExpressDeployer.cs index 4a1907cda0..121070adba 100644 --- a/src/Microsoft.AspNetCore.Server.IntegrationTesting/Deployers/IISExpressDeployer.cs +++ b/src/Microsoft.AspNetCore.Server.IntegrationTesting/Deployers/IISExpressDeployer.cs @@ -112,16 +112,15 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting // We'll eventually add support for choosing which IIS Express bitness to run: https://github.com/aspnet/Hosting/issues/880 var ancmFile = Is64BitHost ? @"x64\aspnetcore.dll" : @"x86\aspnetcore.dll"; // Bin deployed by Microsoft.AspNetCore.AspNetCoreModule.nupkg - var ancmPath = Path.Combine(contentRoot, @"contentFiles\any\any\", ancmFile); - if (!File.Exists(Environment.ExpandEnvironmentVariables(ancmPath))) + if (!File.Exists(Environment.ExpandEnvironmentVariables(ancmFile))) { - throw new FileNotFoundException("AspNetCoreModule could not be found.", ancmPath); + throw new FileNotFoundException("AspNetCoreModule could not be found.", ancmFile); } - Logger.LogDebug("Writing ANCMPath '{ancmPath}' to config", ancmPath); + Logger.LogDebug("Writing ANCMPath '{ancmPath}' to config", ancmFile); serverConfig = - serverConfig.Replace("[ANCMPath]", ancmPath); + serverConfig.Replace("[ANCMPath]", ancmFile); } Logger.LogDebug("Writing ApplicationPhysicalPath '{applicationPhysicalPath}' to config", contentRoot);