471,570 Members | 1,007 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,570 software developers and data experts.

Rebuilding from command line /rebuild

Dyl
Hello,

I am trying to use an executable which when an option is clicked, it
goes out and rebuilds a .sln file.

I read about devenv and /rebuild, but I am still confused.

Would I run something from a command prompt using a process?

Any help would be appreciated, if you could give an example that would
help a lot.

Thanks!

Dec 13 '05 #1
2 1635
It's fairly easy to rebuild a solution file with devenv.exe:

devenv "FullPath\Solution.sln" /rebuild release

However, you need to set the environment variables as found when starting a
new Visual Studio Command Prompt in the ProcessStartInfo. I think it's much
easier to create a .bat file on the fly and start this instead of doing it
all from code.

Michael
"Dyl" <mo****************@yahoo.com> schrieb im Newsbeitrag
news:11**********************@f14g2000cwb.googlegr oups.com...
Hello,

I am trying to use an executable which when an option is clicked, it
goes out and rebuilds a .sln file.

I read about devenv and /rebuild, but I am still confused.

Would I run something from a command prompt using a process?

Any help would be appreciated, if you could give an example that would
help a lot.

Thanks!

Dec 13 '05 #2
Dyl
What do you mean by "set the environment variables as found?"

Dec 14 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Roger | last post: by
8 posts views Thread by Andy Capon | last post: by
reply views Thread by andrei | last post: by
7 posts views Thread by pankaj_wolfhunter | last post: by
1 post views Thread by tshad | last post: by
1 post views Thread by Sam Durai | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.