Skip to content
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

Refactor shared framework projects targets and project layout #3703

Merged
merged 9 commits into from Oct 24, 2018

Conversation

natemcmaster
Copy link
Contributor

@natemcmaster natemcmaster commented Oct 23, 2018

This refactors the targets used to build the shared framework and its .zip files. There are lots of reasons motivating this: Arcade convergence, migration to VSTS, making it easier to build this locally, etc.

Changes:

  • Moves move content of build/Sharedfx.{props/targets} into eng/targets/SharedFx.Common.{props/targets}
  • Update the build to produce a runtime.$rid.Microsoft.AspNetCore.App package (not just the one with symbols in it) - Produce platform-specific packages for Microsoft.AspNetCore.App #3607
  • Refactor the targets which produce .tar.gz/.zip files into separate projects in src/Installers/
  • Refactor installers, unit tests, and the framework projects to use ProjectReference to flow dependencies between different parts of the build.
  • Makes it easier to build the shared framework locally (for the inner dev loop, you can run dotnet build -p src/Framework/Microsoft.AspNetCore.App/src/ -r win-x64)

This also lays the foundation for some important next steps:

cref https://github.com/aspnet/AspNetCore-Internal/issues/759, #3653, https://github.com/aspnet/BuildTools/issues/727, dotnet/arcade#88

Nate McMaster added 4 commits October 22, 2018 17:07
This moves the targets used to build the shared framework into a project file. It also makes a few other improvements

* No need to generate an intermediate package to run restore
* Lays the foundation for future refactorings of hte framework, such as flattening the package graph
* Remove shared framework targets from the KoreBuild context
* Change the output of shared framework projects to keep files in distinct groups
* Generate rid-specific packages for shared frameworks
Nate McMaster added 3 commits October 23, 2018 14:54
* Tie together metapackage and shared framework generation
* Add tests to ensure deps.json for the shared framework only has "package" entries
* Remove Microsoft.AspNetCore.Analyzers (this package isn't shipping anyways)
* Cleanup artifacts.props to only include the shipping category
@JunTaoLuo
Copy link
Contributor

D:\a\1\s\build\repo.targets(28,34): error MSB4057: The target "GetMetapackageArtifactInfo" does not exist in the project. [D:\a.dotnet\buildtools\korebuild\2.2.0-preview2-20181019.5\KoreBuild.proj]

@natemcmaster
Copy link
Contributor Author

🆙 📅

Copy link
Contributor

@JunTaoLuo JunTaoLuo left a comment

Choose a reason for hiding this comment

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

Let's give it a shot.

@natemcmaster natemcmaster merged commit 968df95 into release/2.2 Oct 24, 2018
@natemcmaster natemcmaster deleted the namc/sharedfx branch October 24, 2018 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants