Skip to content

Recommendations on variations of build components that need to be used in the same build? #1135

Answered by matkoch
forrestab asked this question in Q&A
Discussion options

You must be logged in to vote

You should introduce separate targets for that – RestoreDotNet, RestoreNpm, ...

One example could work like this (for illustration without components):

Target Restore => _ => _;

Target Compile => _ => _
    .DependsOn(Restore);

Target RestoreDotNet => _ => _
    .DependentFor(Restore);

Target RestoreNpm => _ => _
    .DependentFor(Restore);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by forrestab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants