After created IronRuby project in VS2010 by using IronRuby v1.1.x, I was able to use almost .NET library by importing them. But can't actually compile ironruby into exe/DLL. I see the build option but can't build any exe or DLL from IronRuby project. Please help !
相关问题
- How do shader compilers work?
- C++ Builder - Difference between Lib and Res
- Why does constructing std::string(0) not emit a co
- How do you parse a dangling else?
- Relation between MSVC Compiler & linker option for
相关文章
- How to force Delphi compiler to display all hints
- Xcode - How to change application/project name : w
- What other neat tricks does the SpecialNameAttribu
- What is the purpose of “-Wa,option” in GCC? [close
- Why does the C++ compiler give errors after lines
- Can a compiler inline a virtual function if I use
- Which x86 C++ compilers are multithreaded by itsel
- Undefined reference to fork() in Code::Blocks edit
There's a great IronRuby gem that packages IronRuby files into a Windows executable.
https://github.com/kumaryu/irpack
To use:
Since Iron Ruby is simply DLR based code. You should be able to add the code into a resource of any assembly. Ultimately you'll need a bootstrap to load the code. That will most likely be a CLR language.
You can't compile your IronRuby classes into a .NET assembly and then access them from another assembly.
Preet is right that the nearest you can get is to embed your IronRuby scripts in (say) a C# assembly. From the C# side it would then be possible to instantiate your Ruby classes. So given the following Ruby class:
You could load this from a resource file and run it from C#: