Use Assembly's containing directory to locate precompiled views assembly
This commit is contained in:
parent
80da4611d9
commit
a623b4edd1
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue