尝试运行此功能时出现错误:
var directory = directoriesController.Create(Input);
错误
System.TypeLoadException:'无法加载类型 来自的“ CentralApplicationSettings.Configuration.DirectoryManager” 程序集'CentralApplicationSettings,版本= 1.0.0.0, Culture = neutral,PublicKeyToken = null'。'
这是我的解决方案(Application1)的结构
回购引用了另一个项目.dll
这些是我在Application1 csproj中拥有的引用
<ItemGroup>
<ProjectReference Include="..\Application1.Data\Application1.Data.csproj" />
</ItemGroup>
<ItemGroup>
<Reference Include="CentralApplicationSettings">
<HintPath>..\..\CentralApplicationSettings\CentralApplicationSettings\bin\Debug\netcoreapp2.1\CentralApplicationSettings.dll</HintPath>
</Reference>
</ItemGroup>
我试图直接通过引用窗口或.csproj删除并重新添加引用,重新编译并重新运行,但它仍然出现。