Questions tagged [ironruby]

IronRuby is an open-source implementation of the Ruby programming language which is tightly integrated with the .NET Framework.

268 questions
2
votes
1 answer

using C# DLL in IronRuby

I using C# DLL ServiceStack.redis in IronRuby. Form Designer was SharpDevelop. the code is: require 'redis/ServiceStack.Redis' # redis is subfolder in project ... def Button1Click(sender, e) object = …
DarkSpy
  • 91
  • 5
2
votes
4 answers

Microsoft.Scripting.Hosting.ScriptEngine not referencing

I am building a .NET project with C# using IronPython 2.6.2 and IronRuby 1.1.3, with reference to the Microsoft.Scripting and Microsoft.Scripting.Core libraries provided by the IronPython distribution. However, Visual Studio is complaining about…
Frank
  • 360
  • 2
  • 11
2
votes
3 answers

Can I create a WCF service without using attributes?

The way you seem to declare WCF services is to create an interface in C# or VB, and then tag it with ServiceContractAttribute and it's methods with OperationContractAttribute. The issue is, I'd like to try creating one from IronRuby or IronPython,…
Orion Edwards
  • 121,657
  • 64
  • 239
  • 328
2
votes
3 answers

Why do I get an error while compiling IronRuby in Ruby 1.8.7?

I can't seem to compile ironruby in ruby 1.8.7. I always get this error: no such file to load -- windows/path Does this mean that ironruby is not compatible with ruby 1.8.7?
Marc Vitalis
  • 2,129
  • 4
  • 24
  • 36
2
votes
1 answer

Embedding both IronRuby and IronPython

I am trying to run both ironruby and ironpython at the sample application. I am getting an exception - Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --->…
Yosi
  • 2,936
  • 7
  • 39
  • 64
2
votes
1 answer

Is this the simplest way to print 'Hello World' using PowerShell from C#?

Console.WriteLine( PowerShell .Create() .AddScript("'Hello from PowerShell'") .Invoke()[0] ); Here are IronPython and IronRuby Python.CreateEngine() .Execute("print 'Hello from IronPython'"); Ruby.CreateEngine() …
Doug Finke
  • 6,675
  • 1
  • 31
  • 47
2
votes
1 answer

IronRuby Stack Trace

Greetings! We're working on an IronRuby project. There's a C# WPF application. We wrote a module for that application. When an error is raised in IronRuby, the application shows a message box. It only shows the error message. It does not show which…
Jon Abaca
  • 821
  • 1
  • 9
  • 14
2
votes
4 answers

Does Watir work with Ironruby(or .Net in any other way)?

So I've been trying to get Watir setup with Ironruby so I can use Watir instead of Watin(I just dont like Watin that much), the only issue is I cant seem to get it working, and searches bring me to some conflicting info. Some say it wont work,…
James
  • 5,622
  • 9
  • 34
  • 42
2
votes
3 answers

DLR Scripting within Silverlight 4 Application

I would like to add some scripting support to a Silverlight 4 application that I'm working on. I have the latest stable releases of both IronRuby and IronPython installed on my machine with Visual Studio 2010. I looked at some samples of using the…
2
votes
2 answers

Cucumber parse speed

We have been using Cucumber for some time now, and now have over 200 scenarios. Our startup speed is getting very slow, which makes a big difference in our edit-test-commit cycle. The problem seems to be the parsing of the feature files. Is there a…
kerkeslager
  • 1,364
  • 4
  • 17
  • 34
2
votes
6 answers

IronRuby vs. regular Ruby, to develop Rails apps on Windows

For non-Rails work, regular Ruby works fine on my Windows 7 machine. But I'm about to start some Rails work that will use SQL Server as a database, and trying to get Rails set up has been a total pain so far. (I still can't get sqlite3 or SQL Server…
grautur
  • 29,955
  • 34
  • 93
  • 128
2
votes
1 answer

Using IronRuby or IronPython to modify a list of C# objects

If I had a list of objects eg. List where Foo has a couple of properties, could I then create one or more ironruby or ironpython scripts that run for each row. Here is some pseudo code: var items = new List(); foreach(var item in items)…
Schotime
  • 15,707
  • 10
  • 46
  • 75
2
votes
0 answers

IronRuby Rake and -X:PrivateBinding

I'm trying to setup a Rake script to run all my IronRuby rspec tests. The tests need to have access to internal constructors and methods. IronRuby supports this with the -X:PrivateBinding switch on ir.exe. So, for example, if my test is called…
Kevin Berridge
  • 6,251
  • 6
  • 41
  • 42
2
votes
2 answers

Why do some WPF binding fail against IronRuby properties?

So, lets say I have two nearly identical classes in C# and Ruby: C# public class Test { public Test() { ImageLocation = "http://www.ironruby.net/@api/deki/site/logo.png"; } public string ImageLocation { get; set;…
Brian Genisio
  • 47,787
  • 16
  • 124
  • 167
2
votes
1 answer

IronRuby on Rails with IIS 7

I'm trying to get a Rails app built with IronRuby running on IIS 7. I followed all the tutorial given on the IronRuby site but I can't seem to get it to work. The app runs fine hosted under WebBrick but IIS doesn't seem to host it properly. Here is…
Adam
  • 1,561
  • 2
  • 15
  • 25