You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-Host-f Magenta "Building of C# project is enabled and has dependencies on NodeJS projects. Building of NodeJS projects is enabled since node is detected in $nodeHome."
201
+
}
202
+
else {
203
+
Write-Host-f Magenta "Building of NodeJS projects is disabled since node is not detected on Path and no BuildNodeJs or NoBuildNodeJs setting is set explicitly."
204
+
$NoBuildNodeJS=$true
205
+
}
206
+
}
207
+
208
+
if ($NoBuildNodeJS){
209
+
Write-Warning"Some managed projects depend on NodeJS projects. Building NodeJS is disabled so the managed projects will fallback to using the output from previous builds. The output may not be correct or up to date."
210
+
}
196
211
}
197
212
198
213
if ($BuildInstallers) { $MSBuildArguments+="/p:BuildInstallers=true" }
__warn "Building of C# project is enabled and has dependencies on NodeJS projects. Building of NodeJS projects is enabled since node is detected on PATH."
228
+
else
229
+
__warn "Building of NodeJS projects is disabled since node is not detected on Path and no BuildNodeJs or NoBuildNodeJs setting is set explicitly."
230
+
build_nodejs=false
231
+
fi
232
+
fi
233
+
234
+
if [ "$build_nodejs"=false ];then
235
+
__warn "Some managed projects depend on NodeJS projects. Building NodeJS is disabled so the managed projects will fallback to using the output from previous builds. The output may not be correct or up to date."
236
+
fi
226
237
fi
227
238
228
239
# Only set these MSBuild properties if they were explicitly set by build parameters.
Copy file name to clipboardExpand all lines: docs/BuildFromSource.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -97,14 +97,14 @@ The cause of this problem is that the solution you are using does not include th
97
97
```
98
98
99
99
### Common error: Unable to locate the .NET Core SDK
100
-
100
+
101
101
Executing `.\restore.cmd` or `.\build.cmd` may produce these errors:
102
102
103
103
> error : Unable to locate the .NET Core SDK. Check that it is installed and that the version specified in global.json (if any) matches the installed version.
104
104
> error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
105
105
106
106
In most cases, this is because the option _Use previews of the .NET Core SDK_ in VS2019 is not checked. Start Visual Studio, go to _Tools > Options_ and check _Use previews of the .NET Core SDK_ under _Environment > Preview Features_.
107
-
107
+
108
108
## Building with Visual Studio Code
109
109
110
110
Using Visual Studio Code with this repo requires setting environment variables on command line first.
@@ -138,7 +138,7 @@ On macOS/Linux:
138
138
./build.sh
139
139
```
140
140
141
-
By default, all of the C# projects are built. Some C# projects requires NodeJS to be installed to compile JavaScript assets. To disable building NodeJS projects and all C# projects that depend on them, specify /p:BuildNodeJs=false on the command line.
141
+
By default, all of the C# projects are built. Some C# projects requires NodeJS to be installed to compile JavaScript assets which are then checked in as source. If NodeJS is detected on the path, the NodeJS projects will be compiled as part of building C# projects. If NodeJS is not detected on the path, the JavaScript assets checked in previously will be used instead. To disable building NodeJS projects, specify /p:BuildNodeJs=false on the command line.
0 commit comments