Namespace or "NagLibrary" module not found, but link added successfully (?)

I have a third-party .dll that I have successfully added as a reference in both the VS 2010 C # project and the F # VS 2010 project. I can view the contents in the object browser in both cases, but the F # version will not allow me " open the "library. It works fine in a C # project (with the "using" directive), and I can write a program that uses the contents of this .dll. I had no problems with other DLL files in F # / VS 2010 / .NET 4.0 on Windows 7.

Any ideas as to why this could happen? Or how could I debug this further?

+3
source share
2 answers

, csc.exe fsc.exe ( VS, " " ), , (, -r:Path\Library.dll).

,

open NagLibrary

F # ,

using NagLibrary;

# ?

+1

, script, "\"

#r "C:\homeware\\blp\\api\\APIv3\\DotnetAPI\\v3.4.5.4\\lib\\Bloomberglp.Blpapi.dll"

open Bloomberglp.Blpapi
0

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


All Articles