1

Topic: .net core 2.0 GetType returns null

Greetings! I had a problem by operation with units in autofac. It could not define  System. Type. GetType ("Union. BL.Common. Autofac, Union. BL") hence could not tighten a config of KontejnerBildera for layer BL.  that that I add to a high layer of the reference to all projects then above  the code fulfills and  works like clock-work. But what profit? Sense to decouple dependences why in normal.net works System. Type. GetType ("Union. BL.Common. Autofac, Union. BL") if assembly Union. BL lies under the project, and in.net core it is made through back. Who faced such problem? Thanks)

2

Re: .net core 2.0 GetType returns null

Hello, codenet, you wrote: a C> Greetings! Greetings, Likely because types for the present not loaded assembly should ask the full assembly name in Type. GetType () How much I remember the same behavior in a normal. net Framework. Try to Type. GetType () (where  right at the beginning application start) to cause typeof (Union. BL.Common. Autofac).ToString () all so would do from the first.net framework what not  with the full assembly name

3

Re: .net core 2.0 GetType returns null

Hello, VladCore, you wrote: VC> Hello, codenet, you wrote: a C>> Greetings! VC> greetings, VC> Likely because types for the present not loaded assembly should ask the full assembly name in Type. GetType () VC> How much I remember the same behavior in a normal. net Framework. VC> try to Type. GetType () (where  right at the beginning application start) to cause VC> VC> typeof (Union. BL.Common. Autofac).ToString () VC> VC> All so would do from the first.net framework what not  with the full assembly name Understand, in that that and sense to decouple dependence between units that such typeof (Union. BL.Common. Autofac).ToString () was not. typeof (Union. BL.Common. Autofac).ToString ToString () implies already that at layer WCF the link on BL eats implementation, instead of the interface at us is a layer of operation dataful (IDAL-> DAL), logic business (IBL-> BL) and presentation wcf (WCF) well and models (DomainModel) 1) knows presentation layer WCF only about IBL and  I register in a config that units are allocated in WCF.Autofac BL.Autofac DAL.Autofac {"modules": [{"type": "Union. Service. Configuration. Autofac, Union. Service", "parameters": {}, "properties": {}}, {"type": "Union. BL.Common. Autofac, Union. BL", "parameters": {}, "properties": {"keyNonce": "90E41F47-E111-4D14-BADF-5EEF714A711D"}}, {"type":" Union. DAL.Common. Autofac, Union. DAL "," parameters ": {},"properties": {}}]} 2) layer BL knows only about IBL IDAL DomainModel 3) layer DAL knows only about IDAL DomainModel but in depth  is visible when he reads a config and tries to define type typeof (" Union. BL.Common. Autofac, Union. BL ") from a config described above, it receives null. Assembly Union. BL lies near by at WCF. If to remove.net core: we create and   namespace plugin {public class PluginClass {}} we create and  the console application and it is enclosed dll simply near to  without adding in  class Program {static void Main (string [] args) {Console. WriteLine (Type. GetType (" plugin. PluginClass, plugin ").ToString ());}} we  plugin. PluginClass here also I think how to be if there are no barks does not want itself to conduct also that creates an operation problem  with units through configs (under my assumption).

4

Re: .net core 2.0 GetType returns null

Hello, codenet, you wrote: VC>> Try to Type. GetType () (where  right at the beginning application start) to cause VC>> VC>> typeof (Union. BL.Common. Autofac).ToString () VC>> VC>> All so would do from the first.net framework what not  with the full assembly name of a C> Understand, in that that and sense to decouple dependence between units that such C> typeof (Union. BL.Common. Autofac).ToString () was not. A C> typeof (Union. BL.Common. Autofac).ToString () implies already that at layer WCF the C link> on BL eats implementation, instead of the C interface> Nea. In public static int Main (string [] args) it is necessary only  on types which  rise. In remaining assembly any typeof (Union. BL.Common. Autofac).ToString () I could not advise.

5

Re: .net core 2.0 GetType returns null

It seems to me it is necessary to load sideways evidently at first: the link

6

Re: .net core 2.0 GetType returns null

Hello, notacat, you wrote: N> it seems to me it is necessary to load sideways evidently at first: N> the link thanks Unfortunately are similar to that! It is a pity that there are no barks so spoils life trifles.

7

Re: .net core 2.0 GetType returns null

Hello, codenet, you wrote: a C> thanks Unfortunately are similar to that! It is a pity that there are no barks so spoils life trifles.  the. net Framework in the same way conducts itself.