Tomas,
I tried it again. I couldn't get the following to work with my own DLL even
If I capitalize the namespace (It does work fine with build in types like
System.String):
> System::Type.get_type("Abc.Hi, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null")
Do I have any other options?
Tha
I get the same behavior.
I can load types from the CLR but not from my own assembly.
I copied my assembly into the folder that contains ir.exe
>>> require 'mscorlib'
=> true
>>> require 'IronNails.Library, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null'
=> true
>>> IronNails::View::XamlPro
Can you load the assembly and get the type explicitly?
require ‘mscorlib’
System::Reflection::Assembly.Load(“IronNails.Library, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null").GetType('IronNails.View.XamlProxy’)
Tomas
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ivan P
Yes that works
On Mon, Dec 8, 2008 at 8:11 PM, Tomas Matousek <[EMAIL PROTECTED]
> wrote:
> Can you load the assembly and get the type explicitly?
>
>
>
> require 'mscorlib'
>
> System::Reflection::Assembly.Load("IronNails.Library, Version=1.0.0.0,
> Culture=neutral, PublicKeyToken=null").GetTy
Ok, I got Assembly.Load and Type.get_type both to work with my own DLL.
The actual DLL have to live where ir.exe lives. Is there a way for it to
look in the directory of the ruby file? Like the way require statement
work.
Aaron
On Mon, Dec 8, 2008 at 2:11 PM, Tomas Matousek <[EMAIL PROTECTED
You can use Assembly.LoadFile and point it to an absolute path instead.
Tomas
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Feng
Sent: Monday, December 08, 2008 12:33 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Handling C# lower case namespaces
Ok, I g
Hi Aaron!
I'm doing this way for now:
require '../../your_folder/your_assembly.dll'
?
2008/12/8 Aaron Feng <[EMAIL PROTECTED]>:
> Ok, I got Assembly.Load and Type.get_type both to work with my own DLL.
> The actual DLL have to live where ir.exe lives. Is there a way for it to
> look in the di
I tried to load the struct the same way, but I don't know how to set the
value of it. For example:
C#
namespace x.y.z {
public struct Foo {
public long Bar;
public Foo(long bar) {
this.Bar = bar;
}
}
}
var foo = new x.y.z.Foo(1);
IronRuby
Foo = Type
Normally
foo = x::y::z::Foo.new(1)
in the console you need to use global variables:$foo = x::y::z::Foo.new(1)
On Mon, Dec 8, 2008 at 10:43 PM, Aaron Feng <[EMAIL PROTECTED]> wrote:
> I tried to load the struct the same way, but I don't know how to set the
> value of it. For example:
>
> C#
>
>
Ivan,
In this case you actually can't do foo = x::y::z::Foo.new(1) because
IronRuby doesn't support lowercase namespace. It think it's a method call.
That's why I started out
Foo = Type.get_type("x.y.z.Foo, MyAssembly, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null", true).to_class
Aaron
Hello,
First let me apologise for the length of this mail - it's not quite as long
as it looks, a lot of the text is error messages :(
Anyway, I can now build from rake compile, however I'm having trouble
building from Visual Studio 2008 SP1.
The first thing that it complains about is something
Welcome to the "wonderful" world of Fusion.
If you use Assembly.LoadFrom, then you can only use the assembly reference
itself to get the types. The canonical names don't match assemblies loaded
using LoadFrom. To use Assembly.Load, it has to be in one of the approved
search paths (which, by default
Terence,
Sorry for the issues you're having, crazy build breaks and signing are never
fun. Microsoft requires us to sign any binaries we produce, so providing access
to our repository is a pain because we can't distribute the private key used in
signing. Jim is going to fix this so builds by de
Yeah, the git repo doesn't seem as smooth as the svn head.. yet. Out of
curiosity have you tried the SVN head yet?
Also, you can start visual studio and attach to a running ir console session
to do debugging if necessary.
On Mon, Dec 8, 2008 at 6:01 PM, Terence Lewis <[EMAIL PROTECTED]> wrote:
tfpt review "/shelveset:rt;REDMOND\sborde"
Comment :
Simple fixes to the simple_test.rb runner as I was trying to get a feel for
all the moving parts in Ruby testing. "finished" was not setting the exitcode,
and so we were ignoring some failures, I disabled some of the tests, and fixed
t
Can you update Alias.ps1 as well? Otherwise looks good.
JD
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shri Borde
Sent: Monday, December 08, 2008 4:42 PM
To: IronRuby External Code Reviewers
Cc: ironruby-core@rubyforge.org
Subject: [Ironruby-core] Cod
Presumably turning off strong name validation for the public key token would
work as well... no?
On Mon, Dec 8, 2008 at 7:02 PM, Jimmy Schementi <
[EMAIL PROTECTED]> wrote:
> Terence,
>
> Sorry for the issues you're having, crazy build breaks and signing are
> never fun. Microsoft requires us to
I successfully have the GitHub repo building on Mono 2.3 on Linux. Yes,
you'll have to use the Mono SVN head version. Also Microsoft.Dynamic.dll
does not compile, neither does the Test assemblies, however everything
needed to run ir.exe does. The main issue right now seems to be that
System.Dyna
Looks good.
Tomas
-Original Message-
From: Jim Deville
Sent: Monday, December 08, 2008 4:59 PM
To: ironruby-core@rubyforge.org; IronRuby External Code Reviewers
Subject: RE: Code Review: Simple ruby fixes
Can you update Alias.ps1 as well? Otherwise looks good.
JD
-Original Message-
I had Pete try that, and it didn't work, but he might be hitting a different
issue. So yes, Skip verification (via sn -Vr) should work as well.
JD
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael Letterle
Sent: Monday, December 08, 2008 4:05 PM
To: ironruby-core@rubyforge.o
I've actually just managed to get this to work. I had to remove the 3
signing xml tags from every project in the solution (not just the 3 Jimmy
mentioned). I also had to remove the definition of SIGNED from every project
that had it (which wasn't all of them). Once this was done, all projects
built
I'd be interested in the diff. You should be able to go into Vim, open the
file, and run :set fileformat=unix followed by a :wq to save it. That should
convert line endings for you. I can't guarantee we'll use it, but I'd like to
see what you had to do.
Ir.exe in a Merlin environment should use
22 matches
Mail list logo