There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
An assembly with the same simple name has already been imported
I've started getting this in my web application that makes use of RazorEngine. It started after an update in which I copied in some new DLLs. It's not always the same DLL it's failing on - sometimes it's one of my library DLLs and sometimes it's the web
app's DLL. There are not multiple copies of the DLLs. The template has previously been parsed and compiled (prior to the app restart from updating the /bin folder). Do the cached copies of the compiled templates get persisted somewhere that would cause problems
when an app restart occurs?
Error Parsing Template: RazorEngine.Templating.TemplateCompilationException: Unable to compile template. An assembly with the same simple name 'MyAssembly, Version=22.214.171.124, Culture=neutral, PublicKeyToken=null has already been imported. Try removing one of
the references or sign them to enable side-by-side. Other compilation errors may have occurred. Check the Errors property for more information. at RazorEngine.Compilation.DirectCompilerServiceBase.CompileType(TypeContext context) in C:\Dev\RazorEngine\src\Core\RazorEngine.Core\Compilation\DirectCompilerServiceBase.cs:line
106 at RazorEngine.Templating.TemplateService.CreateTemplateType(String razorTemplate, Type modelType) in C:\Dev\RazorEngine\src\Core\RazorEngine.Core\Templating\TemplateService.cs:line 287 at RazorEngine.Templating.TemplateService.GetTemplate[T](String razorTemplate,
T model, String name) in C:\Dev\RazorEngine\src\Core\RazorEngine.Core\Templating\TemplateService.cs:line 459 at RazorEngine.Templating.TemplateService.Parse[T](String razorTemplate, T model, String name) in C:\Dev\RazorEngine\src\Core\RazorEngine.Core\Templating\TemplateService.cs:line