Skip to content

Conversation

@MichaelSimons
Copy link
Member

These are various changes needed while building aspnetcore within the source-build tarball. See dotnet/installer#11113 for context.

  1. Tweak CI to not build the RepoTasks in the "outer" build. This gets invoked within the "inner" source-build. This more accurately reflects how the source-build tarball build works. This will surface/catch more issues at the repo level.
  2. Capture the binaryLog while building RepoTasks for source-build.
  3. Update the RepoTasks' Microsoft.Extensions.DependencyModel reference to use the version specified in the versions.props file. This allows the RepoTasks to pickup the version that is source-built during source builds. This eliminates a pre-built.
  4. Refactor the GenerateFiles to run for source build. The generated props and target files are necessary for source build.

@MichaelSimons MichaelSimons requested a review from a team as a code owner August 4, 2021 01:41
@ghost ghost added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Aug 4, 2021
<PropertyGroup>
<!-- Use fixed version instead of $(DefaultNetCoreTargetFramework) to avoid needing workarounds set up here. -->
<TargetFramework>net5.0</TargetFramework>
<ExcludeFromSourceBuild>false</ExcludeFromSourceBuild>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this the default?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, there is logic in the root Directory.Build.targets that sets this to true based on various conditions.

@MichaelSimons MichaelSimons merged commit 02dbcc0 into dotnet:main Aug 5, 2021
@ghost ghost added this to the 6.0-rc1 milestone Aug 5, 2021
@MichaelSimons MichaelSimons deleted the source-build-patches branch August 5, 2021 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants