-
由 Doug Bunting 创作于
Also address Markdown warnings in BuildFromSource.md - surround bare URLs with angle brackets - add languages to code blocks - fix missing blank lines and style inconsistencies
由 Doug Bunting 创作于Also address Markdown warnings in BuildFromSource.md - surround bare URLs with angle brackets - add languages to code blocks - fix missing blank lines and style inconsistencies
Build ASP.NET Core from Source
Building ASP.NET Core from source allows you to tweak and customize ASP.NET Core, and to contribute your improvements back to the project.
See https://github.com/dotnet/aspnetcore/labels/area-infrastructure for known issues and to track ongoing work.
Install pre-requisites
Windows
Building ASP.NET Core on Windows requires:
- Windows 10, version 1803 or newer
- At least 10 GB of disk space and a good internet connection (our build scripts download a lot of tools and dependencies)
- Visual Studio 2019. https://visualstudio.com
-
To install the exact required components, run eng/scripts/InstallVisualStudio.ps1.
PS> ./eng/scripts/InstallVisualStudio.ps1
However, any Visual Studio 2019 instance that meets the requirements should be fine. See global.json and eng/scripts/vs.json for those requirements.
-
- Git. https://git-scm.org
- NodeJS. LTS version of 10.14.2 or newer https://nodejs.org
- Java Development Kit 11 or newer. Either:
-
OpenJDK https://jdk.java.net/
-
Oracle's JDK https://www.oracle.com/technetwork/java/javase/downloads/index.html
-
To install a version of the JDK that will only be used by this repo, run eng/scripts/InstallJdk.ps1
PS> ./eng/scripts/InstallJdk.ps1
However, the build should find any JDK 11 or newer installation on the machine.
-
- Chrome - Selenium-based tests require a version of Chrome to be installed. Download and install it from https://www.google.com/chrome
macOS/Linux
Building ASP.NET Core on macOS or Linux requires:
- If using macOS, you need macOS Sierra or newer.
- If using Linux, you need a machine with all .NET Core Linux prerequisites: https://docs.microsoft.com/en-us/dotnet/core/linux-prerequisites
- At least 10 GB of disk space and a good internet connection (our build scripts download a lot of tools and dependencies)
- Git https://git-scm.org
- NodeJS. LTS version of 10.14.2 or newer https://nodejs.org
- Java Development Kit 11 or newer. Either:
- OpenJDK https://jdk.java.net/
- Oracle's JDK https://www.oracle.com/technetwork/java/javase/downloads/index.html