In C#, how can I use classes from local C# files?
In my chatterbot.cs
file I tried using ChatterBotAPI.ChatterBot
but I got the error
System.InvalidOperationException: The type or namespace name `ChatterBotAPI' could not be found. Are you missing an assembly reference?
I have a directory structure like this:
.
├── RunProject.exe
├── bot-api
│ ├── README.md
│ ├── dotnet
│ │ ├── ChatterBotAPI
│ │ │ ├── AssemblyInfo.cs
│ │ │ ├── ChatterBot.cs
│ │ │ ├── ChatterBotAPI.csproj
│ │ │ ├── ChatterBotFactory.cs
│ │ │ ├── ChatterBotSession.cs
│ │ │ ├── ChatterBotThought.cs
│ │ │ ├── ChatterBotType.cs
│ │ │ ├── Cleverbot.cs
│ │ │ ├── Pandorabots.cs
│ │ │ └── Utils.cs
│ │ ├── ChatterBotAPI.sln
│ │ ├── ChatterBotAPITest
│ │ │ ├── AssemblyInfo.cs
│ │ │ ├── ChatterBotAPITest.csproj
│ │ │ └── Main.cs
│ │ └── ChatterBotAPITestVB
│ │ ├── Application.vb
│ │ ├── AssemblyInfo.vb
│ │ └── ChatterBotAPITestVB.vbproj
└── chatterbot.cs
How do I use classes from the ChatterBotAPI in my chatterbot.cs file?
Note: I am not compiling with the VS IDE. I am using RunProject.exe, which is a C# .NET binary which runs C# scripts on the fly. It loads and runs chatterbot.cs