Important alert: (current site time 7/15/2013 8:24:38 AM EDT)
 

winzip icon

Create libraries (.dll) with VB.NET - Standard Edition

Email
Submitted on: 9/2/2002 5:14:13 AM
By: Thomas Erdösi 
Level: Beginner
User Rating: By 15 Users
Compatibility: VB.NET
Views: 44442
(About the author)
 
     This code allows to create and compile all kinds of libraries with Visual Basic .NET - Standard Edition (usually this functionality is only available in Visual Studio!). Instructions on how to add the macro to your IDE are included in the .zip-archive. Suggestions and comments welcome!
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
9/2/2002 9:06:39 AMThe New iSoftware Company!

I need help installing this.
(If this comment was disrespectful, please report it.)

 
9/2/2002 10:14:54 AMThe New iSoftware Company!

It works! It works!!!!!!! Thank you.
(If this comment was disrespectful, please report it.)

 
9/15/2002 6:58:41 PM

Is this code snippet okay with Microsoft?
(If this comment was disrespectful, please report it.)

 
9/15/2002 7:00:00 PM

What I mean is...is it okay to circumvent VB .NET Standard in this manner...build .DLL's with it when it does not come with this feature already enabled?

Thanks.
(If this comment was disrespectful, please report it.)

 
9/17/2002 2:49:07 AMThomas Erdösi

The macro does not use any undocumented features. All the properties that are accessed are described in the documentation - so I don't think this could be illegal. Creating libraries is a feature of the .NET-compiler that is also available in the free downloadable .NET-SDK! In my opinion the difference between VB and VS is something else: Visual Studio includes templates for different kinds of libraries and Visual Basic doesn't. This difference won't be affected by my code.
(If this comment was disrespectful, please report it.)

 
10/21/2002 5:55:30 PMBrandon Robinson

Godly code, Thank You!!!!
(If this comment was disrespectful, please report it.)

 
3/23/2003 9:06:02 PMRuss Green

I'm having trouble with step 9 of the installation. The is no 'Macros' in the left hand listview....

Russ
(If this comment was disrespectful, please report it.)

 
3/23/2003 9:08:39 PMRuss Green

Ignore that I worked it out
(If this comment was disrespectful, please report it.)

 
8/15/2003 10:30:11 PMAndy H.

This is great! Before, i would open up the project file in notepad and change the OutputType from "Exe" to "Library". But this is much better! Thanks!
(If this comment was disrespectful, please report it.)

 
9/4/2003 12:01:17 AMDaniel K Murphy

One word: SWEET!

This is really nice work :-)

5 globes
(If this comment was disrespectful, please report it.)

 
11/20/2003 5:36:30 AMGiles Papworth

i run the macros but nothing happens, it says do i wish to change the type of the project, i click yes and then nothing!
(If this comment was disrespectful, please report it.)

 
12/3/2003 12:20:45 PME.S. Forbes

Yeah, it works, but I don't really see the point... You can do this very same thing from the IDE itself by right-clicking on the project in 'Solution Explorer,' selecting Properties, then changing the project type in the combo box... Less work than installing the macro.
(If this comment was disrespectful, please report it.)

 
5/26/2004 4:30:24 AMJohn A Priestley

Well done. 5 from me.
And for those who might think it's illegal. It's not. The Visual Basic compiler does allow you to create DLLs. Just need to know the options when you compile your code from the DOS prompt. Its only the editor that has the option missing.
You can actually create programs using Notepad if you liked.
(If this comment was disrespectful, please report it.)

 
5/31/2004 4:23:24 AMPaul Woodward

Great solution and all appears to be totally Legal as well. I can now get on with learning VB using the standard edition to keep costs down and eventually I can upgrade to Visual Studio.
(If this comment was disrespectful, please report it.)

 
3/25/2005 6:58:58 AM

Sweet! Just what I was looking for!
(If this comment was disrespectful, please report it.)

 
9/28/2005 5:09:26 PMRadz

Managed to create dll file, but I can't seem to access its members saying they were not declared. Thanks.
(If this comment was disrespectful, please report it.)

 
10/1/2005 1:30:36 AMRadz

Ignored my posting on 9/28/2005. I managed to solve the problem.It's a great solution.
(If this comment was disrespectful, please report it.)

 
1/30/2006 4:45:31 AMSticky_Soldier

It's easier to open the .vbproj and replace "WinExe" with "Library".

Still, good code.
(If this comment was disrespectful, please report it.)

 
4/1/2006 10:30:16 AMMichael

Thanks so much for the superb code and clear instructions. I've just purchased VB.Net Standard Edition to learn to program with VB.Net and was upset to find I couldn't create libraries but your code changes all that. Thanks again.
(If this comment was disrespectful, please report it.)

 
1/12/2009 12:10:57 AMKenny28

confused on step 9 too
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.