I'd like to incorporate some scriptcs tasks to run as part of an msbuild script. I have two questions about how best to do this:
First, I need the scripts to run on everyone's PC, whether or not they have installed scriptcs via chocolatey. So I want to put the scriptcs binaries into a folder and commit it to source control. Do I need everything from my "AppData\Roaming\scriptcs" folder? And is there an "official" way to get scriptcs binaries?
Second, I want scripts to return a non-zero error code so they can fail the build. At the moment, the only way I see of doing this is to throw an exception as the last line of my script. Is there a more elegant way?
thanks
Mark