【发布时间】:2011-03-17 15:26:38
【问题描述】:
当我尝试构建我的项目时,我收到以下错误:
error : Unable to update the AssemblyFileVersion for c:\builddir\MyProject\AssemblyInfo.cs: No stub entry for AssemblyFileVersion was found in the AssemblyInfo file.
我找到了this 文章,这意味着需要一个“存根”属性。因此,在我的 AssemblyInfo.cs 中,我尝试指定一个:
[assembly: AssemblyFileVersion("1.0.0")]
但是,它不被识别。我终于看到了this 文章,它说您不能将 AssemblyFileVersion 属性与 CF 一起使用。构建脚本使用的目标文件也用于构建其他非 CF 项目,需要为它们更新 FileVersion。
是否可以在 AssemblyInfo.cs 文件、目标文件或构建脚本中添加一些内容以阻止此问题成为问题?
【问题讨论】:
标签: tfs msbuild compact-framework