-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Spruce up BuildFromSource docs based on feedback #26707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great improvement❕ Some of my comments and suggestions are nits and the count definitely doesn't reflect how much better the doc looks.
docs/BuildFromSource.md
Outdated
> You can do so by running the `Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser` command | ||
> in PowerShell. For more information on execution policies, you can read the [execution policy docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy). | ||
|
||
If you already have Visual Studio installed, you can use the installation script above to ensure that you have the correct components installed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest removing this line. It's redundant given https://github.com/dotnet/aspnetcore/pull/26707/files#diff-a7fae696e4f4a8d72dea5e224d7463bcR45
docs/BuildFromSource.md
Outdated
|
||
If you already have Visual Studio installed, you can use the installation script above to ensure that you have the correct components installed. | ||
|
||
The [global.json](/global.json) and [eng/scripts/vs.json](/eng/scripts/vs.json) provide a description of the components required to support building the repo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest adding a note that global.json only specifies the minimum requirements to build from the command line i.e. that file ensures the native builds (which use desktop msbuild
) can work. Need the additional components from vs.json to build within Visual Studio.
Suggest also mentioning that InstallVisualStudio.ps1 uses vs.json by default.
docs/BuildFromSource.md
Outdated
2. Solution files group together projects which are frequently edited at the same time. | ||
3. Can't find a solution that has the projects you care about? Feel free to make a PR to add a new .slnf file. | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: extra line
docs/BuildFromSource.md
Outdated
@@ -224,13 +266,15 @@ On macOS/Linux: | |||
./build.sh --test | |||
``` | |||
|
|||
## Building a subset of the code | |||
> :bulb: If you're working on changes for a particular subset of the project, you might not want to execute the entire test suite. Instead, only run the tests within the subdirectory where changes were made. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does build.cmd
have a way to execute a particular subset of test? or do we need to activate and then do dotnet test
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, e.g. .\build.cmd -test -projects .\src\Framework\test\Microsoft.AspNetCore.App.UnitTests.csproj
. You could add -noBuild
to that command line if the build is already completely up-to-date.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! thanks
Co-authored-by: Doug Bunting <[email protected]>
23c5d5a
to
08e2ec0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, I have only nits/minor suggestions, but really love the updates here.
Thanks a bunch @captainsafia !
Co-authored-by: Kevin Pilch <[email protected]>
Co-authored-by: Doug Bunting <[email protected]>
A little spruce up of the build docs based on some feedback we've gotten from folks participating in the sprints: