Use Assembly's containing directory to locate precompiled views assembly

This commit is contained in:
Pranav K 2016-10-07 10:36:39 -07:00
parent 80da4611d9
commit a623b4edd1
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Compilation
+ PrecompiledViewsAssemblySuffix
+ ".dll";
var precompiledAssemblyFilePath = Path.Combine(
assemblyPart.Assembly.Location,
Path.GetDirectoryName(assemblyPart.Assembly.Location),
precompiledAssemblyFileName);
if (File.Exists(precompiledAssemblyFilePath))