Getting a System.IO.FileNotFoundException exception when trying to run an application written in F #

Please keep in mind that I am new to the world of .Net and F #. I apologize in advance if my question sounds stupid or I do not use the correct terminology. Having said that, here is my question:

I wrote a simple F # consol application using visual studio 2010. After successfully running the application on my computer, I moved the executable file found in the debug folder to another computer and tried to execute it. This leads to the next execution

Unhandled exception: System.IO.FileNotFoundException: Failed to load file or assembly "FSharp.Core, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a" or one of its dependencies. The system cannot find the specified file. at. $ Program.main @ ()

The tagger machine has .net 4 installed. I checked the GAC and found the following "FSharp.Core, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a"

But the application is looking for FSharp.Core, Version = 4.0.0.0. If I understand correctly, there is no such version of F # 4.0, so why is my application looking for version = 4.0.0.0? Any help is appreciated

thanks

Sudaly

+4
source share
1 answer

Does another machine have an F # Runtime installed on it?

+7
source

Source: https://habr.com/ru/post/1310159/


All Articles