-
Notifications
You must be signed in to change notification settings - Fork 520
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
Paket.pack: add support for nuget dependencies conditional on target framework #913
Comments
First question: how could this look in our current paket.template syntax? /cc @mavnn |
I guess it could be worked out like this:
I have a few misgivings on the compatibility of this feature with the overall paket design philosophy. For example:
requires that two separate versions of the same package be present in one environment, which AFAIK is not supported by paket. |
yes.
would be problematic, but only if your app uses both targetFrameworks. If not you can resolve the conflict with paket. |
with new TFM (target framework monikers) and .NET Core that's going to be really useful (needed?) because for some frameworks the library/app depends on different packages. Some examples:
for example Chessie fsprojects/Chessie#43 ( .NET 4.6 and .NET Core with |
We can't use paket to make nuget packages without this, since we have Xamarin packages (which of course use multiple frameworks, and our iOS frameworks obviously can't depend on Android dependencies). |
I have a need for this as well. But I'll also have to specify empty groups to be able to end up with the following: <dependencies>
<group targetFramework=".NETFramework3.5">
<dependency id="TaskParallelLibrary" version="1.0.2856" />
</group>
<group targetFramework=".NETFramework4.0" />
</dependencies> Maybe this could then become:
|
Type The framework assemblies also have this targetFramework: <frameworkAssemblies>
<frameworkAssembly assemblyName="mscorlib" targetFramework=".NETFramework4.6.3" />
<frameworkAssembly assemblyName="System.Core" targetFramework=".NETFramework4.5" />
<frameworkAssembly assemblyName="System.Core" targetFramework=".NETFramework4.6.3" />
</frameworkAssemblies> |
Implementation for #913 Paket.pack: add support for nuget dependencies conditional on target framework
I see #2428 was merged, I haven't been able to figure out a way to generate:
Basically specify no dependencies for a target framework. |
@seanamosw Please open a new issue if this is still the case. |
As of Nuget 2.0, support for package dependencies that that are bound to specific target frameworks has been included. For instance:
I'm not entirely sure how this feature would fit in with the design philosophy of paket, but I'd be interested to see having something like this added to the
paket.template
syntax.The text was updated successfully, but these errors were encountered: