Skip to content

Commit

Permalink
Fix build command.
Browse files Browse the repository at this point in the history
Packing fails with a cryptic error unless the Platform is specified.
  • Loading branch information
bgrainger committed Nov 2, 2013
1 parent 5f6cc79 commit e4b362a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .nuget/NuGet.targets
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

<!-- Commands -->
<RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(NonInteractiveSwitch) $(RequireConsentSwitch) -solutionDir "$(SolutionDir) " </RestoreCommand>
<BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -Properties Configuration=$(Configuration) $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)" -symbols</BuildCommand>
<BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -Properties Configuration=$(Configuration);Platform=$(Platform) $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)" -symbols</BuildCommand>

<!-- We need to ensure packages are restored prior to assembly resolve -->
<BuildDependsOn Condition="$(RestorePackages) == 'true'">
Expand Down

0 comments on commit e4b362a

Please sign in to comment.