You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Profile259 assembly ends up in "net45" directory in package #797
I'm fairly new to all of this, so it may be my mistake. I created a profile 259 PCL assembly and packed it using the standard stuff: Target "NuGet" (fun _ -> Paket.Pack(fun p -> { p with Version = release.NugetVersion ReleaseNotes = toLines release.Notes})
However in the resulting package the DLL was put into the "lib\net45" folder. I guess I expected it to go into a lib/portable-net45+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1 folder or equivalent.
The DLL that got packed was built with normal settings and placed into a "bin" folder
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> <TargetFrameworkProfile>Profile259</TargetFrameworkProfile> <TargetProfile>netcore</TargetProfile> <TargetFSharpCoreVersion>3.259.3.1</TargetFSharpCoreVersion>
My understanding from this is that the DLL should end up in the right "lib" directory automagically.
Tomorrow I'll poke around the paket source to see if I can figure out what's going on.
Yes this is not implemented yet. But I consider this a bug.
The issue is that we already have good mapping from /lib/whatever/lib.dll to targetframwork (incl. silverlight and portable) but not the way back. IIRC we only support plain .NET framework versions and silverlight at the moment.
I will look into this later today and hope I can provide you a fixed version for testing.
Is there a workaround for this? I tried this but it didn't seem to work: files ../../bin/4.0/FSharp.Core.Fluent-4.0.* ==> lib/portable-net45+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1
Yes this looks like a valid workaround. But since the whole pack thing is really new I assume you discovered another bug. Is your project open source? Will try to fix that too.
then I get files in both "net45" and "portable-net45+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1". Is there any way to get it to stop putting the files in "net45"?
You would need to change the type to file at the top of your paket.template file. The type project will always add the project output to whatever it thinks is a good idea.
But be careful IIRC the file type will not discover things like the project dependencies to maintain your transitive nuget dependencies in the nuspec
Activity
forki commentedon Apr 23, 2015
Yes this is not implemented yet. But I consider this a bug.
The issue is that we already have good mapping from
/lib/whatever/lib.dllto targetframwork (incl. silverlight and portable) but not the way back. IIRC we only support plain .NET framework versions and silverlight at the moment.I will look into this later today and hope I can provide you a fixed version for testing.
dsyme commentedon Apr 23, 2015
Is there a workaround for this? I tried this but it didn't seem to work:
files ../../bin/4.0/FSharp.Core.Fluent-4.0.* ==> lib/portable-net45+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1forki commentedon Apr 23, 2015
Yes this looks like a valid workaround. But since the whole pack thing is really new I assume you discovered another bug. Is your project open source? Will try to fix that too.
Sorry....
dsyme commentedon Apr 23, 2015
Np. If I do this
then it says
..\..\bin\3.1\FSharp.Core.Fluent-3.1.*not found. If I change to explicit file names:then I get files in both "net45" and "portable-net45+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1". Is there any way to get it to stop putting the files in "net45"?
Thanks!
Don
forki commentedon Apr 23, 2015
You would need to change the type to file at the top of your paket.template file. The type project will always add the project output to whatever it thinks is a good idea.
But be careful IIRC the file type will not discover things like the project dependencies to maintain your transitive nuget dependencies in the nuspec
dsyme commentedon Apr 23, 2015
OK, got it, thanks!
forki commentedon Apr 23, 2015
just tried your project with
worked for me. Strange.
Allow to detect portable profiles from the fsproj file - references #797
forki commentedon Apr 23, 2015
I implemented the infrastructure for this. see 30e589b
Now we need some help from the community to implement ToString for all the known portable profiles in 30e589b#diff-42d3481f9056752a7b3b551f9f92165dR191
I'm looking for volunteers - maybe someone knows a official list and can copy/paste this.
matthid commentedon Apr 23, 2015
I always have this open in a tab: http://embed.plnkr.co/03ck2dCtnJogBKHJ9EjY/preview
Never found another (or official) source for this. I'm a bit too busy right now to start the implementation but I figured to share it at least.
forki commentedon Apr 23, 2015
thanks. this helps a lot.