Skip to content

Commit

Permalink
Don't let build continue when paket failed - fixes #2302
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Apr 28, 2017
1 parent 7fea2f2 commit dae82b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .paket/Paket.Restore.targets
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<Target Name="PaketRestore" BeforeTargets="_GenerateProjectRestoreGraphPerFramework;_GenerateRestoreGraphWalkPerFramework;CollectPackageReferences" >

<Exec Command='$(PaketCommand) restore --project "$(MSBuildProjectFullPath)" ' />
<Exec Command='$(PaketCommand) restore --project "$(MSBuildProjectFullPath)" ' ContinueOnError="false" />

<PropertyGroup>
<PaketReferencesFilePath>$(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).references</PaketReferencesFilePath>
Expand Down
2 changes: 1 addition & 1 deletion .paket/paket.targets
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<Exec Command="$(RestoreCommand)"
IgnoreStandardErrorWarningFormat="true"
WorkingDirectory="$(PaketRootPath)"
ContinueOnError="true"
ContinueOnError="false"
Condition=" Exists('$(PaketReferences)') AND '$(PaketReferences)' != '' "
/>
</Target>
Expand Down
2 changes: 1 addition & 1 deletion src/Paket/embedded/Paket.Restore.targets
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<Target Name="PaketRestore" BeforeTargets="_GenerateProjectRestoreGraphPerFramework;_GenerateRestoreGraphWalkPerFramework;CollectPackageReferences" >

<Exec Command='$(PaketCommand) restore --project "$(MSBuildProjectFullPath)" ' />
<Exec Command='$(PaketCommand) restore --project "$(MSBuildProjectFullPath)" ' ContinueOnError="false" />

<PropertyGroup>
<PaketReferencesFilePath>$(MSBuildProjectDirectory)/obj/$(MSBuildProjectFile).references</PaketReferencesFilePath>
Expand Down

0 comments on commit dae82b2

Please sign in to comment.