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

Update VS Tools to work with SDK-style projects #883

Closed
bricelam opened this issue Jun 1, 2019 · 13 comments
Closed

Update VS Tools to work with SDK-style projects #883

bricelam opened this issue Jun 1, 2019 · 13 comments

Comments

@bricelam
Copy link
Contributor

bricelam commented Jun 1, 2019

Breaking this out from #231 since it’s tied to VS releases, not .NET Core releases.

We’ll need to update the designer to work with the CPS-based project system used by SDK-style csproj (and vbproj) files.

@bricelam
Copy link
Contributor Author

bricelam commented Jun 5, 2019

@divega said in #189:

Currently we use NuGet packages (entityframework.codetemplates.csharp and entityframework.codetemplates.visualbasic) to distribute customizable versions of the T4 templates for the "code first from an existing database" option in the EF6 designer. We would need to have alternative ways to distribute them, e.g. add them as item templates in the designer's setup, or point customers to the code in docs, github, etc.

@ErikEJ
Copy link
Contributor

ErikEJ commented Jun 5, 2019

Could EF 6 Power Tools help here??

@divega
Copy link
Contributor

divega commented Jun 6, 2019

@bricelam can you remind me (once more) what is the reason the T4 templates as VSIX wouldn't work anymore?

@bricelam
Copy link
Contributor Author

bricelam commented Jun 7, 2019

We could distribute them as a VSIX, but I’d just make them part of the main installer if we did that. (Or part of the power tools if we think it’s too corner-case to add in the main package)

I don’t think an item template (File > Add new item) isn’t a good fit because they need to go in a specific directory. On the other hand I doubt we can add a new item in the project right-click menu...

@bricelam
Copy link
Contributor Author

bricelam commented Jun 7, 2019

...but Erik can. 😉

@husseinraoouf
Copy link

will this be implement soon or i should expect a long time
ef 6.3 is already released for more than month now and this is an important issue for any one want to use 6.3 release

@Flem100
Copy link

Flem100 commented Dec 5, 2019

Just to be clear, this is the place to if I want to follow the progress of getting EF 6.3 in a core project, to work with EDMX files? Any ETA? This is the only thing left, keeping us from going forward with our Blazor serverside project. :). I know there are workarounds, but we can wait for the real deal, if it's not too long ;).

@ajcvickers
Copy link
Member

@Flem100 This is not planned for anytime soon. Instead, follow the documentation here: https://docs.microsoft.com/en-us/ef/ef6/what-is-new/#ef-designer-support

@Flem100
Copy link

Flem100 commented Dec 5, 2019

@ajcvickers Thank you for that information! :)

@fretje
Copy link

fretje commented Dec 14, 2020

Not sure if this is the right issue to report this, but I have an problem with the ef6 commands after updating my MVC5 web-project to the new SDK style project, following the instructions here.

Everything works, except that the tools look for app.config in stead of web.config because the IsWeb method in EntityFramework6.psm1 doesn't take this scenario into account.

So I can work around it by creating an app.config file with the connectionstring information, but it would be nice if that wouldn't be necessary.

@bricelam
Copy link
Contributor Author

bricelam commented Jan 5, 2021

@fretje That seems unrelated. Can you submit a new issue?

@agilenut
Copy link

agilenut commented Mar 4, 2021

We have a project that is using EF 6.4.4 with Database-First (EDMX files).

We converted the project to SDK-style and are targeting net48. We are able to use the "Update Models from Database..." option and save the EDMX file. This correctly updates the EDMX file but does not run the T4 templates. Previously, before the SDK-style update, it did run the T4 templates automatically.

We are able to manually run the T4 templates after updating the EDMX file but would prefer for it to run them automatically as it did in non-SDK-style projects.

Is this issue going to address this or should this be a separate issue?

@ajcvickers
Copy link
Member

This issue has been closed because EF6 is no longer being actively developed. We are instead focusing on stability of the codebase, which means we will only make changes to address security issues. See the repo README for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants