What do you mean by the "Release" command?
Regular build (which is also triggered by F5) does, in fact, just run MSBuild, it's just that the default Python project template doesn't have the target that is run. But if you add it as described
, you can do whatever you want inside it. In particular, if you want your target to run some Python code, you can use the
task, which is also documented in the comments in Microsoft.PythonTools.targets. If you want to run a script file that's in your project,
will do the trick (script path in
is then relative to project home).