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
{{ message }}
Repository navigation
Enable source-build for the ASP.NET Core shared framework #3752
The Microsoft.AspNetCore.App shared framework and many of dependencies are not currently supported in source-build. To enable source-build on this shared runtime, we expect the following changes will need to be made:
Add a build flag to enable building only source-buildable assets. Not everything in the repo will support source-build
Enabling compiling without any remote assets.
Change our build scripts skip steps which require unavailable tools, such as NuGetPackageVerifier, xunit analyzers, etc.
Requirements
The following must be available via source-build:
everything in the Microsoft.AspNetCore.App shared framework for Linux (currently excluding Windows, which requires Visual Studio to build)
all assemblies in the Microsoft.AspNetCore.App targeting pack
I've looked closer at implementing this. Here are some thoughts
Notes:
Repos to add to source-build, in order
aspnet/Extensions
aspnet/AspNetCore-Tooling
aspnet/AspNetCore
It's unclear how our contributors and devs will know if a particular change would break source-build. I cannot identify a simple way to test source-build support as a pull-request check.
We will need a fix or workaround for Building a targeting and runtime pack locally sdk#2910 before we can add aspnet/AspNetCore. Our build currently the build assumes the SDK is in $repoRoot/.dotnet/, but according to the Repo API, we may need to allow for external location and version of dotnet
Convert to Arcade SDK #7280 - convert to Arcade. Done on 2/3 repos. This should be done first so we don't also need to convert KoreBuild to source-build
Source build for Windows will be very challenging due to our dependency on Visual Studio C++ tooling to build the IIS inprocess hosting .dll.
As mentioned in OP, we do not intend to build every line of code in these repos. This means we need exclude the following when -DotNetBuildFromSource true is set
Visual Studio tooling projects (.vsix)
All NuGet packages, except those required to move bits between repos (in 3.0, targeting packs and runtime packs are bundled in the SDK and not necessarily consumed via NuGet)
Activity
Update the list of shipping vs internal packages (#4552)
natemcmaster commentedon Feb 5, 2019
I've looked closer at implementing this. Here are some thoughts
Notes:
$repoRoot/.dotnet/, but according to the Repo API, we may need to allow for external location and version of dotnet-DotNetBuildFromSource trueis setcc @Eilon @dseefeld
11 remaining items
JunTaoLuo commentedon Aug 21, 2019
It looks like AspNetCore has been integrated in source build in dotnet/source-build#1144. We're done!