# Minor nit in Rakefile (-r71)

**URL:** <https://www.ruby-forum.com/t/minor-nit-in-rakefile-r71/125796>\
**Category:** IronRuby\
**Created:** [January 12, 2008, 3:30am UTC](https://www.ruby-forum.com/t/minor-nit-in-rakefile-r71/125796 "2008-01-12T03:30:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Langston](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/c77e96/32.png) [@Jason\_Langston](https://www.ruby-forum.com/u/Jason_Langston)\
**Post date:** [January 12, 2008, 3:30am UTC](https://www.ruby-forum.com/t/minor-nit-in-rakefile-r71/125796/1 "2008-01-12T03:30:57Z")

</div>

Hey all,

Don’t know if it’s just me (I had to tweak the Rakefile to run under  
cygwin), but noticed a problem running the Rakefile. Specifically the  
compile IronRubyTestHost task was failing with the message:

can’t find file  
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50722\C:\WINDOWS\Microsoft.NET\Framework\v2.0.50722\System.Windows.Forms.dll

I tracked it down to the FRAMEWORK\_DIR being prepended to the reference  
“!System.Windows.Forms.dll” in two places:

def self.references(\*refs)  
references = COMMON\_REFERENCES  
#here we replace the ! token with FRAMEWORK\_DIR  
refs.each { |ref| references \<\< (ref =~ /^!/ ? FRAMEWORK\_DIR +  
ref[1…ref.length] : Environment.build + ref) }  
references  
end

…

def self.compile(files, references, switches, path, resources, output)  
switches \<\< “out:"#{Environment.build + output}"”  
resgen path, resources if resources != {}  
#we again prepend the FRAMEWORK\_DIR here  
references.each { |ref| switches \<\< “reference:"#{ref.absolute? ?  
ref :  
FRAMEWORK\_DIR + ref}"” }  
…

locally I fixed it by replacing the last reference with:

references.each { |ref| switches \<\< “reference:"#{ref}"” }

HTH,

Jason Langston  
[http://rubydoes.net](http://rubydoes.net)
