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 / April 2004

Tip: Looking for answers? Try searching our database.

Usage DTE object in WSH

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vladimir A. Pigin - 21 Apr 2004 17:18 GMT
hi all.
please, sorry my little skills and stupid question (and my eanglish too).
i use code like that -

var dte = WScript.CreateObject("VisualStudio.DTE.7.1");
WScript.Echo("open solution: " + SomeFile);
dte.Solution.open(SomeFile);
var ce = dte.Solution.Projects.Item(1).CodeModel.CodeElements;
WScript.Echo("CodeModel.CodeElements - " + ce.Count);

when i debug this code in s-b-s debugger  -  all ok, i see

open solution: c:\Test.sln
CodeModel.CodeElements - 23

no questions. but when i start script outside of debugger, i see

open solution: c:\Test.sln
CodeModel.CodeElements - 0

why????
can i use VisualStudio.DTE.7.1 in WSH?
Vladimir A. Pigin - 22 Apr 2004 10:10 GMT
ok, let me to explain a problem.
It is necessary for me to change value of some constants in a cpp-file and
rebuild the project.
It only one step from many which carries out jscript at creation of the
distribution kit.
Yes, i can make it, using Scripting.FileSystemObject and devenv
command-line.
But I would like to use  VS Automation Model. It is real in WSH?.
Somebody can help me?
Or prompt newsgroup, in which I can address this question?

> hi all.
> please, sorry my little skills and stupid question (and my eanglish too).
[quoted text clipped - 18 lines]
> why????
> can i use VisualStudio.DTE.7.1 in WSH?

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.