kumaryu/irpack — Issue #2: Script in generated .exe cannot find standart CLR dll.
Author: aXe1
Created: 2011-11-14 22:36:38+00:00
State: open

I'm trying to pack this app:

require 'PresentationFramework'
win = System::Windows::Window.new
win.title = 'IronRuby and WPF Interop'
mainButton = System::Windows::Controls::Button.new
mainButton.content = 'I\'m a WPF button — press me'
mainButton.click do |sender, args|
System::Windows::MessageBox.Show("Created using IronRuby!")
end
win.content = mainButton
my_app = System::Windows::Application.new
my_app.run win

It fails to run until I manually add PresentationFramework.dll into exe. Why it doesn't see .NET dll's in standart location? Also why do you need to pack some dll's that seems to be preinstalled?

Microsoft.Dynamic.dll
Microsoft.Scripting.dll
Microsoft.Scripting.Metadata.dll

Without these dlls inside result .exe will be thin enough.