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 }}
Create a function which allows to serialize a FrameworkVersion in nuget syntax #291
It seems a bit crazy to duplicate all this logic. Have you ever considered dragging in NuGet.Core or even cherry-picking these parts from the NuGet codebase?
It seems a bit crazy to duplicate all this logic. Have you even considered
dragging in NuGet.Core or even cherry-picking these parts from the NuGet
codebase?
—
Reply to this email directly or view it on GitHub #291 (comment).
I have to admit there is a lot I do not yet grok of nuget/nuspec (like yhe fact that nuget have a public Api for utility stuff like this..)
Anyhow, the reason for this conversion is to convert from targey fw found in a proj file to the correct subfolder name in a nuget package lib folder. My current (bnaive) implementation at the top seems to be working, but might have issues with edge cases. Not sure if nuget core has any code for this, but none of @khellang s suggestions seems to fit this use case
You should at least check out NuGet.Core's VersionUtility and NetPortableProfileTable (along with the other classes under the NuGet.Core.NETPortable namespace). They should have methods to go back and forth between different framework version representations.
But I can tell you most of the stuff is not really fitting. We already used
in FAKE...
On Oct 23, 2014 8:46 PM, "Kristian Hellang" [email protected]
wrote:
Activity
khellang commentedon Oct 23, 2014
Basically you want this mapping? (from NuGet.Core)
forki commentedon Oct 23, 2014
not exactly. At the moment wer can understand the folder structure in a package see https://github.com/fsprojects/Paket/blob/master/tests/Paket.Tests/InstallModel/ProcessingSpecs.fs#L26
what we want is to convert this info back into nuget syntax in order to patch nuspecs.
khellang commentedon Oct 23, 2014
OK, so basically what this method does? (also from NuGet.Core) https://gist.github.com/khellang/af53ef9991e8e31a6cc5
forki commentedon Oct 23, 2014
not completely sure but I think the inverse. but @Vidarls knows ;-)
khellang commentedon Oct 23, 2014
It seems a bit crazy to duplicate all this logic. Have you ever considered dragging in NuGet.Core or even cherry-picking these parts from the NuGet codebase?
forki commentedon Oct 23, 2014
We don't duplicate the logic ;-)
But yes we considered to reference NuGet.Core. Very carefully.
And we cherry-pick.
2014-10-23 19:36 GMT+02:00 Kristian Hellang [email protected]:
Vidarls commentedon Oct 23, 2014
I have to admit there is a lot I do not yet grok of nuget/nuspec (like yhe fact that nuget have a public Api for utility stuff like this..)
Anyhow, the reason for this conversion is to convert from targey fw found in a proj file to the correct subfolder name in a nuget package lib folder. My current (bnaive) implementation at the top seems to be working, but might have issues with edge cases. Not sure if nuget core has any code for this, but none of @khellang s suggestions seems to fit this use case
khellang commentedon Oct 23, 2014
You should at least check out NuGet.Core's
VersionUtilityandNetPortableProfileTable(along with the other classes under theNuGet.Core.NETPortablenamespace). They should have methods to go back and forth between different framework version representations.forki commentedon Oct 23, 2014
Yes. We did already. And ported some parts.
But I can tell you most of the stuff is not really fitting. We already used
in FAKE...
On Oct 23, 2014 8:46 PM, "Kristian Hellang" [email protected]
wrote:
forki commentedon Oct 23, 2014
I think I misinterpreted @Vidarls' original code and that part is already covered. Need to go back to the beginning.