Skip to content

Commit

Permalink
dir.targets: correctly enclose 'Exists' condition in single quotes
Browse files Browse the repository at this point in the history
According to MSDN (http://msdn.microsoft.com/en-us/library/7szfhaft.aspx), the
single quotes can be left off for "simple alphanumeric strings or boolean values".
This is not the case here (it is a property), so we should use single quotes.

Note that MSBuild ignores this, but it results in a parser error on Mono's xbuild.
  • Loading branch information
akoeplinger committed Mar 18, 2015
1 parent 82177a5 commit 3d37221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dir.targets
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<!-- Download latest nuget.exe -->
<DownloadFile FileName="$(NuGetToolPath)"
Address="http://nuget.org/nuget.exe"
Condition="!Exists($(NuGetToolPath))" />
Condition="!Exists('$(NuGetToolPath)')" />

<!-- Restore build tools -->
<Exec Command="$(NugetRestoreCommand) &quot;$(SourceDir).nuget\packages.config&quot;" StandardOutputImportance="Low" />
Expand Down

0 comments on commit 3d37221

Please sign in to comment.