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
Favor project-specific build scripts over top-level script (dotnet#29918)
* Remove top-level build scripts in favor of project specific scripts
* Add more build scripts and move top-level to eng
* Fix path in Powershell script
* Update BuildDirectory for CI jobs
* Fix paths in restore scripts and jobs
* Address feedback from peer review
* Fix references to Html.Abstractions
* Update baseline files with new project
* Fix a few more broken links
* !fixup! Correct Build.props and regen project references
* Update docs and fix public api modification check
Co-authored-by: Doug Bunting <[email protected]>
Copy file name to clipboardexpand all lines: docs/BuildFromSource.md
+9-3
Original file line number
Diff line number
Diff line change
@@ -224,13 +224,19 @@ code .
224
224
225
225
When developing in VS Code, you'll need to use the `build.cmd` or `build.sh` scripts in order to build the project. You can learn more about the command line options available, check out [the section below](using-dotnet-on-command-line-in-this-repo).
226
226
227
-
On Windows:
227
+
The source code in this repo is divided into directories for each project area. Each directory will typically contain a `src` directory that contains the source files for a project and a `test` directory that contains the test projects and assets within a project.
228
+
229
+
Some projects, like the `Components` project or the `Razor` project, might contain additional subdirectories.
230
+
231
+
To build a code change associated with a modification, run the build script in the directory closest to the modified file. For example, if you've modified `src/Components/WebAssembly/Server/src/WebAssemblyNetDebugProxyAppBuilderExtensions.cs` then run the build script located in `src/Components`.
232
+
233
+
On Windows, you can run the command script:
228
234
229
235
```powershell
230
236
.\build.cmd
231
237
```
232
238
233
-
On macOS/Linux:
239
+
On macOS/Linux, you can run the shell script:
234
240
235
241
```bash
236
242
./build.sh
@@ -266,7 +272,7 @@ source ./activate.sh
266
272
267
273
### Running tests on command-line
268
274
269
-
Tests are not run by default. Use the `-test` option to run tests in addition to building.
275
+
Tests are not run by default. When invoking a `build.cmd`/`build.sh` script, use the `-test` option to run tests in addition to building.
0 commit comments