我有一个nant脚本,在它的一个目标中使用msbuild标签来构建Visual Studio2010解决方案。
问题是,当它到达这一点时,它会失败,错误是:
Solution file error MSB5014: File format version is not recognized. MSBuild can only read solution files between versions 7.0 and 9.0, inclusive.
Failed to start MSBuild.
External Program Failed: C:\Windows\Microsoft.
MSBuild引擎为'$(MSBuild::Add($(OldRevision),1))‘语句返回错误MSB4186。我使用了一个来自的例子,但它不适用于我:
error MSB4186: Invalid static method invocation syntax:
"[MSBuild]::Add($(OldRevision), 1)". Input string was not in a correct format.
Static method invocation should be of the form: $([FullTypeName]::Method(