2013-10-21 1 views
0

AOP 용으로 PostSharp 2.1을 사용하는 .net 4.0 응용 프로그램을 만들고 있습니다.
Microsoft.Bcl.Async가 안정되어 있으므로 async을이 응용 프로그램에서 사용하고 싶습니다. 그렇게 할 때PostSharp + Microsoft.Bcl.Async on .net

그러나, 나는 다음과 같은 PostSharp 문제로 실행 해요 :

PostSharp.Sdk.CodeModel.AssemblyLoadException: Cannot find assembly 'mscorlib, version=2.0.5.0, culture=neutral, publickeytoken=7cec85d7bea7798e'. [Public key mismatch] 
============ PostSharp Assembly Loading Log =================== 
LOG: Finding the assembly with binding identity 'mscorlib, version=2.0.5.0, culture=neutral, publickeytoken=7cec85d7bea7798e'. 
LOG: Probing location 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll' because this file was explicitly added to the search path. 
LOG: File 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll' has identity 'mscorlib, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089, processorarchitecture=msil'. 
LOG: File 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll' does not match the reference. 

에만 어셈블리가 참조를 컴파일 할 때 발생하는 System.ServiceModel 다음과 같은 코드가 포함

new FaultContractAttribute(typeof(SomeType)); 

나는 System.ServiceModel.FaultContractAttributector[__DynamicallyInvokable] 속성과 관련이 있다고 추측합니다.

"Performance critical to inline this type of method across NGen image boundaries". 

아무도 같은 문제에 부딪 혔습니까?

답변