|
-
Mar 4th, 2019, 04:16 AM
#1
Thread Starter
Addicted Member
[RESOLVED] VS 2005 "Class library" or "Console aplication" project?
I have lot of helper/utils functions which I use in several VB.NET projects. I want to build at least one VB.NET module which I will use, develop, maintain, test, debug and it will be same for all of my VB.NET projects.
However, using a class library might not be the best idea because I don't know how to test my code. There is no executable or either testing framework in VS 2005 where I can develop code tests for my utility functions.
Is Console Application a better choice where I can run and create manually code tests for my utility functions?
-
Mar 4th, 2019, 05:11 AM
#2
Re: VS 2005 "Class library" or "Console aplication" project?
Your utility types and members should be in a DLL, so a class library. If you're unable to create proper unit tests, add another project to the same solution to act as a test rig. That would be an EXE of some sort, whether Console or WinForms or whatever.
-
Mar 4th, 2019, 07:01 AM
#3
Thread Starter
Addicted Member
Re: VS 2005 "Class library" or "Console aplication" project?
Hmm, a good answer there but now I don't know how to add my utils project as a reference to my testing project. I don't see "*.vbproj" in Projects tab(Add Reference Dialog).
Do I need to do something to see my utils project listed in add reference?
Or what should I do to add it?
Or just add the compiled dll from the other project?
Last edited by kutlesh; Mar 4th, 2019 at 07:17 AM.
-
Mar 4th, 2019, 07:34 AM
#4
Re: [RESOLVED] VS 2005 "Class library" or "Console aplication" project?
Normally you would just reference the compiled DLL but, if you really want to be able to debug the library project in other solutions (which should not be required if your test rig is doing its job) then you can always add an existing project to a new solution. Your library project will then be included in multiple solutions, even though there's only one copy of the code. The SLN file contains the path of each VBPROJ file in that solution and, when you add a new project each time, those project files are under the solution folder by default, but they can be anaywhere.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|