VB.Net - AssemblyFileVersion 和 AssemblyFileVersion 之间有什么区别? AssemblyFileVersionAttribute 和 AssemblyVersion &程序集版本属性
我继承了一个 VB.Net 代码库,它是 VB 2005 并升级到 VB 2008,其中包含大约 100 个项目
我试图重新版本所有组件,但发现一些 AssemblyInfo.vb 文件具有 AssemblyFileVersion
条目,有些有 AssemblyFileVersionAttribute
条目。
此外,有些具有 AssemblyVersion
条目,有些具有 AssemblyVersionAttribute
条目。
有和没有属性
有什么区别?
我应该使用哪些?
I've inherited a VB.Net codebase which was VB 2005 and upgraded to VB 2008 consisting of around 100 projects
I'm trying to re-version all of the components but have discovered some of the AssemblyInfo.vb files have an AssemblyFileVersion
entry and some have an AssemblyFileVersionAttribute
entry.
Also, some have an AssemblyVersion
entry and some have an AssemblyVersionAttribute
entry.
What is the difference between with and without Attribute
?
Which ones should I be using?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没有什么区别。正如
int
将解析为System.Int32
一样,任何从Attribute
派生的类型都会被编译器特殊对待。因此...[MyCustom]
将解析为[MyCustomAttribute]
相关 MSDN 条目
There is no difference. Just as
int
will resolve toSystem.Int32
, any type derived fromAttribute
is treated specially by the compiler. So...[MyCustom]
will resolve to[MyCustomAttribute]
Relavent MSDN Entry
AssemblyFileVersion
和AssemblyFileVersionAttribute
等是同一件事,您可以使用其中之一。 这里是 Microsoft 在其 Connect 网站上的回复关于这个。AssemblyFileVersion
andAssemblyFileVersionAttribute
etc are the same thing and you can use either one. Here's a response from Microsoft on their connect website about this.