ABP Module assembly loading

0

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'

asp.net-core
aspnetboilerplate
asked on Stack Overflow Mar 30, 2020 by kyotos • edited Mar 31, 2020 by David Buck

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0