Why does CompileToDynamicAssembly need a 4.6.1 lib? #12299
Unanswered
JustinGrote
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to leverage
CompileToDynamicAssembly
to consume F# in Powershell similar toAdd-Type
. It works great except I have to supply this as part of the FSC options:"-I"; "C:/Program Files/dotnet/sdk/6.0.100-rc.2.21505.57/Microsoft/Microsoft.NET.Build.Extensions/net461/lib"
Otherwise I get this error:
Powershell does provide a System.Runtime.Numerics that is 5.0.0.0, but if I specify that with -I it doesn't seem to resolve it in either Powershell 7.1 (.NET 5) or Powershell 7.2 preview (.NET 6)

It has the same publickeytoken
EDIT: Opened related issue as it works with -r
#12302
Beta Was this translation helpful? Give feedback.
All reactions