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

U.I. to create migrations bundles #1078

Closed
ajcvickers opened this issue Aug 20, 2021 · 8 comments
Closed

U.I. to create migrations bundles #1078

ajcvickers opened this issue Aug 20, 2021 · 8 comments
Labels
enhancement New feature or request migrationstool

Comments

@ajcvickers
Copy link

Would be nice to have a gesture in VS to create a bundle. :-)

@ajcvickers
Copy link
Author

/cc @bricelam

@ErikEJ
Copy link
Owner

ErikEJ commented Aug 22, 2021

Thoughts about design? An option here, or a seperate menu item?

image

@ajcvickers
Copy link
Author

@dotnet/efteam Your chance to have input on the U.I.

@ajcvickers
Copy link
Author

ajcvickers commented Aug 22, 2021

Not sure mentioning the team here works. So /cc @bricelam @roji @AndriySvyryd @maumar @smitpatel @JeremyLikness

@bricelam
Copy link
Contributor

How do you get a SQL script today? I'd put it next to that.

@ErikEJ
Copy link
Owner

ErikEJ commented Nov 5, 2021

@bricelam I only expect the user to reference .Design - but it looks like a lot of logic for this is in the ef tool, and I guess I have to duplicate all that - or am I looking in the wrong place?

@bricelam
Copy link
Contributor

bricelam commented Nov 5, 2021

Hmm... You're right, most of the logic for generating and building the bundle is in ef.exe (actually a .dll on .NET 6).

You could consider shipping that dll as part of the power tools. It's included in both the EFCore.Tools and dotnet-ef NuGet packages.

Or it might be easier just to re-implement. It basically generates two files--Program.cs and efbundle.csproj--and runs dotnet publish on them.

There's also a tiny bit of logic in the PMC command to match the target framework of the startup project that might be interesting.

@ErikEJ ErikEJ added migrationstool enhancement New feature or request labels Dec 20, 2021
@ErikEJ
Copy link
Owner

ErikEJ commented Dec 26, 2022

Will not do this due to too much code copy and just 1 upvote

@ErikEJ ErikEJ closed this as not planned Won't fix, can't repro, duplicate, stale Dec 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request migrationstool
Projects
None yet
Development

No branches or pull requests

3 participants