seems not working like this...

            System.Reflection.Assembly assembly_mscore =
System.Reflection.Assembly.Load("mscorlib.dll");

            if (!HaveAssemblyTitle)
            {
                SR.ConstructorInfo ctor =
assembly_mscore.GetType("System.Reflection.AssemblyTitleAttribute").GetConstructor(new
Type[]{typeof(string)});
                CustomAttribute customAttribute = new
CustomAttribute(assemblyDefinition.MainModule.Import(ctor));
                customAttribute.ConstructorArguments.Add(new
CustomAttributeArgument(assemblyDefinition.MainModule.TypeSystem.String,
fileVersionInfo.FileName));
 
assemblyDefinition.CustomAttributes.Add(customAttribute);
            }

-- 
--
mono-cecil

Reply via email to