[Ikvm-commit] ikvm/reflect/Writer VersionInfo.cs,1.6,1.7
Brought to you by:
jfrijters
|
From: Jeroen F. <jfr...@us...> - 2014-06-02 11:30:18
|
Update of /cvsroot/ikvm/ikvm/reflect/Writer In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv21747/Writer Modified Files: VersionInfo.cs Log Message: Added UniverseOptions.DecodeVersionInfoAttributeBlobs to support decoding CustomAttributeBuilder with blob to extract version info fields. Index: VersionInfo.cs =================================================================== RCS file: /cvsroot/ikvm/ikvm/reflect/Writer/VersionInfo.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** VersionInfo.cs 7 Feb 2013 11:58:27 -0000 1.6 --- VersionInfo.cs 2 Jun 2014 11:30:15 -0000 1.7 *************** *** 51,55 **** } ! internal void SetAttribute(CustomAttributeBuilder cab) { Universe u = cab.Constructor.Module.universe; --- 51,55 ---- } ! internal void SetAttribute(AssemblyBuilder asm, CustomAttributeBuilder cab) { Universe u = cab.Constructor.Module.universe; *************** *** 57,89 **** if (copyright == null && type == u.System_Reflection_AssemblyCopyrightAttribute) { ! copyright = (string)cab.GetConstructorArgument(0); } else if (trademark == null && type == u.System_Reflection_AssemblyTrademarkAttribute) { ! trademark = (string)cab.GetConstructorArgument(0); } else if (product == null && type == u.System_Reflection_AssemblyProductAttribute) { ! product = (string)cab.GetConstructorArgument(0); } else if (company == null && type == u.System_Reflection_AssemblyCompanyAttribute) { ! company = (string)cab.GetConstructorArgument(0); } else if (description == null && type == u.System_Reflection_AssemblyDescriptionAttribute) { ! description = (string)cab.GetConstructorArgument(0); } else if (title == null && type == u.System_Reflection_AssemblyTitleAttribute) { ! title = (string)cab.GetConstructorArgument(0); } else if (informationalVersion == null && type == u.System_Reflection_AssemblyInformationalVersionAttribute) { ! informationalVersion = (string)cab.GetConstructorArgument(0); } else if (fileVersion == null && type == u.System_Reflection_AssemblyFileVersionAttribute) { ! fileVersion = (string)cab.GetConstructorArgument(0); } } --- 57,89 ---- if (copyright == null && type == u.System_Reflection_AssemblyCopyrightAttribute) { ! copyright = (string)cab.DecodeBlob(asm).GetConstructorArgument(0); } else if (trademark == null && type == u.System_Reflection_AssemblyTrademarkAttribute) { ! trademark = (string)cab.DecodeBlob(asm).GetConstructorArgument(0); } else if (product == null && type == u.System_Reflection_AssemblyProductAttribute) { ! product = (string)cab.DecodeBlob(asm).GetConstructorArgument(0); } else if (company == null && type == u.System_Reflection_AssemblyCompanyAttribute) { ! company = (string)cab.DecodeBlob(asm).GetConstructorArgument(0); } else if (description == null && type == u.System_Reflection_AssemblyDescriptionAttribute) { ! description = (string)cab.DecodeBlob(asm).GetConstructorArgument(0); } else if (title == null && type == u.System_Reflection_AssemblyTitleAttribute) { ! title = (string)cab.DecodeBlob(asm).GetConstructorArgument(0); } else if (informationalVersion == null && type == u.System_Reflection_AssemblyInformationalVersionAttribute) { ! informationalVersion = (string)cab.DecodeBlob(asm).GetConstructorArgument(0); } else if (fileVersion == null && type == u.System_Reflection_AssemblyFileVersionAttribute) { ! fileVersion = (string)cab.DecodeBlob(asm).GetConstructorArgument(0); } } |