Why do I get a warning icon when I add a reference to an MEF plugin project?

后端 未结 23 1494
隐瞒了意图╮
隐瞒了意图╮ 2020-11-30 17:30

I wish to test the core class of a plugin by directly referencing the plugin project and instantiating the plugin class. When I create a test Console App project and add a p

23条回答
  •  悲哀的现实
    2020-11-30 18:30

    Based on the answer from @AljohnYamaro (sorry, couldn't comment on your answer, new account without enough reputation yet, but upvotaded you), I've checked the .csproj file.

    On my file, besides the standard project reference:

    
        true
        true
    
    

    There were also a directy link to the compiled dll from the referenced project:

    
        
        ..\ProjectA\bin\Debug\netcoreapp3.1\ProjectA.dll
        
    
    

    Removing this second reference solved the issue.

提交回复
热议问题