EntityFramework.* packages renamed to EntityFramework7.* & meta-package removed
In Beta 6, the Entity Framework packages have been renamed to EntityFramework7.*. The meta-package EntityFramework has also been removed. For more information, see NuGet Package Naming and aspnet/EntityFramework#2508.
This issue has been locked to avoid spamming folks subscribed to this repository. Please use https://github.com/aspnet/EntityFramework/issues/2508 for any further discussion.
Update (we reverted this change)
Thanks for all the feedback. We discussed this at length and ultimately decided to revert this change (thus removing the major version from the package names). While we have not been able to come up with any concrete scenarios where the major-version-in-name approach was broken, and there does seem to be value in preventing inadvertent upgrades across major version boundaries, we ultimately agreed that we shouldn't try and do anything special in EF to solve this.
BTW it is worth noting that providers may choose to still use a different package name for each EF major version (in fact some already do this for EF5/6). We will leave this decision up to individual provider writers to do what they feel is best.
omg, thank you! +1000
Doesn't including the major version number in the package name defeat the whole point of using SemVer?
It always felt better to me just typing out the package I want, and not worrying about what version is in the title. I would think the major version of the package would be 7.0.0-beta6
@scionwest I agree that it's a little unorthodox, but please read NuGet Package Naming for our rationale.
@bricelam I did and I understand the point behind it. I had read elsewhere (or watched via standups) that you guys were wanting to use SemVer as your version spec for things. In this scenario, for all nuget packages, you're not adhering to that spec. Conditionally adhering to different specs makes versioning more complex than it needs to be.
Imo one spec should be chosen and used for everything. Either nuget or SemVer.
Yeah, no, I agree completely with the rationale on this - ef7 is not ef6, and anybody accidentally upgrading from one to the other is going to get very confused - it's a defensive measure - but one I agree with.
@scionwest I don't read that as applying across all Nuget packages, just EntityFramework (although I might have missed something) The important piece here is allowing the coexistence of EF6 and EF7 in the same solution. This was a significant sticking point me having libs that use EF6 calling complex stored procs, and wanting to use Identity 3.0 with EF7. Had to do a bunch of workarounds to implement everything in EF7. Not sure it applies everywhere but it makes good sense to me here, and I honestly don't see where it introduces any complexity. As the post stated, upgrading major version #s should be a conscious decision, so groking the package naming is the least of your worries.
I read your rationale and understand why you're doing it, but I feel like at this point the version number stops providing anything useful and you might be better off with EntityFramework2015 or even EntityFrameworkMagicUnicorn :smile:
This suggests that EF7 is a different product than EF6. Which is kind of right, that's why there were some discussion about changing the name completely.
So talking about SemVer, which I agree with @scionwest I don't think they are breaking SemVer exactly but if the product name is EF7 right now, sticking to SemVer then you can versioning like EntityFramework7 : 1.0.0-beta6 (for example) instead of version 7.x.x, does this make sense?
So you can have, EntityFramework: 6.x and then EntityFramework7 : 1.0.0-beta6 (is like calling EntityFramework Sequel or 2, it doesn't matter).
With this, you can still have major releases and also breaking changes like EF7: 2.x when it makes sense OR if fits better to break lot of stuff and providers then you can roll out EF8, EF9, EFX (ala apple) using SemVer for all products.
When new 'version' of ef can be considered a new product? There can be a lot of things, but when you see that someone might want to use EFA with EFB in the same project I think that's a good indication of that. Like what's going on currently with EF6 and EF7.
What I see that can be confusing is this 6 - 7 thing. If this was EF and EFS or EFX or new name (which I do ask for consideration) wouldn't be a problem. But as soon as you start seeing EF7 (or EFWhatever) as a new product, this makes sense a lot.
EntityFrameworkReborn :baby:
@Bartmax ugh, lol
See also EF7 – v1 or v7? (especially the So, is it a v1 or a v7? section)
I think @Bartmax hit the nail on the head. The "6" vs "7" isn't being used as a version number so much as a product identifier. It's like with Windows 8 vs. Windows 10 - the latter is not merely a new version of the former, it's a whole new product. With that perspective, I think using the 7 (or 8, 9, etc.) in the package name makes perfect sense.
I don't like this idea, either. I understand the interest in allowing multiple versions of EF to exist within the same AppDomain, but that has to do purely with the name of the assembly; not the package itself.
I have always been a proponent of using --safe when updating packages, which should ensure that updating packages won't break the build. This is the entire point of SemVer, in that the version is semantic in its meaning. The fact that NuGet, and DNU by proxy, both update to latest by default is unfortunate. It should update to the latest safe version by default, which would allow SemVer to be used the way it's intended. Updating to an unsafe (latest) package should require an additional argument (like --latest) at the CLI, or an additional option in the package manager.
Breaking the semantics to make it easier seems to be a crappy work around to the way most package managers work, including NuGet. This is a client issue, not an administrative packaging issue.
I don't mind having meta packages if it makes it easier to find things, but that also seems to be a disadvantage in that discovery of newer versions of EF is also harder.
No, it doesn't. If it's a different product, change the name entirely. It's not a different product, it's a reimagining of the implementation, but it's solving the same problems in a similar way.
Windows 7/9/10 is the version number, and is a marketing tool... Entity Framework isn't being marketed to consumers, it's a toolchain designed for smart people who should definitely be able to understand SemVer if they are trying to connect to a database.
We aren't really moving away from SemVer, but we are moving away from having every version of the product be listed as versions of the same package. I guess you could argue that technically our NuGet package doesn't really follow SemVer... but all up EF does. For example, we won't have v2 of EF7, if there are breaking changes to EF7 it will become EF8.
I agree that having different packages isn't ideal... but it's kind of a side effect of how .NET and NuGet work. We want folks to be able to use two major versions side-by-side in the same project and we don't want folks to be inadvertently upgraded to a new major version (with breaking changes) when they upgrade their packages.
I have read Naming article but I'm sorry to say I didn't find any good reason for that move.
You build a whole new platform and versioning story around semver and you are the first to break it before it even ships. Nicely done.
BTW: what is the next version going to be called? EF8 v1.0 ? EF8 v8.0? EF7 v8.0? That's non-sense.
@terryt2000 I use Identity 3.0 as well, but I am not ready to take a dependency on EF7 yet. All you have to do is not use Microsoft.AspNet.Identity.EntityFramework and replace it with your own EF6 stores. It works perfectly. Mixing EF6 and EF7 in the same application is so ugly and such a bad idea. :scream:
@rowanmiller Well yes you are breaking semver.
if there are breaking changes to EF7 it will become EF8.
Guess what, semver defines something for that: a major version bump. Clearly you don't want to follow semver but make up your own system.
Your arguments are very generic and could apply to any project... Imagine for a second a world where every package on Nuget follows the same system as you propose. Would that be good? If not what makes it OK just for you?
@jods4 although i would also have liked if ef7 was given a different name, but come on their is still nothing to be so much angry about , and their is nothing that one should react like this.
All this 'following semver to the letter' is great in theory; but I can tell you the majority of developers out there, using .Net (and also most of who, won't even be aware of ef7s existence yet) don't consider that a major version bump imp;ies breaking changes or, at least, loss of functionality either. 'Itz wrongz' is all very well and good, but there has to be some pragmatism - just because you're fully aware of semver and all its side0effects, doesn't mean everyone is. Also, EF has struggled enough with getting traction in many workplaces - allowing the new build to run side by side will encourage it to continue to do so.
@rowanmiller
I agree that having different packages isn't ideal... but it's kind of a side effect of how .NET and NuGet work. We want folks to be able to use two major versions side-by-side in the same project and we don't want folks to be inadvertently upgraded to a new major version (with breaking changes) when they upgrade their packages.
I disagree. It's not a side-effect of how .NET and NuGet work. It's a side-effect of the design choice the ASP.net team have made on the overall product. I haven't personally done much with NuGet, so I'm not 100% sure on this. Can't you have different assembly names (ef6 & ef7) while keeping the same package name? I don't see how that causes conflicts with running different versions of EF side-by-side, unless NuGet isn't smart enough and just replaces the previous package of the same name.
Eitherway, I don't think supporting side-by-side versions of EF is something that should be a goal here. You don't try and run the different versions of .NET in the same project (same solution sure; not the same project), nor have I ever seen anyone try to run different versions of the any other framework side-by-side in one project. This doesn't feel like a valid reason to break a spec.
EF 6 to EF7 is not a whole new product. It's the same person, different clothes. EF7 with a SemVer of 1.0 doesn't jive well. SimVer spec reads as
Major version X (X.y.z | X > 0) MUST be incremented if any backwards incompatible changes are introduced to the public API.
This fits the bill of EF7.
In response to @daveaglick
It's like with Windows 8 vs. Windows 10
This is Apple and Oranges. The actual version number of Windows 8 is not, 8.0. It is 6.3. Windows 8 is a marketing name. You can apply "Entity Framework 7" in the marketing material, that's not the issue. When referencing it as a package though, it should follow the spec. "EntityFramework":"7.0.0-beta6"