/ / Compiling DotNetOpenAuth - dotnetopenauth

Kompilácia DotNetOpenAuth - dotnetopenauth

Snažím sa vybudovať DotNetOpenAuth a tam súniektoré chyby pri vytváraní. Som zvedavý, či sú tieto chyby skutočne všeobecné. Stiahol som si kód a načíta sa do VS.NET 2010 v pohode okrem toho, že v kompilácii sa spolieha na GithubCommitId.

Problém nastane, keď sa tento riadok použije v zostavení script:+build.$(BuildNumber).$(GitCommitId.Substring(0,10))

Tu je log zostavenia.

------ Rebuild All started: Project: Mono.Math, Configuration: Debug Any CPU ------
C:UsersAdministratorDesktopAArnott-dotnetopenid-6c29ebatoolsDotNetOpenAuth.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:UsersAdministratorDesktopAArnott-dotnetopenid-6c29ebatoolsDotNetOpenAuth.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:UsersAdministratorDesktopAArnott-dotnetopenid-6c29ebatoolsDotNetOpenAuth.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:UsersAdministratorDesktopAArnott-dotnetopenid-6c29ebatoolsDotNetOpenAuth.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:UsersAdministratorDesktopAArnott-dotnetopenid-6c29ebatoolsDotNetOpenAuth.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:UsersAdministratorDesktopAArnott-dotnetopenid-6c29ebatoolsDotNetOpenAuth.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:UsersAdministratorDesktopAArnott-dotnetopenid-6c29ebatoolsDotNetOpenAuth.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:UsersAdministratorDesktopAArnott-dotnetopenid-6c29ebatoolsDotNetOpenAuth.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:UsersAdministratorDesktopAArnott-dotnetopenid-6c29ebatoolsDotNetOpenAuth.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:UsersAdministratorDesktopAArnott-dotnetopenid-6c29ebatoolsDotNetOpenAuth.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:UsersAdministratorDesktopAArnott-dotnetopenid-6c29ebatoolsDotNetOpenAuth.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:UsersAdministratorDesktopAArnott-dotnetopenid-6c29ebatoolsDotNetOpenAuth.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:UsersAdministratorDesktopAArnott-dotnetopenid-6c29ebatoolsDotNetOpenAuth.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: toto bolo uverejnené na GitHub, rovnako ako problém # 88.

odpovede:

1 pre odpoveď č. 1

Ako už bolo uvedené v Číslo 88, riešením je prevziať zdrojové úložisko pomocou programu git namiesto súboru .zip.

Problém je stále otvorený, čaká na opravu na vytvorenie autorského práva tak, že nevyžaduje, aby bol git prítomný.