# Re: InternalsVisibleTo

**URL:** <https://www.ruby-forum.com/t/re-internalsvisibleto/181486>\
**Category:** IronRuby\
**Created:** [January 12, 2010, 5:43pm UTC](https://www.ruby-forum.com/t/re-internalsvisibleto/181486 "2010-01-12T17:43:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrew\_Wilson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@andrew\_Wilson](https://www.ruby-forum.com/u/andrew_Wilson)\
**Post date:** [January 12, 2010, 5:43pm UTC](https://www.ruby-forum.com/t/re-internalsvisibleto/181486/1 "2010-01-12T17:43:08Z")

</div>

Jimmy,

Yes that worked, but it did point out another problem. When I do:

My::Domain.constants

I have somewhere like 15 references to .dll’s that won’t load unless I  
copy  
them off to the bin folder for IronRuby. The references for each of  
them  
are to their physical path, so I would have thought that to solve that  
issue. It’s not a major deal for now, but its kinda hokey copying those  
files over 🙂

Any ideas?

-A

---

<div class="post-metadata">

**Author:** ![andrew\_Wilson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@andrew\_Wilson](https://www.ruby-forum.com/u/andrew_Wilson)\
**Post date:** [January 12, 2010, 8:39pm UTC](https://www.ruby-forum.com/t/re-internalsvisibleto/181486/2 "2010-01-12T20:39:19Z")

</div>

Have you tried requiring them? “require ‘foo’” will look on the path for  
foo.rb, as well as foo.dll. If you could provide a small repro of your  
issue I can give more help.

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of andrew Wilson  
Sent: Tuesday, January 12, 2010 8:43 AM  
To: removed\_email\_address@domain.invalid  
Subject: Re: [Ironruby-core] InternalsVisibleTo

Jimmy,

Yes that worked, but it did point out another problem. When I do:

My::Domain.constants

I have somewhere like 15 references to .dll’s that won’t load unless I  
copy them off to the bin folder for IronRuby. The references for each  
of them are to their physical path, so I would have thought that to  
solve that issue. It’s not a major deal for now, but its kinda hokey  
copying those files over 🙂

Any ideas?

-A  
On Mon, Jan 11, 2010 at 10:14 PM,  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\>  
wrote:  
Send Ironruby-core mailing list submissions to  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

To subscribe or unsubscribe via the World Wide Web, visit  
[http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)  
or, via email, send a message with subject or body ‘help’ to  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

You can reach the person managing the list at  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

When replying, please edit your Subject line so it is more specific  
than “Re: Contents of Ironruby-core digest…”

Today’s Topics:

1. InternalsVisibleTo (andrew Wilson)
2. Re: InternalsVisibleTo (Jimmy S.)

* * *

Message: 1  
Date: Mon, 11 Jan 2010 22:06:23 -0700  
From: andrew Wilson \<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\>  
To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: [Ironruby-core] InternalsVisibleTo  
Message-ID:  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\>  
Content-Type: text/plain; charset=“iso-8859-1”

I know this is a bit of a longshot, but has anyone got an  
internalsvisibleto  
attribute to work so they could debug internal classes from ir itself?  
I  
tried to add the namespace “ir” and public key to the assembly I was  
trying  
to test to no avail.

Im building out some rspec & IronRuby tests of my .net assemblies and it  
would be nice if I could reach out and touch some internal classes 🙂

-A

–  
When I wrote this, only God and I understood what I was doing. Now, God  
only knows - Karl Weierstrass  
-------------- next part --------------  
An HTML attachment was scrubbed…  
URL:  
[http://rubyforge.org/pipermail/ironruby-core/attachments/20100111/05457b09/attachment-0001.html](http://rubyforge.org/pipermail/ironruby-core/attachments/20100111/05457b09/attachment-0001.html)

* * *

Message: 2  
Date: Tue, 12 Jan 2010 05:13:55 +0000  
From: Jimmy S.  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\>  
To: “removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)”  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\>  
Subject: Re: [Ironruby-core] InternalsVisibleTo  
Message-ID:  
\<removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)\>

Content-Type: text/plain; charset=“us-ascii”

Running IronRuby with the “-X:PrivateBinding” will allow access to  
private members, which should also work for internal members (I believe,  
try it out just to be sure and report back).

From:  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
On Behalf Of andrew Wilson  
Sent: Monday, January 11, 2010 9:06 PM  
To: removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: [Ironruby-core] InternalsVisibleTo

I know this is a bit of a longshot, but has anyone got an  
internalsvisibleto attribute to work so they could debug internal  
classes from ir itself? I tried to add the namespace “ir” and public  
key to the assembly I was trying to test to no avail.

Im building out some rspec & IronRuby tests of my .net assemblies and it  
would be nice if I could reach out and touch some internal classes 🙂

-A

–  
When I wrote this, only God and I understood what I was doing. Now, God  
only knows - Karl Weierstrass  
-------------- next part --------------  
An HTML attachment was scrubbed…  
URL:  
[http://rubyforge.org/pipermail/ironruby-core/attachments/20100112/aaad5e6f/attachment.html](http://rubyforge.org/pipermail/ironruby-core/attachments/20100112/aaad5e6f/attachment.html)

* * *

* * *

Ironruby-core mailing list  
removed\_email\_address@domain.invalid[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
[http://rubyforge.org/mailman/listinfo/ironruby-core](http://rubyforge.org/mailman/listinfo/ironruby-core)

End of Ironruby-core Digest, Vol 29, Issue 15

* * *
