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 / Extensibility / May 2007

Tip: Looking for answers? Try searching our database.

How to access automation in Visual Csharp Express Edition

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bragadiru - 14 May 2007 12:14 GMT
Hi all,

I'm using this code to launch an instance of VisualStudio 2005 + open a
specific solution :

EnvDTE80.DTE2 myDTE;

object obj = null;

System.Type t = null;

// Get the ProgID for DTE 8.0.

t = System.Type.GetTypeFromProgID("VisualStudio.DTE.8.0", true);

// Create a new instance of the IDE.

obj = System.Activator.CreateInstance(t, true);

// Cast the instance to DTE2 and assign to variable dte.

myDTE = (EnvDTE80.DTE2)obj;

myDTE.Solution.Open(this.solutionPath);

myDTE.MainWindow.Visible = true;

myDTE.UserControl = true;

like in http://msdn2.microsoft.com/en-us/library/ms228758(vs.80).aspx

How can I launch the Visual C# 2005 Express Edition + open a sln ?? Is it
possible ?

Thanks for any advice
Bryan Phillips - 14 May 2007 14:56 GMT
Any reason why you would not use devenv and command line switches?

--
Bryan Phillips
MCT, MCSD, MCDBA, MCSE
Blog:  http://bphillips76.spaces.live.com
Web Site:  http://www.composablesystems.net

> Hi all,
>
[quoted text clipped - 31 lines]
>
> Thanks for any advice
Bragadiru - 15 May 2007 10:19 GMT
I just need to automate the process of opening a specific solution (sln).

The user needs to press a button and my app is reading the full path to the
sln from db + starts Visual Studio / C# Express + opens that sln.

I can do it with Visual Studio, how can I start Visual C# Express ??

I'm open at any suggestions, even Process.Start with command line switches.

Thanks for any advice

> Any reason why you would not use devenv and command line switches?
>
[quoted text clipped - 39 lines]
>>
>> Thanks for any advice
Bryan Phillips - 17 May 2007 01:07 GMT
Try passing the full path of the solution as a command line parameter to
the C# Express executable.

--
Bryan Phillips
MCT, MCSD, MCDBA, MCSE
Blog:  http://bphillips76.spaces.live.com
Web Site:  http://www.composablesystems.net

> I just need to automate the process of opening a specific solution (sln).
>
[quoted text clipped - 50 lines]
> >>
> >> Thanks for any advice

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.