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
|
+ PrecompiledViewsAssemblySuffix
|
||||||
+ ".dll";
|
+ ".dll";
|
||||||
var precompiledAssemblyFilePath = Path.Combine(
|
var precompiledAssemblyFilePath = Path.Combine(
|
||||||
assemblyPart.Assembly.Location,
|
Path.GetDirectoryName(assemblyPart.Assembly.Location),
|
||||||
precompiledAssemblyFileName);
|
precompiledAssemblyFileName);
|
||||||
|
|
||||||
if (File.Exists(precompiledAssemblyFilePath))
|
if (File.Exists(precompiledAssemblyFilePath))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue