When i try to build a visual studio solution it does not want to build so far this is what i have

os.system("devenv.exe filename.sln /Build")

Recommended Answers

All 6 Replies

When i try to build a visual studio solution it does not want to build

Why not?

Maybe you need to give full path names.

I'm with jlm699. Give us an error log or message.

I'm with jlm699. Give us an error log or message.

+1

os.system doesn't emulate a shell environment so that might be the reason why. Try this

from subprocess import PIPE, Popen

build = Popen(("devenv.exe", "filename.sln", "/Build"), shell = True)

Alternatively put in the whole path of devenv.exe and see where that leads you.

i figured it out thanks everyone

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.