Skip to content

Commit aa1eb22

Browse files
committed
fix(ci): wire restore as build dependency via targetDefaults
1 parent bfbd416 commit aa1eb22

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

nx.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
"plugins": [
44
"@nx/dotnet"
55
],
6+
"targetDefaults": {
7+
"//": "@nx/dotnet infers build with --no-restore but does not add restore as a dependsOn. This default wires it in so restore always runs before build.",
8+
"build": {
9+
"dependsOn": ["restore", "^build"]
10+
}
11+
},
612
"namedInputs": {
713
"default": [
814
"{projectRoot}/**/*"

0 commit comments

Comments
 (0)