Skip to content

Commit

Permalink
Add CIL proxy source
Browse files Browse the repository at this point in the history
  • Loading branch information
devlead committed Nov 12, 2021
1 parent 72826c8 commit ce96d34
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
30 changes: 30 additions & 0 deletions asset/Cake.Bakery.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using System;
using System.Diagnostics;
using System.IO;

namespace Cake.Bakery
{
class Program
{
static void Main(string[] args)
{
var path = string.Concat(
"\"",
Path.ChangeExtension(typeof(Program).Assembly.Location, ".dll"),
"\"",
" ",
Environment.CommandLine
);

var info = new ProcessStartInfo("dotnet")
{
Arguments = path,
UseShellExecute = false
};

var p = Process.Start(info);
p.WaitForExit();
Environment.Exit(p.ExitCode);
}
}
}
9 changes: 9 additions & 0 deletions asset/Cake.Bakery.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Cake.Baker CIL

Proxy .NET CIL exe for `dotnet Cake.Bakery.dll`

## Building

```powershell
csc.exe /target:exe .\Cake.Bakery.cs
```

0 comments on commit ce96d34

Please sign in to comment.