@@ -108,7 +108,7 @@ Setup(context => {
108108
109109Task ( "Restore-Engine" )
110110 . Description ( "Restore kryptor engine dependencies" )
111- . WithCriteria ( ! noRestore )
111+ . WithCriteria ( ! noRestore && ! noBuild )
112112 . Does ( ( ) => {
113113 DotNetRestore ( engineProjectFile , GlobalRestoreSettings ) ;
114114 } ) ;
@@ -131,7 +131,7 @@ Task("Pack-Engine")
131131Task ( "Restore-Client" )
132132 . Description ( "Restore kryptor client utilities dependencies" )
133133 . IsDependentOn ( "Restore-Engine" )
134- . WithCriteria ( ! noRestore )
134+ . WithCriteria ( ! noRestore && ! noBuild )
135135 . Does ( ( ) => {
136136 DotNetRestore ( clientProjectFile , GlobalRestoreSettings ) ;
137137 } ) ;
@@ -154,7 +154,7 @@ Task("Pack-Client")
154154Task ( "Restore-Cli" )
155155 . Description ( "Restore kryptor command line interface dependencies" )
156156 . IsDependentOn ( "Restore-Client" )
157- . WithCriteria ( ! noRestore )
157+ . WithCriteria ( ! noRestore && ! noBuild )
158158 . Does ( ( ) => {
159159 DotNetRestore ( cliProjectFile , GlobalRestoreSettings ) ;
160160 } ) ;
@@ -197,7 +197,7 @@ Task("Publish-Cli.bundle")
197197Task ( "Restore-Cli.Aot" )
198198 . Description ( "Restore kryptor cli native AOT dependencies" )
199199 . IsDependentOn ( "Restore-Client" )
200- . WithCriteria ( ! noRestore )
200+ . WithCriteria ( ! noRestore && ! noBuild )
201201 . Does ( ( ) => {
202202 var restoreSettings = GlobalRestoreSettings ;
203203
@@ -236,7 +236,7 @@ Task("Publish-Cli.Aot")
236236Task ( "Restore-Engine.Test" )
237237 . Description ( "Restore kryptor engine test dependencies" )
238238 . IsDependentOn ( "Restore-Engine" )
239- . WithCriteria ( ! noRestore )
239+ . WithCriteria ( ! noRestore && ! noBuild )
240240 . Does ( ( ) => {
241241 DotNetRestore ( engineTestProjectFile , GlobalRestoreSettings ) ;
242242 } ) ;
0 commit comments