Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / March 2006

Tip: Looking for answers? Try searching our database.

How to start a new Solution?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pete - 10 Mar 2006 00:58 GMT
How do I start a new Solution in VS 2005, then (after it is created)
add a Project to it?  I have been unable to spot how to do it in the
book that came with VS 2005.  Thanks in advance for your help.

- Pete
Carlos J. Quintero [VB MVP] - 10 Mar 2006 09:24 GMT
Hi Pete,

I suppose that you mean programatically in a macro or add-in, so:

- To create a solution you use EnvDTE.Solution.Create(...)
- To add a project you use EnvDTE.Solution.AddFromTemplate(...)

As always, if would be helpful to know what book are you referring to, what
code are you using and which specific problem are you experiencing...

Signature

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com

> How do I start a new Solution in VS 2005, then (after it is created)
> add a Project to it?  I have been unable to spot how to do it in the
> book that came with VS 2005.  Thanks in advance for your help.
>
> - Pete
Pete - 10 Mar 2006 11:50 GMT
Thanks for your response, which I will keep in mind.  My current
problem is just doing it manually.  The book is the 280-page "Working
with Microsoft Visual Studio 2005"  which came in the VS 2005 box.  I
used the VS to write VB Module code that correctly reads from my
databases and displays, but I have been unable to achieve all of Figure
2-1 in the book showing a tree view in Solution Explorer.  My SolEx
tree diagram has a blank Solution Name on the header bar and a top line
that is my Project name line in bold-face.  Without the non-bold-face
Solution root line as shown in the book diagram, I can't click on it to
get the Solution Properties.  Am I required to have a Form, maybe?
Carlos J. Quintero [VB MVP] - 10 Mar 2006 12:07 GMT
OK, that book is intended mainly to extend VS with add-ins, macros, etc.
About your problem:

- Go to the "Tools", "Options" menu, "Project and Solutions" section, and
ensure that the "Always show solution" checkbox is checked (by default it is
not).

- To create a blank solution, you use the "File", "New Project" menu, "Other
Project Types", "Visual Studio Solutions" section, "Blank Solution" item.
The blank solution should appear in the Solution Explorer.

-  To add a project to it, right-click on it, select "Add", "New Project".

Also, since projects always require a solution (although maybe hidden), you
can create a solution and project at the same time using the "File", "New
Project" menu, "Visual Basic", "Windows" section, any item.

Once you have a solution and a project, you can show their respective
properties using their "Properties" context menu entry.

Signature

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com

> Thanks for your response, which I will keep in mind.  My current
> problem is just doing it manually.  The book is the 280-page "Working
[quoted text clipped - 6 lines]
> Solution root line as shown in the book diagram, I can't click on it to
> get the Solution Properties.  Am I required to have a Form, maybe?
Pete - 10 Mar 2006 15:14 GMT
That did it!  Thanks much, Carlos.

- Pete

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.