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

PMC Tools: Build only the active project, not the whole solution #9716

Open
ajcvickers opened this issue Sep 7, 2017 · 4 comments
Open

PMC Tools: Build only the active project, not the whole solution #9716

ajcvickers opened this issue Sep 7, 2017 · 4 comments
Labels
area-tools punted-for-6.0 punted-for-7.0 Originally planned for the EF Core 7.0 (EF7) release, but moved out due to resource constraints. type-enhancement
Milestone

Comments

@ajcvickers
Copy link
Contributor

We tried to do this before, but ran into issues. Hopefully the project system has matured such that it is now possible. See #9515 for more discussion.

@bricelam
Copy link
Contributor

bricelam commented Sep 7, 2017

Note, this only applies to the PMC Tools. The CLI tools already only build the startup project.

@syndicatedshannon
Copy link

syndicatedshannon commented Sep 7, 2017

Thank you @bricelam . That wasn't made clear or I missed it on other threads. Knowing that, I can probably build a tooling workaround, except for the fact that I have other issues getting CLI working for EF Core 2.0 :( . I'll switch my focus to fixing those.

@bricelam bricelam changed the title Build only the active project in tooling, not the whole solution PMC Tools: Build only the active project, not the whole solution Sep 7, 2017
@bricelam bricelam self-assigned this Sep 7, 2017
@ajcvickers ajcvickers added this to the Backlog milestone Sep 8, 2017
@bricelam bricelam removed their assignment Oct 12, 2018
@ajcvickers ajcvickers modified the milestones: Backlog, 3.0.0 Jan 30, 2019
@ajcvickers ajcvickers modified the milestones: 3.0.0, Backlog May 10, 2019
@bricelam bricelam added closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. and removed punted-for-3.0 labels Jul 22, 2019
@bricelam bricelam modified the milestones: Backlog, 3.0.0 Jul 22, 2019
@bricelam bricelam removed the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Jul 29, 2019
@bricelam bricelam removed this from the 3.0.0 milestone Jul 29, 2019
@Mike-E-angelo
Copy link

It would be neat to have this, as this is the only reason I typically use PMC. 😁

@Mike-E-angelo
Copy link

Unfortunately using the dotnet ef equivalent seems to invalidate all projects in my solution, seemingly replacing one problem with another.

First, I run dotnet clean and SHIFT-CTRL-B on my SLN:

========== Build: 130 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

SHIFT-CTRL-B again to be sure:

========== Build: 0 succeeded, 0 failed, 130 up-to-date, 0 skipped ==========

I then run the following commands:

dotnet ef database drop -f -v --project Starbeam.Model.Schema --startup-project Starbeam.Model.Schema
dotnet ef migrations remove -v --project Starbeam.Model.Schema --startup-project Starbeam.Model.Schema
dotnet ef migrations add Initial -v --project Starbeam.Model.Schema --startup-project Starbeam.Model.Schema

Finally, after that is complete, I run SHIFT-CTRL-B once more:

========== Build: 129 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========

FWIW this is with 6.0.0-rc.2.21452.6 tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-tools punted-for-6.0 punted-for-7.0 Originally planned for the EF Core 7.0 (EF7) release, but moved out due to resource constraints. type-enhancement
Projects
None yet
Development

No branches or pull requests

5 participants