Search code examples
vb.netimportbasic

VB - How to Import non- .system libraries


I want to use a third-party library so I typed

Option Strict Off
Imports System
Imports NXOpen
Imports System.Diagnostics

but after compiling it says "cant find NXOpen Namespace" and so on

Why is that?

PS: NO, I am NOT using VisualStudio, I make everything in Notepad++ and compile via vbs on commandline


Solution

  • You should add a reference to your NxOpen assembly when building:

    vbc /reference:NxOpen.dll myvbsource.vb
    

    (if your assembly is called NxOpen ...)