Updates ANCM path to look in content files (#1268)
This commit is contained in:
parent
cd3f58bed7
commit
f27a5a674e
|
|
@ -108,20 +108,11 @@ namespace Microsoft.AspNetCore.Server.IntegrationTesting
|
|||
|
||||
if (serverConfig.Contains("[ANCMPath]"))
|
||||
{
|
||||
string ancmPath;
|
||||
// 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
|
||||
var ancmFile = Is64BitHost ? @"x64\aspnetcore.dll" : @"x86\aspnetcore.dll";
|
||||
// Bin deployed by Microsoft.AspNetCore.AspNetCoreModule.nupkg
|
||||
if (DeploymentParameters.RuntimeFlavor == RuntimeFlavor.CoreClr
|
||||
&& DeploymentParameters.ApplicationType == ApplicationType.Portable)
|
||||
{
|
||||
ancmPath = Path.Combine(contentRoot, @"runtimes\win7\native\", ancmFile);
|
||||
}
|
||||
else
|
||||
{
|
||||
ancmPath = Path.Combine(contentRoot, ancmFile);
|
||||
}
|
||||
var ancmPath = Path.Combine(contentRoot, @"contentFiles\any\any\", ancmFile);
|
||||
|
||||
if (!File.Exists(Environment.ExpandEnvironmentVariables(ancmPath)))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue