From 43108eda7850474198636e0b08293a5e92571486 Mon Sep 17 00:00:00 2001 From: Alan McGovern Date: Wed, 17 Jul 2024 13:29:00 +0100 Subject: [PATCH] Create the 'out' directory before restoring packages This makes it easier to guarantee the path always exists so msbuild /t:Restore more reliably succeeds. Don't rely on running the 'pack' command to create the directory. --- build.proj | 2 +- src/Directory.Build.props | 4 +++- src/Directory.Build.targets | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/build.proj b/build.proj index b5e98d26e..da0c0249e 100644 --- a/build.proj +++ b/build.proj @@ -5,6 +5,7 @@ false Debug + $(MSBuildThisFileDirectory)out $(MSBuildCommonProperties);Deterministic=true @@ -39,7 +40,6 @@ - true false true - + + $(MSBuildThisFileDirectory)..\out + diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets index 98beade74..f3436d501 100644 --- a/src/Directory.Build.targets +++ b/src/Directory.Build.targets @@ -42,6 +42,10 @@ + + + + 0.0.0.1