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?