Компиляция DotNetOpenAuth - PullRequest
       1

Компиляция DotNetOpenAuth

1 голос
/ 13 марта 2012

Я пытаюсь собрать DotNetOpenAuth, и есть некоторые ошибки сборки.Мне любопытно, если эти ошибки на самом деле являются общими.Я скачал код, и он отлично загружается в VS.NET 2010, за исключением того, что при компиляции он использует GithubCommitId.

Проблема возникает, когда эта строка используется в сборке 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 Ответ

1 голос
/ 14 марта 2012

Как уже упоминалось в выпуск 88 , временное решение заключается в загрузке исходного репозитория с использованием git, а не в виде файла .zip.

Проблема все еще остается открытой, ожидая исправления для разработки сборки, поэтому для нее не требуется присутствие git.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...