Hi Jb,
Thanks for your reply. I have added the compact framework path and it works 
fine.

Thanks,
Dhananjay

On Wednesday, April 15, 2015 at 9:33:00 AM UTC-6, Jb Evain wrote:
>
> Hey,
>
> There's no desktop .NET framework with a mscorlib version 3.5, which is 
> why you're getting the exception.
>
> I don't know what you're reading (perhaps something for a compact 
> framework?) but it makes sense that you need to specify where the 
> mscorlib/framework libraries are using AddSearchDirectory.
>
> Jb
>
> On Wed, Apr 15, 2015 at 3:53 AM, Dhananjay Dhamale <[email protected] 
> <javascript:>> wrote:
>
>> Hi,
>>
>> I was attempting to read and write a dll which uses mscorlib.dll *version 
>> 3.5.* 
>>
>> When we try to process such dll GetCorlib(AssemblyNameReference, 
>> ReaderParameters) is throwing NotSupportedException( Version not supported 
>> 3.5.0.0) in the else part because it is not able to find a case for 
>> version.Major = 3 and no folder for v3.5 in framework. 
>>
>> The part of the stacktrace is as follows:
>>
>> at Mono.Cecil.BaseAssemblyResolver.GetCorlib(AssemblyNameReference 
>> reference, ReaderParameters parameters) in 
>> d:\share\UnitTestTools\MonoCecil\cecil-master\Mono.Cecil\BaseAssemblyResolver.cs:line
>>  
>> 252
>>
>>    at Mono.Cecil.BaseAssemblyResolver.Resolve(AssemblyNameReference name, 
>> ReaderParameters parameters) in 
>> d:\share\UnitTestTools\MonoCecil\cecil-master\Mono.Cecil\BaseAssemblyResolver.cs:line
>>  
>> 169
>>
>>    at Mono.Cecil.BaseAssemblyResolver.Resolve(AssemblyNameReference name) 
>> in 
>> d:\share\UnitTestTools\MonoCecil\cecil-master\Mono.Cecil\BaseAssemblyResolver.cs:line
>>  
>> 138
>>
>>    at Mono.Cecil.DefaultAssemblyResolver.Resolve(AssemblyNameReference 
>> name) in 
>> d:\share\UnitTestTools\MonoCecil\cecil-master\Mono.Cecil\DefaultAssemblyResolver.cs:line
>>  
>> 52
>>
>>    at Mono.Cecil.MetadataResolver.Resolve(TypeReference type) in 
>> d:\share\UnitTestTools\MonoCecil\cecil-master\Mono.Cecil\MetadataResolver.cs:line
>>  
>> 123
>>
>>    at Mono.Cecil.ModuleDefinition.Resolve(TypeReference type) in 
>> d:\share\UnitTestTools\MonoCecil\cecil-master\Mono.Cecil\ModuleDefinition.cs:line
>>  
>> 627
>>
>>
>> So, do we have a fix around for resolving assemblies build using mscorlib 
>> v3.5 ? 
>>
>> Thanks,
>> Dhananjay
>>
>> -- 
>> -- 
>> --
>> mono-cecil
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "mono-cecil" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
-- 
--
mono-cecil
--- 
You received this message because you are subscribed to the Google Groups 
"mono-cecil" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to