Skip to content

Commit

Permalink
Merge pull request #169 from AArnott/user/benmer/NewGetBuildVersionPa…
Browse files Browse the repository at this point in the history
…rameterForGitProjectRelativePath

Fix Requires logic in msbuild task
  • Loading branch information
AArnott authored Feb 12, 2018
2 parents 286eda9 + c6e11cb commit 39ac768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Nerdbank.GitVersioning.Tasks/GetBuildVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ protected override bool ExecuteInner()
{
if (!string.IsNullOrEmpty(this.ProjectPathRelativeToGitRepoRoot))
{
Requires.Argument(Path.IsPathRooted(this.ProjectPathRelativeToGitRepoRoot), nameof(this.ProjectPathRelativeToGitRepoRoot), "Path must be relative.");
Requires.Argument(!Path.IsPathRooted(this.ProjectPathRelativeToGitRepoRoot), nameof(this.ProjectPathRelativeToGitRepoRoot), "Path must be relative.");
Requires.Argument(!(
this.ProjectPathRelativeToGitRepoRoot.Contains(".." + Path.DirectorySeparatorChar) ||
this.ProjectPathRelativeToGitRepoRoot.Contains(".." + Path.AltDirectorySeparatorChar)),
Expand Down

0 comments on commit 39ac768

Please sign in to comment.