Paket.pack: add support for nuget dependencies conditional on target framework
See original GitHub issueAs of Nuget 2.0, support for package dependencies that that are bound to specific target frameworks has been included. For instance:
<dependencies>
<group>
<dependency id="RouteMagic" version="1.1.0" />
</group>
<group targetFramework="net40">
<dependency id="jQuery" />
<dependency id="WebActivator" />
</group>
<group targetFramework="sl30">
</group>
</dependencies>
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.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:6
- Comments:9 (8 by maintainers)
Top Results From Across the Web
PackageReference in project files - NuGet
Package references, using <PackageReference> MSBuild items, specify NuGet package dependencies directly within project files, as opposed to ...
Read more >How do I specify conditional dependencies based on target ...
I am building a NuGet package that references the Microsoft CommonServiceLocator assembly. There are two versions of the Microsoft ...
Read more >FAQ — Frequently Asked Questions
If you install NuGet packages into your project then these packages can have dependencies on other NuGet packages. Paket calls these dependencies "transitive"....
Read more >Managing Dependencies in .NET: .csproj, .packages.config ...
Packages can be conditionally included by adding conditions in the corresponding line in the section. .NET developers typically find components ...
Read more >Paket 7.2.1
A dependency manager for .NET with support for NuGet packages and git repositories.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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:
Maybe this could then become:
@seanamosw Please open a new issue if this is still the case.