2012-03-13 29 views
1

我想構建DotNetOpenAuth並且有一些構建錯誤。我很好奇,如果這些錯誤實際上是通用的。我下載了代碼,它在VS.NET 2010中加載得很好,只是在編譯時依賴於GithubCommitId。編譯DotNetOpenAuth

的問題時,這條線在構建script:+build.$(BuildNumber).$(GitCommitId.Substring(0,10))

這裏是構建日誌使用情況。

------ Rebuild All started: Project: Mono.Math, Configuration: Debug Any CPU ------ 
C:\Users\Administrator\Desktop\AArnott-dotnetopenid-6c29eba\tools\DotNetOpenAuth.Versioning.targets(29,4): error MSB4184: The expression """.Substring(0, 10)" cannot be evaluated. Index and length must refer to a location within the string. Parameter name: length 
------ Rebuild All started: Project: DotNetOpenAuth.Core, Configuration: Debug Any CPU ------ 
C:\Users\Administrator\Desktop\AArnott-dotnetopenid-6c29eba\tools\DotNetOpenAuth.Versioning.targets(29,4): error MSB4184: The expression """.Substring(0, 10)" cannot be evaluated. Index and length must refer to a location within the string. Parameter name: length 
------ Rebuild All started: Project: Org.Mentalis.Security.Cryptography, Configuration: Debug Any CPU ------ 
C:\Users\Administrator\Desktop\AArnott-dotnetopenid-6c29eba\tools\DotNetOpenAuth.Versioning.targets(29,4): error MSB4184: The expression """.Substring(0, 10)" cannot be evaluated. Index and length must refer to a location within the string. Parameter name: length 
------ Rebuild All started: Project: DotNetOpenAuth.OAuth.Common, Configuration: Debug Any CPU ------ 
C:\Users\Administrator\Desktop\AArnott-dotnetopenid-6c29eba\tools\DotNetOpenAuth.Versioning.targets(29,4): error MSB4184: The expression """.Substring(0, 10)" cannot be evaluated. Index and length must refer to a location within the string. Parameter name: length 
------ Rebuild All started: Project: DotNetOpenAuth.OAuth2, Configuration: Debug Any CPU ------ 
C:\Users\Administrator\Desktop\AArnott-dotnetopenid-6c29eba\tools\DotNetOpenAuth.Versioning.targets(29,4): error MSB4184: The expression """.Substring(0, 10)" cannot be evaluated. Index and length must refer to a location within the string. Parameter name: length 
------ Rebuild All started: Project: DotNetOpenAuth.OAuth, Configuration: Debug Any CPU ------ 
C:\Users\Administrator\Desktop\AArnott-dotnetopenid-6c29eba\tools\DotNetOpenAuth.Versioning.targets(29,4): error MSB4184: The expression """.Substring(0, 10)" cannot be evaluated. Index and length must refer to a location within the string. Parameter name: length 
------ Rebuild All started: Project: DotNetOpenAuth.InfoCard, Configuration: Debug Any CPU ------ 
C:\Users\Administrator\Desktop\AArnott-dotnetopenid-6c29eba\tools\DotNetOpenAuth.Versioning.targets(29,4): error MSB4184: The expression """.Substring(0, 10)" cannot be evaluated. Index and length must refer to a location within the string. Parameter name: length 
------ Rebuild All started: Project: DotNetOpenAuth.Core.UI, Configuration: Debug Any CPU ------ 
C:\Users\Administrator\Desktop\AArnott-dotnetopenid-6c29eba\tools\DotNetOpenAuth.Versioning.targets(29,4): error MSB4184: The expression """.Substring(0, 10)" cannot be evaluated. Index and length must refer to a location within the string. Parameter name: length 
------ Rebuild All started: Project: DotNetOpenAuth.OAuth2.Client, Configuration: Debug Any CPU ------ 
C:\Users\Administrator\Desktop\AArnott-dotnetopenid-6c29eba\tools\DotNetOpenAuth.Versioning.targets(29,4): error MSB4184: The expression """.Substring(0, 10)" cannot be evaluated. Index and length must refer to a location within the string. Parameter name: length 
------ Rebuild All started: Project: DotNetOpenAuth.OAuth.Consumer, Configuration: Debug Any CPU ------ 
C:\Users\Administrator\Desktop\AArnott-dotnetopenid-6c29eba\tools\DotNetOpenAuth.Versioning.targets(29,4): error MSB4184: The expression """.Substring(0, 10)" cannot be evaluated. Index and length must refer to a location within the string. Parameter name: length 
------ Rebuild All started: Project: DotNetOpenAuth.OAuth.ServiceProvider, Configuration: Debug Any CPU ------ 
C:\Users\Administrator\Desktop\AArnott-dotnetopenid-6c29eba\tools\DotNetOpenAuth.Versioning.targets(29,4): error MSB4184: The expression """.Substring(0, 10)" cannot be evaluated. Index and length must refer to a location within the string. Parameter name: length 
------ Rebuild All started: Project: DotNetOpenAuth.OAuth2.AuthorizationServer, Configuration: Debug Any CPU ------ 
C:\Users\Administrator\Desktop\AArnott-dotnetopenid-6c29eba\tools\DotNetOpenAuth.Versioning.targets(29,4): error MSB4184: The expression """.Substring(0, 10)" cannot be evaluated. Index and length must refer to a location within the string. Parameter name: length 
------ Rebuild All started: Project: DotNetOpenAuth.InfoCard.UI, Configuration: Debug Any CPU ------ 
C:\Users\Administrator\Desktop\AArnott-dotnetopenid-6c29eba\tools\DotNetOpenAuth.Versioning.targets(29,4): error MSB4184: The expression """.Substring(0, 10)" cannot be evaluated. Index and length must refer to a location within the string. Parameter name: length 
------ Rebuild All started: Project: RelyingPartyDatabase, Configuration: Debug Any CPU ------ 

PS:這已經發布在GitHub上以及issue #88

回答

1

Issue 88所述,解決方法是使用git而不是作爲.zip文件下載源存儲庫。

問題仍然存在,等待修復構建創作,以便它不需要git存在。