我正在使用codedom从我自己的代码中创建一个EXE。
我可以设置所有属性,如标题,描述,公司......但我无法设置 AssemblyName 。有什么想法怎么做?这是我在Class之前添加的代码部分:
Imports System.Reflection
'This works but the AssemblyName is set to the name of the exe file:
'If I rename the exe the assembly name also changes.
<Assembly: System.Reflection.AssemblyTitle("Title123"> )
<Assembly: System.Reflection.AssemblyDescription("Description123">)
<Assembly: System.Reflection.AssemblyCompany("qxxx enterprises">)
'I tried to add the following but it throws me an error
'"AssemblyName" cannot be used as an attribute because it does not inherit from 'System.Attribute'
<Assembly: System.Reflection.AssemblyName("Testapp123"> )
有关如何设置AssemblyName的任何想法? (我不是要求在编译exe之后更改它。)