all groups > visual studio .net ide > march 2004 >
You're in the

visual studio .net ide

group:

using devenv /command with complex commands?


using devenv /command with complex commands? paulgiverny NO[at]SPAM hotmail.com
3/29/2004 3:26:12 AM
visual studio .net ide:
I'm trying to get something to work as follows:

(the next thing is really 1 line, there might be cr/lf's inserted due
to the posting!).

devenv %PROJPATH%\%SOLUTION%.sln"
/command "DTE.ActiveWindow.Object.GetItem("%SOLUTION%").SelectvsUISelectionType.vsUISelectionTypeSelect):DTE.ExecuteCommand
("File.GetLatestVersionDynamicSilent")"

But I don't get it to work. Is there a way to pass a file with
commands to devenv instead of putting the whole thing in the
commandline? I'm also not sure on how to pass the (nested) quotes
correctly and not even if it is possible to pass multiple commands
separated by ':'

The whole idea of this is to have the 'devenv' do a (correct) get
latest of the solution from a (much longer) CMD-script. Note that this
project contains a number of web-solutions with different locations
under C:\inetpub and E:\project, so just doing a get in source-safe
does not work too great without setting working-folders identical to
those set in 'devenv', and it would be nice if I could reuse the
Re: using devenv /command with complex commands? Jonathan Payne
3/29/2004 1:37:07 PM
I spent a while trying to work out how to do an automated get from
SourceSafe using Visual Studio but I gave up in the end and just did a get
of the whole SourceSafe tree.

It certainly should be possible but Microsoft doesn't seem that interested
in supporting it VS 2003 (it seems odd to have a source control system that
makes it so hard to do automated builds).

Other people have suggested that it should be possible to get a project from
source control using the automation interface. I believe Microsoft has a
utility called "BuildIt" or "MSBuild" that does this and there is source
code available but it only works for C#. I didn't research this possibility
that much as I was getting fed up with looking for a solution by that point.
It might be possible to get one of them and extend them to support C++ and
make it all work.

See

http://www.microsoft.com/downloads/details.aspx?FamilyId=B32497B0-77F7-4831-9C55-58BF3962163E&displaylang=en

and

http://www.iunknown.com/000371.html

Sorry I couldn't answer your question (and your solution to this problem
does look interesting) but I hope some of this helps.

Jonathan


[quoted text, click to view]
"DTE.ActiveWindow.Object.GetItem("%SOLUTION%").SelectvsUISelectionType.vsUIS
electionTypeSelect):DTE.ExecuteCommand
[quoted text, click to view]

Re: using devenv /command with complex commands? paulgiverny NO[at]SPAM hotmail.com
3/30/2004 3:57:37 AM
[quoted text, click to view]
yes, tried that too, but does not work too great for web apps, because
devenv creates a virtual dir for them automatically, VSS does not do
that...


[quoted text, click to view]

Looks like Source Safe is not really a member of the VS family, I have
the feeling MS bought VSS and does not know how to integrate it in
DEVENV... It's been ages since they upped the version on VSS (still
6.0 after so many years)

[quoted text, click to view]


Yeah, I'm also looking into Buildit and NANT, but I thought I could
get this to work in 10 minutes, the other solutions need some getting
used to and some set-up time. I wrote my CMD-buildscript in less than
30 minutes, just this last step with source-safe hits me harder than I
expected.

BTW: my example won't work since it does not know the macro's DTE.
Something like /COMMAND "File.GetLatest" works, but it does not always
select the solution, it just gets wherever the project-selector is on.
I'm thinking of calling a macro from the command-line, but for just 2
AddThis Social Bookmark Button