[MonoDevelop] MonoDevelop Assembly error (CS0246)

Michael Hutchinson m.j.hutchinson at gmail.com
Wed Apr 1 20:47:42 EDT 2009


On Mon, Mar 30, 2009 at 10:33 AM, rlejsza <rlejsza at gsd-software.com> wrote:
> Hi, I’ve got following problem with compilation my application under mono.
>
> Whole application is compiling fine in VS 2008. I’m copying sources to linux
> environment and opening project with MonoDevelop application.
> When I hit compile, I’ve got following error: The type or namespace name
> `CaptchaDLL' could not be found. Are you missing a using directive or an
> assembly reference?(CS0246)
> But, I’ve got declaring to use this library on the top of this page:
> using CaptchaDLL;
> the file CaptchaDLL is copied in `bin` folder, and in `web.config` I’ve got:
> <add assembly="*"/>.
> Does anyone know what could be a problem, and which reference I’m missing?

Add a reference to the dll by right-clicking on the projects
"References" folder. This is the normal way to add references.

The "using" isn't actually a reference, it's just a convenient way to
avoid having to use full namespaces in your code. Namespaces don't
necessarily correspond to assemblies.

The <add assembly...> is only used by ASP.NET, though when you add
references to your project, MD updates the web.config as necessary...

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Monodevelop-list mailing list