Why can't I get Type.GetType() to find the type of my plugin instance referenced in app.config?

前端 未结 3 2003
情话喂你
情话喂你 2021-01-21 04:06

So here\'s the deal. I\'ve got my solution which has a few projects in it:

  • A wrapper project - this is just a console app that\'s currently standing in for a wind
3条回答
  •  灰色年华
    2021-01-21 04:19

    Is pluginTypeName using assembly-qualified naming? Is the Assembly that contains pluginTypeName showing as being loaded?

    If you're using the Assembly-qualified name then .NET should be able to automatically load the assembly for you; if you aren't then I would guess that Type.GetType() is returning null since it can't locate an assembly containing the requested type.

提交回复
热议问题