Repository: logging-log4net Updated Branches: refs/heads/feature/cd-pipeline 783cc7a34 -> fb9564a8e
Build: netstandard now fails if the command is not available and only then attempts to restore Project: http://git-wip-us.apache.org/repos/asf/logging-log4net/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4net/commit/37eec8b6 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4net/tree/37eec8b6 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4net/diff/37eec8b6 Branch: refs/heads/feature/cd-pipeline Commit: 37eec8b6a55c83174bb673310c2d3e9464e844d5 Parents: 783cc7a Author: Dominik Psenner <[email protected]> Authored: Wed Jul 5 20:50:01 2017 +0200 Committer: Dominik Psenner <[email protected]> Committed: Wed Jul 5 20:50:01 2017 +0200 ---------------------------------------------------------------------- log4net.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/37eec8b6/log4net.build ---------------------------------------------------------------------- diff --git a/log4net.build b/log4net.build index 77abc59..c6c6b2e 100644 --- a/log4net.build +++ b/log4net.build @@ -2007,12 +2007,15 @@ limitations under the License. </target> <target name="compile-netstandard-current-configuration"> <exec program="dotnet" workingdir="netstandard" failonerror="false" resultproperty="dotnet.available"> - <arg value="restore"/> + <arg value="--version"/> </exec> <if test="${dotnet.available != '0'}"> <echo message="Skipping build; required framework is not available: netstandard"/> </if> <if test="${dotnet.available == '0'}"> + <exec program="dotnet" workingdir="netstandard" resultproperty="dotnet.available"> + <arg value="restore"/> + </exec> <exec program="dotnet" workingdir="netstandard"> <arg value="build"/> <arg value="log4net"/>
