Suppose I add a custom target to a csproj file. Is there a way to run that target from visual studio? I don\'t want it make it a prebuild or postbuild step, I just want to
You don't have to code with the Exec, although that is one way to do it. The easier way is to do the following:
Change the DefaultTargets="Build" attribute to a custom Target you create, say "All" like so:
DefaultTargets="All"
Then in your custom "All" target, you can use the DependsOnTargets attribute, like the following:
"
"
This will then build, and out put zip files in your custom "All" target.