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
Tons of new dependencies when updating to v3 on .net 4.6.2 #270
Comments
Sup @xt0rted , fancy seeing you here...
I assume you're not running on MVC Core - and hence aren't using the DI/Options system to configure MailChimp?
Wouldn't the solution be a base I don't think it's an issue of FullFramework vs NetCore - given that you can also run MvcCore on FullFramework. |
I'm running classic asp.net, but my mailchimp integration is in a console app and runs as a webjob. My knowledge of .net/mvc core is very little right now, but if you setup a .net core based console app (which is possible based on what I've seen in the webjobs sdk repo) then the Moving this stuff to an AspNetCore package is what I was initially thinking, since that's what I've seen elsewhere. But again, I haven't touched this until now and so much has changed from 1.x to 2.x that I can't really say one way or the other what needs to be done so it'll work in all situations. I just know what needs to change to work in my situation 😉 |
Not directly. You can technically use the Also relevant is this: So there is already supposed to be a Edit: No, that package is made by someone else..... |
Can you pull latest prerelease and let me know how it works out. |
I just pulled in the 3.1.1-alpha release and all the .net core packages coming in has been resolved. The only problem now, which @ctolkien's update addressed, is for anyone running on asp.net core against the full framework they won't have the new |
Stale issue message |
I was just updating from 1.8.5 to 3.0.0 and there's an insane amount of dependencies now for non .net core projects (I'm targeting .net 4.6.2 & 4.7 and not using anything .net core related). This is what it wants to install.
The new features for
IOptions
andIServiceCollection
aren't needed in this setting, but they're the reason all of those extra dependencies are being pulled in.Conditionally compiling those features for .net standard only would remove those dependencies from .net 4.5+, but I think that means anyone running .net core but targeting the full framework won't get them. I could be wrong on that, but that's my understanding of it. If that's not the case then I have a PR ready to go that conditionally compiles those features.
Another option would be two separate projects, one for .net core and one for everything else. The projects would share the same source files, but the
IOptions
andIServiceCollection
code would be in the .net core project only. This would result in two different packages needing to be published, but it would save everyone who's not on .net core from having to deal with all of these new dependencies.For now I'm sticking to 2.1.0 since that doesn't have all of these extra dependencies.
The text was updated successfully, but these errors were encountered: