<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<STYLE style="DISPLAY: none" type=text/css><!-- P {margin-top:0;margin-bottom:0;} --></STYLE>
</HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial'; COLOR: #000000">
<DIV><FONT face=Calibri><FONT size=4><FONT color=#008000>This is the error
message I got:<BR><FONT style="face: calibri">An exception occurred during
merging:</FONT></FONT></FONT></FONT></DIV>
<DIV><FONT size=4 face=Calibri></FONT> </DIV>
<DIV><FONT size=4 face=Calibri>I always try something before suggesting it and
it worked fine for me when I tried it on a dll I made with clr.<FONT
style="FONT-SIZE: 12pt">CompileModules</FONT>. Are your IronPython dlls in the
GAC? i.e is IronPython installed from the msi? </FONT><FONT size=4
face=Calibri>The only thing I can think of is that IronPython.dll is not
accessible for some reason.</FONT></DIV>
<DIV><FONT size=4 face=Calibri></FONT> </DIV>
<DIV><FONT size=4 face=Calibri>Andy Graham</FONT></DIV>
<DIV><FONT size=4 face=Calibri></FONT> </DIV>
<DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'></DIV>
<DIV style="FONT: 10pt tahoma">
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=deedeebernard@hotmail.com
href="mailto:deedeebernard@hotmail.com">Didier Bernard</A> </DIV>
<DIV><B>Sent:</B> Monday, February 15, 2016 9:59 PM</DIV>
<DIV><B>To:</B> <A title=slide.o.mix@gmail.com
href="mailto:slide.o.mix@gmail.com">Slide</A> ; <A
title=andy@agraham.demon.co.uk
href="mailto:andy@agraham.demon.co.uk">andy@agraham.demon.co.uk</A> ; <A
title=ironpython-users@python.org
href="mailto:ironpython-users@python.org">ironpython-users@python.org</A> </DIV>
<DIV><B>Subject:</B> Re: [Ironpython-users] Changing the version information of
ironpython .dll assembly</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV id=divtagdefaultwrapper
style="FONT-SIZE: 12pt; FONT-FAMILY: calibri,arial,helvetica,sans-serif; COLOR: #000000; BACKGROUND-COLOR: #ffffff">
<P>Thank you for the replies both Andy and Slide.<BR><BR></P>
<P id=yui_3_16_0_1_1455570385802_6737 dir=ltr data-setdir="false">@ Slide:</P>
<P id=yui_3_16_0_1_1455570385802_6655> </P>
<P id=yui_3_16_0_1_1455570385802_6656 dir=ltr data-setdir="false">I am currently
bound to use ironpython 2.7.</P>
<P id=yui_3_16_0_1_1455570385802_6662 dir=ltr data-setdir="false">Can you
provide a link or an explanation for this part please:</P>
<P id=yui_3_16_0_1_1455570385802_6693 dir=ltr data-setdir="false"> </P><EM
style="COLOR: rgb(114,50,173)"><SPAN
style="COLOR: rgb(114,50,173)"> "You could
also compile from the 2.7 mainy branch and get it from there. Ipyc replaces
pyc.py."</SPAN></EM><BR>
<P dir=ltr data-setdir="false"> </P>
<P dir=ltr data-setdir="false"><FONT size=2 face=Arial></FONT> </P>
<P dir=ltr data-setdir="false">@ Andy Graham:<BR
id=yui_3_16_0_1_1455570385802_6889><BR id=yui_3_16_0_1_1455570385802_6887>I
downloaded the <A id=yui_3_16_0_1_1455570385802_6869
title="Ctrl+Click or tap to follow the link" class=edited-link-editor
href="https://www.microsoft.com/en-us/download/confirmation.aspx?id=17630">ILMerge
utility v2.12.0803</A> and tried to use the same syntax you gave me:</P><SPAN
id=yui_3_16_0_1_1455570385802_7181 style="COLOR: rgb(0,0,0)"><SPAN
id=yui_3_16_0_1_1455570385802_7180 style="COLOR: rgb(0,0,0)">C:\>"D:\Program
Files\Microsoft\ILMerge\ILMe</SPAN></SPAN><BR style="COLOR: rgb(0,0,0)">
<P id=yui_3_16_0_1_1455570385802_7179 dir=ltr data-setdir="false"><SPAN
id=yui_3_16_0_1_1455570385802_7178 style="COLOR: rgb(0,0,0)"><SPAN
id=yui_3_16_0_1_1455570385802_7177 style="COLOR: rgb(0,0,0)">rge.exe"
D:\dlls\pythonDll.dll /ver:1.2.3.4 /out:D:\dlls\pythonDll2.dll</SPAN></SPAN></P>
<P id=yui_3_16_0_1_1455570385802_7080 dir=ltr data-setdir="false"><BR>Unresolved
assembly reference not allowed: IronPython.<BR> at
System.Compiler.Ir2md.GetAssemblyRefIndex(AssemblyNode assembly)<BR>
at System.Compiler.Ir2md.GetTypeRefIndex(TypeNode type)<BR> at
System.Compiler.Ir2md.VisitReferencedType(TypeNode type)<BR> at
System.Compiler.Ir2md.VisitMethod(Method method)<BR> at
System.Compiler.Ir2md.Visit(Node node)<BR> at
System.Compiler.Ir2md.VisitClass(Class Class)<BR> at
System.Compiler.Ir2md.Visit(Node node)<BR> at
System.Compiler.Ir2md.VisitModule(Module module)<BR> at
System.Compiler.Ir2md.SetupMetadataWriter(String
debugSymbolsLocation)<BR> at System.Compiler.Ir2md.WritePE(Module
module, String debugSymbolsLocation,<BR>BinaryWriter writer)<BR> at
System.Compiler.Writer.WritePE(String location, Boolean
writeDebugSymbols,<BR>Module module, Boolean delaySign, String keyFileName,
String keyName)<BR> at
System.Compiler.Writer.WritePE(CompilerParameters compilerParameters, Modu<BR>le
module)<BR> at System.Compiler.Module.WriteModule(String location,
CompilerParameters opt<BR>ions)<BR> at
ILMerging.ILMerge.Merge()<BR> at ILMerging.ILMerge.Main(String[]
args)<BR></P>
<P id=yui_3_16_0_1_1455570385802_7093 dir=ltr data-setdir="false"><FONT size=2
face=Arial></FONT> </P>Thank you.<BR><BR>Kind
regards,<BR>Didier<BR><BR><BR>
<DIV style="COLOR: rgb(0,0,0)">
<HR tabIndex=-1 style="WIDTH: 98%; DISPLAY: inline-block">
<DIV id=divRplyFwdMsg dir=ltr><FONT style="FONT-SIZE: 11pt" color=#000000
face="Calibri, sans-serif"><B>From:</B> Slide
<slide.o.mix@gmail.com><BR><B>Sent:</B> Monday, February 15, 2016 8:53
PM<BR><B>To:</B> Andrew Graham; Didier Bernard;
ironpython-users@python.org<BR><B>Subject:</B> Re: [Ironpython-users] Changing
the version information of ironpython .dll assembly</FONT>
<DIV> </DIV></DIV>
<DIV>
<P dir=ltr>You can do this now with ipyc, which should be in the next version.
It allows you to set many more things than pyc.py. You could also compile from
the 2.7 mainy branch and get it from there. Ipyc replaces pyc.py.</P>
<P dir=ltr>Thanks </P>
<P dir=ltr>Slide</P><BR>
<DIV class=gmail_quote>
<DIV dir=ltr>On Mon, Feb 15, 2016, 10:11 Andrew Graham <<A
href="mailto:andy@agraham.demon.co.uk">andy@agraham.demon.co.uk</A>>
wrote:<BR></DIV>
<DIV dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial'; COLOR: #000000">
<DIV><FONT size=4 face="Times New Roman">You can use ilmerge to change it after
compilation</FONT></DIV>
<DIV><A
title=http://stackoverflow.com/questions/398170/change-assembly-version-in-a-compiled-net-assembly
href="http://stackoverflow.com/questions/398170/change-assembly-version-in-a-compiled-net-assembly"
target=_blank><FONT color=#0080ff size=4
face="Times New Roman">http://stackoverflow.com/questions/398170/change-assembly-version-in-a-compiled-net-assembly</FONT></A></DIV>
<DIV><FONT size=4 face="Times New Roman"></FONT> </DIV>
<DIV><FONT size=4 face="Times New Roman">ilmerge mycode.dll /ver:1.2.3.4
/out:mycode.dll</FONT></DIV>
<DIV><FONT size=4></FONT> </DIV>
<P><SPAN><FONT size=4 face="Times New Roman">ILMerge is available via NuGet in
Visual Studio or from the Microsoft Download center</FONT></SPAN></P>
<P><SPAN><FONT size=4 face="Times New Roman"><A
href="http://www.microsoft.com/en-gb/download/details.aspx?id=17630"
target=_blank>http://www.microsoft.com/en-gb/download/details.aspx?id=17630</A></FONT></SPAN></P>
<P> </P>
<P><FONT size=4 face="Times New Roman">Last time I looked the </FONT></P>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'><SPAN><FONT
size=4 face="Times New Roman">version on NuGet is 2.14.1208 while the download
is the earlier version 2.12.0803.</FONT></SPAN>
<DIV style="FONT: 10pt tahoma">
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT size=4 face="Times New Roman">Andy Graham</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV><B>From:</B> <A title=deedeebernard@hotmail.com
href="mailto:deedeebernard@hotmail.com" target=_blank>Didier Bernard</A> </DIV>
<DIV><B>Sent:</B> Saturday, February 13, 2016 10:36 PM</DIV>
<DIV><B>To:</B> <A title=ironpython-users@python.org
href="mailto:ironpython-users@python.org"
target=_blank>ironpython-users@python.org</A> </DIV>
<DIV><B>Subject:</B> [Ironpython-users] Changing the version information of
ironpython .dll assembly</DIV></DIV></DIV>
<DIV> </DIV></DIV></DIV></DIV></DIV>
<DIV dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial'; COLOR: #000000">
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV
style="FONT-SIZE: 12pt; FONT-FAMILY: calibri,arial,helvetica,sans-serif; COLOR: #000000; BACKGROUND-COLOR: #ffffff">
<P>Hello,<BR><BR>I have the following issue with ironpython 2.7: I would like to
compiles the .py file to .dll. Here is a <A
href="http://blogs.msdn.com/b/srivatsn/archive/2008/08/06/static-compilation-of-ironpython-scripts.aspx"
target=_blank>nice example</A> on how this can be done with clr.CompileModules
method.<BR>The problem is that the File Version of the compiled .dll is always:
0.0.0.0.<BR><BR>How can I change that?<BR>I posted <A
title="Ctrl+Click or tap to follow the link"
href="http://stackoverflow.com/questions/35073738/changing-the-version-information-of-ironpython-dll-assembly"
target=_blank>a question about this issue on stackoverflow.com</A>. Even there
there stands that the issue is solved, it isn't. the person who tried to help me
(D. Alveno) really gave a lot of effort to do that. So this is why I marked his
answer as the solving one. But in reality the issue is still not
solved.<BR><BR>D. Alveno <A href="http://stackoverflow.com/a/35137830/3137724"
target=_blank>suggested using ipy.exe pyc.py</A> instead of clr.CompileModules
method. In the end this again resulted in getting a .dll file with File Version:
0.0.0.0.<BR><BR>I also tried a couple of other methods (those three ones <A
href="http://stackoverflow.com/questions/35073738/changing-the-version-information-of-ironpython-dll-assembly"
target=_blank>mentioned on stackoverflow.com</A>), but all of them failed, as
they do not seem to be made for ironpython .dll assemblies, but probably C# and
<A href="http://VB.NET" target=_blank>VB.NET</A>.<BR><BR>I would welcome any
kind of advice.<BR><BR>Thank you in advance.<BR><BR>With kind regards,<BR>Didier
Bernard<BR></P></DIV>
<HR>
_______________________________________________<BR>Ironpython-users mailing
list<BR><A href="mailto:Ironpython-users@python.org"
target=_blank>Ironpython-users@python.org</A><BR><A
href="https://mail.python.org/mailman/listinfo/ironpython-users"
target=_blank>https://mail.python.org/mailman/listinfo/ironpython-users</A><BR></DIV></DIV></DIV></DIV>_______________________________________________<BR>Ironpython-users
mailing list<BR><A href="mailto:Ironpython-users@python.org"
target=_blank>Ironpython-users@python.org</A><BR><A
href="https://mail.python.org/mailman/listinfo/ironpython-users" rel=noreferrer
target=_blank>https://mail.python.org/mailman/listinfo/ironpython-users</A><BR></DIV></DIV></DIV></DIV></DIV></DIV></DIV></BODY></HTML>