I am trying to use FSharp PowerPack for the ArgParser library, but I run into some serious problems on my machine, where it seems that the wrong version of FSharp.Core.dll from the GAC is loading, which then causes the ArgParser error load. Ideally, I would encounter a fix problem (since it works on my colleagues computers), but I tried all kinds of combinations of deleting and reinstalling FSharp binary files from the system to no avail.
As I donβt really like the fact that I canβt just remove the DLLs that are known to be correct in the executable due to the GAC, if there is any way to just disable the search in the GAC, I will happily do it.
I know this solution will be a bit hacky, but for now I just need to get it to load and work, and I will try something.
EDIT
Additional Information. Here is the load output for the project.
'PowerPackTest.exe' (Managed (v4.0.30319)): Loaded 'C:\WINNT\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'PowerPackTest.exe' (Managed (v4.0.30319)): Loaded 'C:\Projects\PowerPackTest\PowerPackTest\bin\Debug\PowerPackTest.exe', Symbols loaded. 'PowerPackTest.exe' (Managed (v4.0.30319)): Loaded 'C:\WINNT\Microsoft.Net\assembly\GAC_MSIL\FSharp.Core\v4.0_4.0.0.0__b03f5f7f11d50a3a\FSharp.Core.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'PowerPackTest.exe' (Managed (v4.0.30319)): Loaded 'C:\WINNT\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'PowerPackTest.exe' (Managed (v4.0.30319)): Loaded 'C:\WINNT\assembly\GAC_MSIL\FSharp.PowerPack\2.0.0.0__a19089b1c74d0809\FSharp.PowerPack.dll' 'PowerPackTest.exe' (Managed (v4.0.30319)): Loaded 'C:\WINNT\assembly\GAC_MSIL\FSharp.Core\2.0.0.0__b03f5f7f11d50a3a\FSharp.Core.dll'
As you can see, it first loads FSharp.Core v4, but then loads v2 on top of it at the last second. This does not happen on my machines.
source share