-
Notifications
You must be signed in to change notification settings - Fork 804
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
minimize nuget deps for FSharp.Core #1358
Conversation
👍 is this already running in a (integration) test? so that we can see if this would work? |
@forki I'm not sure |
I guess this means no ;-) easiest way to check would be to remove all deps and see if we get a red light. |
Disclaimer: aside from Is it necessary to have a nuspec here when the |
@cartermp I think this one is for nuget pack to create a new package. I assume latest version could infer this from project.json, but I think this is much older than that (and I'm not completely sure if it already infers the stripped down dependencies list). So since the tooling is about to change again we probably just keep it as nuspec and hope to make it work. |
@forki Yeah, if you have |
I don't mean to be facetious but isn't the dependency list bigger with this change? |
The transitive dependencies should be much smaller if we don't reference On Jul 18, 2016 9:03 PM, "Kevin Ransom (msft)" notifications@github.com
|
It's smaller in this case. NuGet doesn't support publish-time trimming, so the NuGet package will come packaged up with all of the packages (I think 13 or 14?) that it doesn't actually use. |
Iit looks like FSharp.Core 4.0.15 was just published to the NuGet Gallery: It lists these as the NuGet dependencies for
My understanding is that this PR reduces the total number of transitive dependencies, but makes the displayed list longer since it doesn't put a dependency on the NETStandard.Library aggregate. Is that correct? That makes sense to me. |
@ctaggart Yes, that's correct. |
@ctaggart I presume the large set of transitive dependencies will cause a lot of problems for users of the FSharp.Core package? Especially for Paket users if the framework restriction setting is not used in the dependencies file ? And possibly also for Nuget users? If so, do you think we should unlist that nuget package until this PR is merged and a new FSharp.Core for .NET Standard is available? Thanks |
I think a good compromise would be to unlist and release alpha versions instead. |
@dsyme I've already gotten into the habit of putting net452 into my paket.dependencies file - there are a few packages that already support netcore and it takes ages to download them all - not to mention that the lock file becomes huge and impossible to reason about. |
I checked the Nuget bahaviour from the Visual Studio 2015 IDE and it doesn't seem to add any extra time to using the nuget package. @forki I do wonder if some framework setting e.g. |
auto-detect is currently more a experimental feature and adds some serious time penalty since we need to compute the framework from what is specified in MSBuild files |
@dsyme kevin |
This is an attempt to minimize the dependencies in the FSharp.Core nuget package so it doesn't induce a dependency on the whole .NETStandard library
See #1357