-
Notifications
You must be signed in to change notification settings - Fork 525
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 with multi-targeted project only creates first framework specified #3494
Comments
I am also interested in this, very much. |
Swapping the frameworks around gives the above behavior, even without rebuild. I've even tried to "paket pack" the stuff in the netstandard2.0 folder, it even then came with a net45 folder in the nupkg. |
Did you try dotnet pack? Paket integrates into that and it allows multi
targeting
Am Sa., 2. Feb. 2019, 21:42 hat Frank Joppe <[email protected]>
geschrieben:
… Swapping the frameworks around gives the above behavior, even without
rebuild.
I've even tried to "paket pack" the stuff *in* the netstandard2.0 folder,
it even then came with a net45 folder in the nupkg.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3494 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADgND8nzMmbBp_11NyP1hurMbwBhW9vks5vJfgvgaJpZM4aV1yb>
.
|
Yes, I was experimenting with that. The result appeared good. However, my question (for me) is, what is the best choice now, to put in my FAKE5 build script? Dotnet pack or paket pack? I don't know at this point. I o like the Paket integration in FAKE. |
Dotnet pack is probably the way to go forward.
Am So., 3. Feb. 2019, 08:57 hat Frank Joppe <[email protected]>
geschrieben:
… Yes, I was experimenting with that. The result appeared good. However, my
question (for me) is, what is the best choice now, to put in my FAKE5 build
script? Dotnet pack or paket pack? I don't know at this point. I o like the
Paket integration in FAKE.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3494 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADgNDTQf62-yvbO_HoYReIvYpsVrrF8ks5vJpZngaJpZM4aV1yb>
.
|
@forki The problem is that I think we need to make |
Description
using
paket pack
on a project with multiple TargetFrameworks creates a nupkg with only the first specified framework. ie. if the declaration is<TargetFrameworks>netstandard2.0;net472</TargetFrameworks>
, then the nupkg has just thenetstandard2.0
contents.If they're swapped round:
<TargetFrameworks>net472;netstandard2.0</TargetFrameworks>
, then the nupkg has just thenet472
contents.Repro steps
Get this repo: https://github.com/ozwaldDunlop/paket-multitarget-bug
.paket\paket.exe install
.paket\paket.exe pack . --build-config Debug
Expected behavior
You should see
netstandard2.0
andnet472
folders in the nupkg as you do when you rundotnet pack
:Actual behavior
You only see one lib folder:
Known workarounds
Use
dotnet pack
instead ofpaket pack
The text was updated successfully, but these errors were encountered: