<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>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. <o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>JD<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
ironruby-core-bounces@rubyforge.org
[mailto:ironruby-core-bounces@rubyforge.org] <b>On Behalf Of </b>Michael
Letterle<br>
<b>Sent:</b> Monday, December 08, 2008 4:05 PM<br>
<b>To:</b> ironruby-core@rubyforge.org<br>
<b>Subject:</b> Re: [Ironruby-core] Trouble building from Visual Studio (git
repo)<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'>Presumably turning off strong
name validation for the public key token would work as well... no?<o:p></o:p></p>
<div>
<p class=MsoNormal>On Mon, Dec 8, 2008 at 7:02 PM, Jimmy Schementi <<a
href="mailto:Jimmy.Schementi@microsoft.com">Jimmy.Schementi@microsoft.com</a>>
wrote:<o:p></o:p></p>
<p class=MsoNormal>Terence,<br>
<br>
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 default build do not sign.<br>
<br>
In the meantime, you'll need to remove the signing flags from all the .csproj
files (Ruby.csproj, IronRuby.Libraries.csproj, and
IronRuby.Libraries.Yaml.csproj). Open the .csproj files in a text-editor, and
remove the following lines anywhere you find them (they might be in a file more
than once):<br>
<br>
<DelaySign>true</DelaySign><br>
<AssemblyOriginatorKeyFile>..\..\..\MSSharedLibKey.snk</AssemblyOriginatorKeyFile><br>
<SignAssembly>true</SignAssembly><br>
<br>
Rebuilding should not care about signing at all now. Let me know if you run
into any other problems.<br>
<br>
~Jimmy<o:p></o:p></p>
<div>
<div>
<p class=MsoNormal><br>
<br>
> -----Original Message-----<br>
> From: <a href="mailto:ironruby-core-bounces@rubyforge.org">ironruby-core-bounces@rubyforge.org</a>
[mailto:<a href="mailto:ironruby-core-">ironruby-core-</a><br>
> <a href="mailto:bounces@rubyforge.org">bounces@rubyforge.org</a>] On
Behalf Of Terence Lewis<br>
> Sent: Monday, December 08, 2008 3:01 PM<br>
> To: <a href="mailto:ironruby-core@rubyforge.org">ironruby-core@rubyforge.org</a><br>
> Subject: [Ironruby-core] Trouble building from Visual Studio (git<br>
> repo)<br>
><br>
> Hello,<br>
><br>
> First let me apologise for the length of this mail - it's not quite as<br>
> long as it looks, a lot of the text is error messages :(<br>
><br>
> Anyway, I can now build from rake compile, however I'm having trouble<br>
> building from Visual Studio 2008 SP1.<br>
><br>
> The first thing that it complains about is something to do with<br>
> SpecSharp.targets. I managed to work-around this by copying this file<br>
> from \merlin\main\Languages\Ruby to \merlin\main.<br>
> After doing this, I got an error about Microsoft.Scripting.dll meta-<br>
> data file not being found (with FxCop in the path), but changing the<br>
> build config file to FxCop and then back to Debug seemed to make this<br>
> problem go away.<br>
> Next, I got a complaint about MSSharedLibKey.snk - I worked around<br>
> this by creating a key myself (sn -k MSSharedLibKey.snk) in the folder<br>
> it was looking for.<br>
> Then when compiling, I get build 3 errors in<br>
> ReflectionCacheGenerator.cs (ClassInitGenerator). These are as follows:<br>
><br>
> Error 1 'IronRuby.Compiler.Methods' is
inaccessible due to its<br>
> protection level<br>
> \merlin\main\Languages\Ruby\ClassInitGenerator\ReflectionCacheGenerato<br>
> r<br>
> .<br>
> cs line 29<br>
> Error 2 'IronRuby.Runtime.Calls.BlockDispatcher'
does not contain<br>
> a definition for 'MaxBlockArity'<br>
> \merlin\main\Languages\Ruby\ClassInitGenerator\ReflectionCacheGenerato<br>
> r<br>
> .<br>
> cs line 102<br>
> Error 3 'IronRuby.Runtime.Calls.BlockDispatcher'
does not contain<br>
> a definition for 'MaxBlockArity'<br>
> \merlin\main\Languages\Ruby\ClassInitGenerator\ReflectionCacheGenerato<br>
> r<br>
> .<br>
> cs line 103<br>
><br>
> I also get two build errors in IronRuby.Tests:<br>
><br>
> Error 5 'IronRuby.Compiler.IParserLogger' is
inaccessible due to<br>
> its protection level<br>
> \merlin\main\Languages\Ruby\IronRuby.Tests\Parser\DefaultParserLogger.<br>
> c<br>
> s<br>
> line 24<br>
> Error 6 'IronRuby.Compiler.IParserLogger' is
inaccessible due to<br>
> its protection level<br>
> \merlin\main\Languages\Ruby\IronRuby.Tests\Parser\CoverageParserLogger.<br>
> c<o:p></o:p></p>
</div>
</div>
<p class=MsoNormal>> s line 33<o:p></o:p></p>
<div>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'>><br>
><br>
> Commenting out errors 2 and 3, and making IronRuby.Compiler.Methods<br>
> and IronRuby.Compiler.IParserLogger public allows everything to build<br>
> except IronRuby.Tests which then fails with 47 compile errors.<br>
><br>
> Trying to run Ruby.Console with the code in this condition leads to a<br>
> MessageBox with the following:<br>
> Error while trying to run project: Could not load file or
assembly<br>
> 'ir, Version=<a href="http://1.0.0.0" target="_blank">1.0.0.0</a>, Culture=neutral,
PublicKeyToken=67ede3a51bb28398'<br>
> or one of its dependencies. Strong name validation failed. (Exception<br>
> from HRESULT: 0x8013141A).<br>
><br>
> Presumably this is because I can't just generate a strong-name key<br>
> myself? I then ran sn -Vr using my public key token, and changed two<br>
> places in Ruby.Console's app.config file - Microsoft.Scripting and<br>
> IronRuby to use my public key token. At this point, running the<br>
> console doesn't bring up a message box, but the application does<br>
> terminate immediately with the following appearing in the output window:<br>
><br>
> WEAK_TABLE: IronRuby.Runtime.WeakTable`2[[System.Object, mscorlib,<br>
> Version=<a href="http://2.0.0.0" target="_blank">2.0.0.0</a>,
Culture=neutral,<br>
> PublicKeyToken=b77a5c561934e089],[IronRuby.Runtime.RubyInstanceData,<br>
> IronRuby, Version=<a href="http://1.0.0.0" target="_blank">1.0.0.0</a>,
Culture=neutral,<br>
> PublicKeyToken=67ede3a51bb28398]] A first chance exception of type<br>
> 'System.IO.FileLoadException' occurred in mscorlib.dll A first chance<br>
> exception of type 'IronRuby.Builtins.LoadError' occurred in<br>
> IronRuby.dll A first chance exception of type<br>
> 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll<br>
> A first chance exception of type<br>
> 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll<br>
> A first chance exception of type<br>
> 'Microsoft.Scripting.InvalidImplementationException' occurred in<br>
> Microsoft.Scripting.dll<br>
><br>
> So, when this failed, I tried to copy the only .snk file I could find<br>
> from the subversion repository<br>
> (trunk\src\microsoft.scripting.core\debugkey.snk) over my manually<br>
> generated key, but this didn't yield the correct public key token<br>
> either (it gives 51c7b9aefdaeb546).<br>
><br>
> So, now I'm totally stuck. Any help or suggestions will be appreciated.<br>
><br>
><br>
> Regards<br>
><br>
> Terence<br>
><br>
><br>
> PS, I'm trying to get the build to work out of visual studio so that I<br>
> can step through some of the code in the debugger.<o:p></o:p></p>
</div>
</div>
<p class=MsoNormal>_______________________________________________<br>
Ironruby-core mailing list<br>
<a href="mailto:Ironruby-core@rubyforge.org">Ironruby-core@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/ironruby-core" target="_blank">http://rubyforge.org/mailman/listinfo/ironruby-core</a><o:p></o:p></p>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><br>
<br clear=all>
<br>
-- <br>
Michael Letterle<br>
[Polymath Prokrammer]<br>
<a href="http://blog.prokrams.com">http://blog.prokrams.com</a><br>
<br>
<o:p></o:p></p>
</div>
</body>
</html>