Page 1 of 1

Cannot locate nested CLR type message

PostPosted: Wed Feb 17, 2010 10:53 pm
by torial
I am porting some C# code that inherits from the BasicDesignerLoader class, and I get the following error:

error: Cannot locate nested CLR type "System.ComponentModel.Design.Serialization.BasicDesignerLoader+ReloadOptions" (simple name is "ReloadOptions").


The MSDN documentation is: http://msdn.microsoft.com/en-us/library ... 80%29.aspx

Is this a Cobra specific issue? Also, is there an easy workaround?

Re: Cannot locate nested CLR type message

PostPosted: Wed Feb 17, 2010 11:10 pm
by Charles
It's probably a bug in Cobra's reading of DLLs. But first remind me if you're using a release, or the latest source. (And if from source, do an update and install if you haven not in awhile.)

Unfortunately, this type of bug does not have a good workaround.

Let me know about the above.

Re: Cannot locate nested CLR type message

PostPosted: Thu Feb 18, 2010 12:22 am
by Charles
Can we get this down to a small example? What assemblies do I need to reference?
use System.ComponentModel
use System.ComponentModel.Design

class A inherits System.ComponentModel.Design.Serialization.BasicDesignerLoader
pass

class P
def main
pass

Re: Cannot locate nested CLR type message

PostPosted: Thu Feb 18, 2010 8:07 pm
by torial
Here's a basic repeat. I will test this code on my computer that has the latest from SVN (this computer just has the last release that was made).

Code: Select all
%% args -ref:System.Design

use System.ComponentModel
use System.ComponentModel.Design
use System.ComponentModel.Design.Serialization

class A inherits BasicDesignerLoader
    pass

class Program
    def main
        pass

Re: Cannot locate nested CLR type message

PostPosted: Thu Feb 18, 2010 10:40 pm
by torial
I confirmed it happens w/ the latest version of Cobra ( at least a few days old). as well.

Re: Cannot locate nested CLR type message

PostPosted: Fri Feb 19, 2010 3:25 pm
by Charles
A fix is forthcoming.

Re: Cannot locate nested CLR type message

PostPosted: Fri Feb 19, 2010 4:25 pm
by Charles
Fixed. When reading DLLs, the compiler was not picking up non-public nested types.