Skip to content
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.PowerShell mismatched FSharp.Core #1

Closed
ctaggart opened this issue Jun 7, 2015 · 5 comments
Closed

Paket.PowerShell mismatched FSharp.Core #1

ctaggart opened this issue Jun 7, 2015 · 5 comments

Comments

@ctaggart
Copy link
Owner

ctaggart commented Jun 7, 2015

These is a place to jot down some notes from a problem found with this pull request:
fsprojects#839

@ctaggart
Copy link
Owner Author

ctaggart commented Jun 7, 2015

As I understand, binding redirects for PowerShell have to be done at the global level, so that is not an option.
image

paket.exe is ilmerging in FSharp.Core 3.1 (3.1.2.1), but UnionArgParser (0.8.7) being used reference FSharp.Core 3.0:
image

The next step is to see if there is a UnionArgParser that is buit with FSharp.Core 3.1.

@ctaggart
Copy link
Owner Author

ctaggart commented Jun 8, 2015

Sadly, making UnionArgParser.dll reference FSharp.Core 4.3.1.0 did not resolve the issue. The troubleshooting scenarios I can think of are:

  1. See if it is possible to reproduce the problem without PowerShell. Simply have an Console App use paket.exe as a library.
  2. Don't use paket.exe and use the individual libraries instead. Not what I was hoping for a final distribution, but good for troubleshooting.

@ctaggart
Copy link
Owner Author

I was able to reproduce the problem with an console app.

image

image

Reading up on the notes on FSharp.Core.dll, is seams that --noframework option that I used would make it so that FSharp.Core.dll wasn't referenced.

http://fsharp.github.io/FSharp.Compiler.Service/corelib.html

image

but sadly it is

image

@ctaggart
Copy link
Owner Author

It appear that coding Paket.PowerShell.dll in C# may work, but I'd much prefer to stick to F#. The simplest solution would be to simply merge it too by adding it to this list:

https://github.com/fsprojects/Paket/blob/master/build.fsx#L149-L164

As long as nothing breaks when running on Linux/Mac, that should be fine.

@ctaggart
Copy link
Owner Author

The solution I went with was to merge.
https://github.com/fsprojects/Paket/blob/master/build.fsx#L183-L198
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant