fsprojects / Paket

A dependency manager for .NET with support for NuGet packages and Git repositories.
https://fsprojects.github.io/Paket/
MIT License
2k stars 520 forks source link

paket.template: support "framework: xyz" in frameworkAssemblies #3063

Open Tarmil opened 6 years ago

Tarmil commented 6 years ago

In a paket.template file, it is currently possible to specify dependencies for a specific framework:

dependencies
  framework: net45
    NUnit

which creates this nuspec bit:

<dependencies>
  <group targetFramework="net461">
    <dependency id="NUnit" version="0.0" />
  </group>
</dependencies>

but the same does not work for frameworkAssemblies:

frameworkAssemblies
  framework: net45
    System.Web

which should create this nuspec bit:

<frameworkAssemblies>
  <frameworkAssembly assemblyName="System.Web" targetFramework="net45" />
</frameworkAssemblies>
jbaehr commented 4 years ago

Any news on this? I think I'm in a similar situation: I want to create a package depending on OPC classes from the System.IO.Packaging namespace. In netstandard20 they come with the "System.IO.Packaging" nuget, for framework I need a reference to "WindowsBase".

So from the dependency declarations I basically need the same as the DocumentFormat.OpenXml nuget (just not with the additional XML dependencies but Newtonsoft.Json instead). Is there a way to achieve this with a paket.template?