Home  |  Index  |  Dotnet4all Snippets  |  Submit resources
About  |  Mail us  
Dotnet4all Logo

  VB.NET 2003 Standard Classes & DLL Creation (Tuesday, December 21, 2004)




Found the following interesting discussion in the Newsgroups:

VB.NET 2003 Standard Classes & DLL Creation
by:Paul Woodward

Can the standard edition of VB.NET 2003 create DLL's? I have purchased the
standard edition while I re-teach myself the VB language but I am struggling
to create references to a class which is in the same Solution but in a
different Project because it complains that the Class is not a DLL.

Any idea's if it is because I have the standard edition or I am doing
something wrong?

Here is the exact error message: -

====
A reference to 'Class Name' could not be added. An assembly must have a
'dll' extension in order to be referenced.
====

Kind Regards,

Paul Woodward


 Reply:
by:Alex Papadimoulis

 Paul,

To create a DLL, select ClassLibrary as the project type on a new project
wizard. You will then need to Add a Reference to your classlibrary from your
existing project.

-- Alex Papadimoulis


 Reply:
by:hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP])

 * "Paul Woodward" <nospam@myinbox.com> scripsit:
> Can the standard edition of VB.NET 2003 create DLL's?

No.

"Workarounds":

Open the ".vbproj" file in notepad and change the 'outputtype' to 'library'.

Alternatively, you can use this add-in for Visual Basic .NET Standard:

<URL:http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=517>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


 Reply:
by:Paul Woodward

 Cheers Guys,

Your help is very much appreciated...

Regards,

Paul Woodward








0 Comments:

Post a Comment

 
Previous Posts
    - String concatenating for Dataset.compute method
    - Any VB/COM experts here??
    - The specified domain either does not exist or coul...
    - Measuring an angle
    - Unable to upgrade VB6 COM Dll to VB.Net
    - TypeConverter.CreateInstance-Method
    - vb.net & word
    - How to let GUI application write output to command...
    - Copy object with .Net?
    - Find the cursor position in a textbox

Archives
    - 10/03/2004 - 10/10/2004
    - 10/10/2004 - 10/17/2004
    - 10/17/2004 - 10/24/2004
    - 10/24/2004 - 10/31/2004
    - 10/31/2004 - 11/07/2004
    - 11/21/2004 - 11/28/2004
    - 11/28/2004 - 12/05/2004
    - 12/05/2004 - 12/12/2004
    - 12/12/2004 - 12/19/2004
    - 12/19/2004 - 12/26/2004
    - 12/26/2004 - 01/02/2005
    - 01/23/2005 - 01/30/2005
    - 01/01/2006 - 01/08/2006
    - 09/24/2006 - 10/01/2006

Disclaimer & Terms of Use  | DotNet4All.Com concept & © 2004 - 2007 by  Zelders²  - Holland