Note that there are some explanatory texts on larger screens.

plurals
  1. POBuild script with C#
    text
    copied!<p><strong>For insight</strong> into the below, read: <a href="http://martinfowler.com/articles/rake.html" rel="nofollow">http://martinfowler.com/articles/rake.html</a></p> <p>I've been using Rake (with Albacore) recently, and like it alot. Mostly the strength of having the Ruby language right at hand when I need it.</p> <p>I must admit I am alot more at home with C# - and that lead me to thinking if there was an equivalent to Rake in the .NET world.</p> <p>What I am looking for is a way to write build scripts in C#, or maybe a DSL, having the same dependency programming model, where I can also use C#. </p> <p>Maybe I'm way off base asking this question. But if it's possible to do with Ruby (and an internal DSL), then I can't right off the bat say why the same wouldn't be possible for C#. And I certainly don't understand why it hasn't already been done :-)</p> <p>Anyone have some perspectives on the issue?</p> <p><strong>What we already know:</strong></p> <ul> <li>C# needs to be compiled to run, so we would need to create a seperate build-script, that is parsed, and compiled at run-time by an executable.</li> </ul> <p>Thanks in advance!</p> <p><strong>Solution</strong></p> <p>Use "Cake" <a href="http://cakebuild.net/" rel="nofollow">http://cakebuild.net/</a> -- with Roslyn compiler what I wanted (years ago) is now possible. Thanks Microsoft. And thanks to the people who wrote Cake.</p> <p>An alternative is to use Powershell. The library is called <a href="https://github.com/psake/psake" rel="nofollow">Psake</a> (saké)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload