String未在BuildVersionIncrement中被识别为有效的DateTime

时间:2015-11-16 09:31:21

标签: visual-studio-2010

将Visual Studio 2010更新到VS2010 SP 1后,我发现构建错误(但解决方案编译成功)

Error   1   Could not check if project were modified because: String was not recognized as a valid DateTime.    

 Error  2   System.FormatException: String was not recognized as a valid DateTime.
       at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
       at System.DateTime.Parse(String s)
       at BuildVersionIncrement.BuildVersionIncrementor.CheckProjectItem(ProjectItem item, DateTime outputFileDate)
       at BuildVersionIncrement.BuildVersionIncrementor.IsProjectModified(Project project)
       at BuildVersionIncrement.BuildVersionIncrementor.IsSolutionItemModified(SolutionItem solutionItem)
       at BuildVersionIncrement.BuildVersionIncrementor.UpdateRecursive(SolutionItem solutionItem)  

我的操作系统是WinXP SP3。 区域设置为Russian,系统日期格式为dd.MM.yyyy

项目的AssemblyInfo.cs具有自动增量属性

[assembly: AssemblyVersion("1.0.*")]

0 个答案:

没有答案