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

前端 未结 3 1979
情话喂你
情话喂你 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:25

    Instead of calling Type.GetType(pluginTypeName), try Type.GetType(pluginTypeName, true). The boolean parameter indicates if the call should throw an exception in the event of a failure, instead of returning null - this way, you should get a (hopefully) better description of why GetType is failing instead of just a mysterious null!

提交回复
热议问题