I'm developing a module on the ABP framework, one of the module dependency requires reference to Abp.AspNetCore
.
My problem is that when I build the project it outputs refs folder with Microsoft dependencies which results in a runtime error that gets thrown by ABP startup initialization:
System.BadImageFormatException: 'Could not load file or assembly 'Microsoft.AspNetCore.Antiforgery, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60, processorArchitecture=MSIL'. Reference assemblies should not be loaded for execution. They can only be loaded in the Reflection-only loader context. (0x80131058)'
If I delete the folder it runs fine but the Embedded View won't be loaded with the following error:
InvalidOperationException: Cannot find compilation library location for package 'Test.Web.Mvc'
User contributions licensed under CC BY-SA 3.0