Re: 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 :slight_smile:

Any ideas?

-A

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: [email protected]
[mailto:[email protected]] On Behalf Of andrew Wilson
Sent: Tuesday, January 12, 2010 8:43 AM
To: [email protected]
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 :slight_smile:

Any ideas?

-A
On Mon, Jan 11, 2010 at 10:14 PM,
<[email protected]mailto:[email protected]>
wrote:
Send Ironruby-core mailing list submissions to
[email protected]mailto:[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
http://rubyforge.org/mailman/listinfo/ironruby-core
or, via email, send a message with subject or body ‘help’ to
[email protected]mailto:[email protected]

You can reach the person managing the list at
[email protected]mailto:[email protected]

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 <[email protected]mailto:[email protected]>
To: [email protected]mailto:[email protected]
Subject: [Ironruby-core] InternalsVisibleTo
Message-ID:
<[email protected]mailto:[email protected]>
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 :slight_smile:

-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


Message: 2
Date: Tue, 12 Jan 2010 05:13:55 +0000
From: Jimmy S.
<[email protected]mailto:[email protected]>
To: “[email protected]mailto:[email protected]
<[email protected]mailto:[email protected]>
Subject: Re: [Ironruby-core] InternalsVisibleTo
Message-ID:
<[email protected]mailto:[email protected]>

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:
[email protected]mailto:[email protected]
[mailto:[email protected]mailto:[email protected]]
On Behalf Of andrew Wilson
Sent: Monday, January 11, 2010 9:06 PM
To: [email protected]mailto:[email protected]
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 :slight_smile:

-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



Ironruby-core mailing list
[email protected]mailto:[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core

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


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs