1
var configuration = new ContainerConfiguration()
.WithAssembly(typeof(MefScope).Assembly, conventions);
nerede MefScope alıyorum hataları
Error 7 Argument 1: cannot convert from 'System.Reflection.Assembly
[c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\mscorlib.dll]' to
'System.Reflection.Assembly' D:\MyTest\___rc\PB\MyTest.Test\MefScope.cs 33 35 MyTest.Test
Error 6 The best overloaded method match for 'System.Composition.Hosting.ContainerConfiguration.WithAssembly(System.Reflection.Assembly, System.Composition.Convention.AttributedModelProvider)'
has some invalid arguments D:\MyTest\___rc\PB\MyTest.Test\MefScope.cs 33 21 MyTest.Test
ve
olan sınıf olan yukarıdaki hattı (satır 32)gerçekleşiyor ise
Error 5 The type 'System.Reflection.Assembly' is defined in an assembly that is not referenced.
You must add a reference to assembly 'System.Reflection, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. D:\MyTest\___rc\PB\MyTest.Test\MefScope.cs 32 13 MyTest.Test
Bu dll uyumsuzluğu çeşit sanıyorum ama System.Reflection, Sürüm = 4.0.0.0 nerede olduğunu anlamaya olamaz. Belki de hep birlikte noktayı kaçırıyorum.
bir çeşit ruh bana doğru yönde işaret olabilir. Kullanmam gerekiyor. Net 4.5.1.