.NET程序集(Compact Framework 3.5/VS2008)中缺少版本信息 [英] Version information missing from .NET assembly (Compact Framework 3.5/VS2008)

查看:116
本文介绍了.NET程序集(Compact Framework 3.5/VS2008)中缺少版本信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VS2008和.NET Compact Framework 3.5构建可执行文件,目标是Windows Mobile 6专业版,但是每当我编译该项目时,我在AssemblyInfo.cs文件中指定的所有内容都将被忽略.

I am building an executable using VS2008 and .NET compact framework 3.5, targetting Windows Mobile 6 professional, but whenever I compile the project, everything that I have specified in the AssemblyInfo.cs file is ignored.

我在其他项目中已经做过很多次了,并且可以正常工作,但是由于某些原因,我无法显示AssemblyTitle/AssemblyProduct/AssemblyVersion等属性(我正在尝试使用Windows资源管理器,我可以在我构建的任何其他程序集的详细信息选项卡中看到这些属性-甚至同一解决方案中的其他项目.

I have done this many times in other projects and it works without problem, but for some reason I cannot get the AssemblyTitle/AssemblyProduct/AssemblyVersion attributes etc to show up (I am trying to view them using Windows Explorer, I am able to see these properties in the details tab for any other assembly that I have built - even other projects in the same solution).

有什么建议吗?

推荐答案

该信息正在查看本机版本信息,该信息在桌面上是使用AssemblyFileVersionAttribute设置的. CF不支持AssemblyFileVersionAttribute,因此,开箱即用设置版本信息的唯一方法是命令行编译.有

That info is looking at the native version info, which on the desktop is set using the AssemblyFileVersionAttribute. The AssemblyFileVersionAttribute is unsupported in the CF, so the only way to set the version info out of the box is to command-line compile. There is a workaround in this blog.

这篇关于.NET程序集(Compact Framework 3.5/VS2008)中缺少版本信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆