How to resolve assemblies with PlatformNotSupportedException?
I'm a mathematician that's fallen in love with F#. .NET assemblies, however, cause me grief. I don't understand how they all entangle and resolve. So I'm trying to run an example from Infer.Net and when I try to translate it into a script, I run into the following error when running it into FSI in visual studio 2017:
Binding session to 'C:Usersjdks.nugetpackagessystem.codedom4.4.0libnetstandard2.0System.CodeDom.dll'...
> System.PlatformNotSupportedException: Current platform is not supported by the current compiler choice Auto. Try a different one. ---> System.PlatformNotSupportedException: Operation is not supported on this platform.
at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String fileNames)
at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters options, String fileNames)
at Microsoft.ML.Probabilistic.Compiler.CodeCompiler.CompileWithCodeDom(List`1 filenames, List`1 sources, ICollection`1 referencedAssemblies)
at Microsoft.ML.Probabilistic.Compiler.CodeCompiler.Compile(List`1 filenames, List`1 sources, ICollection`1 referencedAssemblies)
--- End of inner exception stack trace ---
at Microsoft.ML.Probabilistic.Compiler.CodeCompiler.Compile(List`1 filenames, List`1 sources, ICollection`1 referencedAssemblies)
at Microsoft.ML.Probabilistic.Compiler.CodeCompiler.WriteAndCompile(List`1 typeDeclarations)
at Microsoft.ML.Probabilistic.Compiler.ModelCompiler.CompileWithoutParams[T](List`1 itds)
at Microsoft.ML.Probabilistic.Models.InferenceEngine.Compile()
at Microsoft.ML.Probabilistic.Models.InferenceEngine.GetCompiledInferenceAlgorithm(Boolean inferOnlySpecifiedVars, IVariable var)
at Microsoft.ML.Probabilistic.Models.InferenceEngine.Infer[TReturn](IVariable var)
at <StartupCode$FSI_0003>.$FSI_0003.main@() in C:TempScript1.fsx:line 24
Stopped due to error
Here's the script:
#r "netstandard.dll"
#r @"C:Usersjdks.nugetpackagessystem.codedom4.4.0libnetstandard2.0System.CodeDom.dll"
#r @"C:Usersjdks.nugetpackagesmicrosoft.ml.probabilistic.3.1810.501libnetstandard2.0Microsoft.ML.Probabilistic.dll"
#r @"C:Usersjdks.nugetpackagesmicrosoft.ml.probabilistic.compiler.3.1810.501libnetstandard2.0Microsoft.ML.Probabilistic.Compiler.dll"
#r @"C:Usersjdks.nugetpackagesmicrosoft.ml.probabilistic.learners.3.1810.501libnetstandard2.0Microsoft.ML.Probabilistic.Learners.dll"
#r @"C:Usersjdks.nugetpackagesmicrosoft.ml.probabilistic.visualizers.windows.3.1810.501libnet461Microsoft.ML.Probabilistic.Compiler.Visualizers.Windows.dll"
#r @"C:UsersjdksProtoinfer-mastersrcFSharpWrapperbinDebugnetstandard2.0Microsoft.ML.Probabilistic.FSharp.dll"
open System
open Microsoft.ML.Probabilistic
open Microsoft.ML.Probabilistic.Distributions
open Microsoft.ML.Probabilistic.Models
let firstCoin = Variable.Bernoulli(0.5)
let secondCoin = Variable.Bernoulli(0.5)
let bothHeads = firstCoin &&& secondCoin
let engine = new InferenceEngine()
// this is the line that fails
let bothHeadsPost = engine.Infer<Bernoulli>(bothHeads)
printfn "Both heads posterior = %A" bothHeadsPost
bothHeads.ObservedValue <- false
As you can see, I've used the nuget packages for Infer.Net but downloaded the git repo and compiled it to get the FSharpWrapper.dll
. Since I can compile, my guess is that the problem is assembly-related, but haven't the first idea how to troubleshoot. What should I do here?
Relevant Info:
- From the Infer.Net github repo: The core packages target .NET Standard 2.0, making them usable from any project that targets .NET framework version 4.6.1 or .NET Core 2.1
Bonus Question:
What does it mean when it says Binding session to ...
? I can't find any good info in Expert F# 4.0 or online and it looks suspicious.
.net f#
add a comment |
I'm a mathematician that's fallen in love with F#. .NET assemblies, however, cause me grief. I don't understand how they all entangle and resolve. So I'm trying to run an example from Infer.Net and when I try to translate it into a script, I run into the following error when running it into FSI in visual studio 2017:
Binding session to 'C:Usersjdks.nugetpackagessystem.codedom4.4.0libnetstandard2.0System.CodeDom.dll'...
> System.PlatformNotSupportedException: Current platform is not supported by the current compiler choice Auto. Try a different one. ---> System.PlatformNotSupportedException: Operation is not supported on this platform.
at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String fileNames)
at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters options, String fileNames)
at Microsoft.ML.Probabilistic.Compiler.CodeCompiler.CompileWithCodeDom(List`1 filenames, List`1 sources, ICollection`1 referencedAssemblies)
at Microsoft.ML.Probabilistic.Compiler.CodeCompiler.Compile(List`1 filenames, List`1 sources, ICollection`1 referencedAssemblies)
--- End of inner exception stack trace ---
at Microsoft.ML.Probabilistic.Compiler.CodeCompiler.Compile(List`1 filenames, List`1 sources, ICollection`1 referencedAssemblies)
at Microsoft.ML.Probabilistic.Compiler.CodeCompiler.WriteAndCompile(List`1 typeDeclarations)
at Microsoft.ML.Probabilistic.Compiler.ModelCompiler.CompileWithoutParams[T](List`1 itds)
at Microsoft.ML.Probabilistic.Models.InferenceEngine.Compile()
at Microsoft.ML.Probabilistic.Models.InferenceEngine.GetCompiledInferenceAlgorithm(Boolean inferOnlySpecifiedVars, IVariable var)
at Microsoft.ML.Probabilistic.Models.InferenceEngine.Infer[TReturn](IVariable var)
at <StartupCode$FSI_0003>.$FSI_0003.main@() in C:TempScript1.fsx:line 24
Stopped due to error
Here's the script:
#r "netstandard.dll"
#r @"C:Usersjdks.nugetpackagessystem.codedom4.4.0libnetstandard2.0System.CodeDom.dll"
#r @"C:Usersjdks.nugetpackagesmicrosoft.ml.probabilistic.3.1810.501libnetstandard2.0Microsoft.ML.Probabilistic.dll"
#r @"C:Usersjdks.nugetpackagesmicrosoft.ml.probabilistic.compiler.3.1810.501libnetstandard2.0Microsoft.ML.Probabilistic.Compiler.dll"
#r @"C:Usersjdks.nugetpackagesmicrosoft.ml.probabilistic.learners.3.1810.501libnetstandard2.0Microsoft.ML.Probabilistic.Learners.dll"
#r @"C:Usersjdks.nugetpackagesmicrosoft.ml.probabilistic.visualizers.windows.3.1810.501libnet461Microsoft.ML.Probabilistic.Compiler.Visualizers.Windows.dll"
#r @"C:UsersjdksProtoinfer-mastersrcFSharpWrapperbinDebugnetstandard2.0Microsoft.ML.Probabilistic.FSharp.dll"
open System
open Microsoft.ML.Probabilistic
open Microsoft.ML.Probabilistic.Distributions
open Microsoft.ML.Probabilistic.Models
let firstCoin = Variable.Bernoulli(0.5)
let secondCoin = Variable.Bernoulli(0.5)
let bothHeads = firstCoin &&& secondCoin
let engine = new InferenceEngine()
// this is the line that fails
let bothHeadsPost = engine.Infer<Bernoulli>(bothHeads)
printfn "Both heads posterior = %A" bothHeadsPost
bothHeads.ObservedValue <- false
As you can see, I've used the nuget packages for Infer.Net but downloaded the git repo and compiled it to get the FSharpWrapper.dll
. Since I can compile, my guess is that the problem is assembly-related, but haven't the first idea how to troubleshoot. What should I do here?
Relevant Info:
- From the Infer.Net github repo: The core packages target .NET Standard 2.0, making them usable from any project that targets .NET framework version 4.6.1 or .NET Core 2.1
Bonus Question:
What does it mean when it says Binding session to ...
? I can't find any good info in Expert F# 4.0 or online and it looks suspicious.
.net f#
Still looking through. It seems that the issue has something to do with FSI targeting .NET Framework 4.6 and .Net Standard 2.0 targeting .NET Framework 4.6.1. github.com/Microsoft/visualfsharp/issues/3309
– jks612
Nov 12 '18 at 17:12
1
The above link sent me down a path that states that FSI cannot run the CSharp Roslyn service that Infer.Net is tied to. This is sad. I can always use the C# repl, but it's not my preference (I don't know C#). I will close this question if someone confirms what I'm reading.
– jks612
Nov 12 '18 at 17:23
add a comment |
I'm a mathematician that's fallen in love with F#. .NET assemblies, however, cause me grief. I don't understand how they all entangle and resolve. So I'm trying to run an example from Infer.Net and when I try to translate it into a script, I run into the following error when running it into FSI in visual studio 2017:
Binding session to 'C:Usersjdks.nugetpackagessystem.codedom4.4.0libnetstandard2.0System.CodeDom.dll'...
> System.PlatformNotSupportedException: Current platform is not supported by the current compiler choice Auto. Try a different one. ---> System.PlatformNotSupportedException: Operation is not supported on this platform.
at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String fileNames)
at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters options, String fileNames)
at Microsoft.ML.Probabilistic.Compiler.CodeCompiler.CompileWithCodeDom(List`1 filenames, List`1 sources, ICollection`1 referencedAssemblies)
at Microsoft.ML.Probabilistic.Compiler.CodeCompiler.Compile(List`1 filenames, List`1 sources, ICollection`1 referencedAssemblies)
--- End of inner exception stack trace ---
at Microsoft.ML.Probabilistic.Compiler.CodeCompiler.Compile(List`1 filenames, List`1 sources, ICollection`1 referencedAssemblies)
at Microsoft.ML.Probabilistic.Compiler.CodeCompiler.WriteAndCompile(List`1 typeDeclarations)
at Microsoft.ML.Probabilistic.Compiler.ModelCompiler.CompileWithoutParams[T](List`1 itds)
at Microsoft.ML.Probabilistic.Models.InferenceEngine.Compile()
at Microsoft.ML.Probabilistic.Models.InferenceEngine.GetCompiledInferenceAlgorithm(Boolean inferOnlySpecifiedVars, IVariable var)
at Microsoft.ML.Probabilistic.Models.InferenceEngine.Infer[TReturn](IVariable var)
at <StartupCode$FSI_0003>.$FSI_0003.main@() in C:TempScript1.fsx:line 24
Stopped due to error
Here's the script:
#r "netstandard.dll"
#r @"C:Usersjdks.nugetpackagessystem.codedom4.4.0libnetstandard2.0System.CodeDom.dll"
#r @"C:Usersjdks.nugetpackagesmicrosoft.ml.probabilistic.3.1810.501libnetstandard2.0Microsoft.ML.Probabilistic.dll"
#r @"C:Usersjdks.nugetpackagesmicrosoft.ml.probabilistic.compiler.3.1810.501libnetstandard2.0Microsoft.ML.Probabilistic.Compiler.dll"
#r @"C:Usersjdks.nugetpackagesmicrosoft.ml.probabilistic.learners.3.1810.501libnetstandard2.0Microsoft.ML.Probabilistic.Learners.dll"
#r @"C:Usersjdks.nugetpackagesmicrosoft.ml.probabilistic.visualizers.windows.3.1810.501libnet461Microsoft.ML.Probabilistic.Compiler.Visualizers.Windows.dll"
#r @"C:UsersjdksProtoinfer-mastersrcFSharpWrapperbinDebugnetstandard2.0Microsoft.ML.Probabilistic.FSharp.dll"
open System
open Microsoft.ML.Probabilistic
open Microsoft.ML.Probabilistic.Distributions
open Microsoft.ML.Probabilistic.Models
let firstCoin = Variable.Bernoulli(0.5)
let secondCoin = Variable.Bernoulli(0.5)
let bothHeads = firstCoin &&& secondCoin
let engine = new InferenceEngine()
// this is the line that fails
let bothHeadsPost = engine.Infer<Bernoulli>(bothHeads)
printfn "Both heads posterior = %A" bothHeadsPost
bothHeads.ObservedValue <- false
As you can see, I've used the nuget packages for Infer.Net but downloaded the git repo and compiled it to get the FSharpWrapper.dll
. Since I can compile, my guess is that the problem is assembly-related, but haven't the first idea how to troubleshoot. What should I do here?
Relevant Info:
- From the Infer.Net github repo: The core packages target .NET Standard 2.0, making them usable from any project that targets .NET framework version 4.6.1 or .NET Core 2.1
Bonus Question:
What does it mean when it says Binding session to ...
? I can't find any good info in Expert F# 4.0 or online and it looks suspicious.
.net f#
I'm a mathematician that's fallen in love with F#. .NET assemblies, however, cause me grief. I don't understand how they all entangle and resolve. So I'm trying to run an example from Infer.Net and when I try to translate it into a script, I run into the following error when running it into FSI in visual studio 2017:
Binding session to 'C:Usersjdks.nugetpackagessystem.codedom4.4.0libnetstandard2.0System.CodeDom.dll'...
> System.PlatformNotSupportedException: Current platform is not supported by the current compiler choice Auto. Try a different one. ---> System.PlatformNotSupportedException: Operation is not supported on this platform.
at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String fileNames)
at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters options, String fileNames)
at Microsoft.ML.Probabilistic.Compiler.CodeCompiler.CompileWithCodeDom(List`1 filenames, List`1 sources, ICollection`1 referencedAssemblies)
at Microsoft.ML.Probabilistic.Compiler.CodeCompiler.Compile(List`1 filenames, List`1 sources, ICollection`1 referencedAssemblies)
--- End of inner exception stack trace ---
at Microsoft.ML.Probabilistic.Compiler.CodeCompiler.Compile(List`1 filenames, List`1 sources, ICollection`1 referencedAssemblies)
at Microsoft.ML.Probabilistic.Compiler.CodeCompiler.WriteAndCompile(List`1 typeDeclarations)
at Microsoft.ML.Probabilistic.Compiler.ModelCompiler.CompileWithoutParams[T](List`1 itds)
at Microsoft.ML.Probabilistic.Models.InferenceEngine.Compile()
at Microsoft.ML.Probabilistic.Models.InferenceEngine.GetCompiledInferenceAlgorithm(Boolean inferOnlySpecifiedVars, IVariable var)
at Microsoft.ML.Probabilistic.Models.InferenceEngine.Infer[TReturn](IVariable var)
at <StartupCode$FSI_0003>.$FSI_0003.main@() in C:TempScript1.fsx:line 24
Stopped due to error
Here's the script:
#r "netstandard.dll"
#r @"C:Usersjdks.nugetpackagessystem.codedom4.4.0libnetstandard2.0System.CodeDom.dll"
#r @"C:Usersjdks.nugetpackagesmicrosoft.ml.probabilistic.3.1810.501libnetstandard2.0Microsoft.ML.Probabilistic.dll"
#r @"C:Usersjdks.nugetpackagesmicrosoft.ml.probabilistic.compiler.3.1810.501libnetstandard2.0Microsoft.ML.Probabilistic.Compiler.dll"
#r @"C:Usersjdks.nugetpackagesmicrosoft.ml.probabilistic.learners.3.1810.501libnetstandard2.0Microsoft.ML.Probabilistic.Learners.dll"
#r @"C:Usersjdks.nugetpackagesmicrosoft.ml.probabilistic.visualizers.windows.3.1810.501libnet461Microsoft.ML.Probabilistic.Compiler.Visualizers.Windows.dll"
#r @"C:UsersjdksProtoinfer-mastersrcFSharpWrapperbinDebugnetstandard2.0Microsoft.ML.Probabilistic.FSharp.dll"
open System
open Microsoft.ML.Probabilistic
open Microsoft.ML.Probabilistic.Distributions
open Microsoft.ML.Probabilistic.Models
let firstCoin = Variable.Bernoulli(0.5)
let secondCoin = Variable.Bernoulli(0.5)
let bothHeads = firstCoin &&& secondCoin
let engine = new InferenceEngine()
// this is the line that fails
let bothHeadsPost = engine.Infer<Bernoulli>(bothHeads)
printfn "Both heads posterior = %A" bothHeadsPost
bothHeads.ObservedValue <- false
As you can see, I've used the nuget packages for Infer.Net but downloaded the git repo and compiled it to get the FSharpWrapper.dll
. Since I can compile, my guess is that the problem is assembly-related, but haven't the first idea how to troubleshoot. What should I do here?
Relevant Info:
- From the Infer.Net github repo: The core packages target .NET Standard 2.0, making them usable from any project that targets .NET framework version 4.6.1 or .NET Core 2.1
Bonus Question:
What does it mean when it says Binding session to ...
? I can't find any good info in Expert F# 4.0 or online and it looks suspicious.
.net f#
.net f#
asked Nov 12 '18 at 16:48
jks612
574317
574317
Still looking through. It seems that the issue has something to do with FSI targeting .NET Framework 4.6 and .Net Standard 2.0 targeting .NET Framework 4.6.1. github.com/Microsoft/visualfsharp/issues/3309
– jks612
Nov 12 '18 at 17:12
1
The above link sent me down a path that states that FSI cannot run the CSharp Roslyn service that Infer.Net is tied to. This is sad. I can always use the C# repl, but it's not my preference (I don't know C#). I will close this question if someone confirms what I'm reading.
– jks612
Nov 12 '18 at 17:23
add a comment |
Still looking through. It seems that the issue has something to do with FSI targeting .NET Framework 4.6 and .Net Standard 2.0 targeting .NET Framework 4.6.1. github.com/Microsoft/visualfsharp/issues/3309
– jks612
Nov 12 '18 at 17:12
1
The above link sent me down a path that states that FSI cannot run the CSharp Roslyn service that Infer.Net is tied to. This is sad. I can always use the C# repl, but it's not my preference (I don't know C#). I will close this question if someone confirms what I'm reading.
– jks612
Nov 12 '18 at 17:23
Still looking through. It seems that the issue has something to do with FSI targeting .NET Framework 4.6 and .Net Standard 2.0 targeting .NET Framework 4.6.1. github.com/Microsoft/visualfsharp/issues/3309
– jks612
Nov 12 '18 at 17:12
Still looking through. It seems that the issue has something to do with FSI targeting .NET Framework 4.6 and .Net Standard 2.0 targeting .NET Framework 4.6.1. github.com/Microsoft/visualfsharp/issues/3309
– jks612
Nov 12 '18 at 17:12
1
1
The above link sent me down a path that states that FSI cannot run the CSharp Roslyn service that Infer.Net is tied to. This is sad. I can always use the C# repl, but it's not my preference (I don't know C#). I will close this question if someone confirms what I'm reading.
– jks612
Nov 12 '18 at 17:23
The above link sent me down a path that states that FSI cannot run the CSharp Roslyn service that Infer.Net is tied to. This is sad. I can always use the C# repl, but it's not my preference (I don't know C#). I will close this question if someone confirms what I'm reading.
– jks612
Nov 12 '18 at 17:23
add a comment |
1 Answer
1
active
oldest
votes
There are two reasons for this:
- The statement in the repository about this package comes with a big asterisk. .NET Standard 2.0 and .NET Framework 4.7 or lower are fraught with issues. For all intents and purposes, this package should only be used with .NET Core or .NET Framework 4.7.1+; otherwise, you can expect to see more problems along this line. The package authors should likely multitarget to
netstandard2.0
andnet461
, which would resolve that class of issues. - F# Interactive does not properly support .NET Standard components yet. This is something we're working on, but it's a difficult problem to solve and I don't expect proper support to stabilize for at least a few months.
I recommend using this package with a .NET Core console app that you run (either manually, or with the dotnet-watch-run
tool).
Thank you Philip. I'm a big fan of your work.
– jks612
Nov 13 '18 at 6:35
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53266631%2fhow-to-resolve-assemblies-with-platformnotsupportedexception%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
There are two reasons for this:
- The statement in the repository about this package comes with a big asterisk. .NET Standard 2.0 and .NET Framework 4.7 or lower are fraught with issues. For all intents and purposes, this package should only be used with .NET Core or .NET Framework 4.7.1+; otherwise, you can expect to see more problems along this line. The package authors should likely multitarget to
netstandard2.0
andnet461
, which would resolve that class of issues. - F# Interactive does not properly support .NET Standard components yet. This is something we're working on, but it's a difficult problem to solve and I don't expect proper support to stabilize for at least a few months.
I recommend using this package with a .NET Core console app that you run (either manually, or with the dotnet-watch-run
tool).
Thank you Philip. I'm a big fan of your work.
– jks612
Nov 13 '18 at 6:35
add a comment |
There are two reasons for this:
- The statement in the repository about this package comes with a big asterisk. .NET Standard 2.0 and .NET Framework 4.7 or lower are fraught with issues. For all intents and purposes, this package should only be used with .NET Core or .NET Framework 4.7.1+; otherwise, you can expect to see more problems along this line. The package authors should likely multitarget to
netstandard2.0
andnet461
, which would resolve that class of issues. - F# Interactive does not properly support .NET Standard components yet. This is something we're working on, but it's a difficult problem to solve and I don't expect proper support to stabilize for at least a few months.
I recommend using this package with a .NET Core console app that you run (either manually, or with the dotnet-watch-run
tool).
Thank you Philip. I'm a big fan of your work.
– jks612
Nov 13 '18 at 6:35
add a comment |
There are two reasons for this:
- The statement in the repository about this package comes with a big asterisk. .NET Standard 2.0 and .NET Framework 4.7 or lower are fraught with issues. For all intents and purposes, this package should only be used with .NET Core or .NET Framework 4.7.1+; otherwise, you can expect to see more problems along this line. The package authors should likely multitarget to
netstandard2.0
andnet461
, which would resolve that class of issues. - F# Interactive does not properly support .NET Standard components yet. This is something we're working on, but it's a difficult problem to solve and I don't expect proper support to stabilize for at least a few months.
I recommend using this package with a .NET Core console app that you run (either manually, or with the dotnet-watch-run
tool).
There are two reasons for this:
- The statement in the repository about this package comes with a big asterisk. .NET Standard 2.0 and .NET Framework 4.7 or lower are fraught with issues. For all intents and purposes, this package should only be used with .NET Core or .NET Framework 4.7.1+; otherwise, you can expect to see more problems along this line. The package authors should likely multitarget to
netstandard2.0
andnet461
, which would resolve that class of issues. - F# Interactive does not properly support .NET Standard components yet. This is something we're working on, but it's a difficult problem to solve and I don't expect proper support to stabilize for at least a few months.
I recommend using this package with a .NET Core console app that you run (either manually, or with the dotnet-watch-run
tool).
answered Nov 12 '18 at 21:26
Phillip Carter
570316
570316
Thank you Philip. I'm a big fan of your work.
– jks612
Nov 13 '18 at 6:35
add a comment |
Thank you Philip. I'm a big fan of your work.
– jks612
Nov 13 '18 at 6:35
Thank you Philip. I'm a big fan of your work.
– jks612
Nov 13 '18 at 6:35
Thank you Philip. I'm a big fan of your work.
– jks612
Nov 13 '18 at 6:35
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53266631%2fhow-to-resolve-assemblies-with-platformnotsupportedexception%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Still looking through. It seems that the issue has something to do with FSI targeting .NET Framework 4.6 and .Net Standard 2.0 targeting .NET Framework 4.6.1. github.com/Microsoft/visualfsharp/issues/3309
– jks612
Nov 12 '18 at 17:12
1
The above link sent me down a path that states that FSI cannot run the CSharp Roslyn service that Infer.Net is tied to. This is sad. I can always use the C# repl, but it's not my preference (I don't know C#). I will close this question if someone confirms what I'm reading.
– jks612
Nov 12 '18 at 17:23