forked from saucepleez/taskt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request saucepleez#17 from saucepleez/development-branch
Development branch
- Loading branch information
Showing
14 changed files
with
1,334 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
using System.CodeDom.Compiler; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace taskt.Core | ||
{ | ||
public class CompilerServices | ||
{ | ||
public CompilerResults CompileInput(string codeInput) | ||
{ | ||
|
||
//define file output | ||
string Output = "tasktOnTheFly.exe"; | ||
|
||
//create provider | ||
CodeDomProvider codeProvider = CodeDomProvider.CreateProvider("CSharp"); | ||
|
||
//create compile parameters | ||
CompilerParameters parameters = new CompilerParameters(); | ||
parameters.GenerateExecutable = true; | ||
parameters.OutputAssembly = Output; | ||
|
||
//compile | ||
CompilerResults results = codeProvider.CompileAssemblyFromSource(parameters, codeInput); | ||
return results; | ||
|
||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Script xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | ||
<Commands> | ||
<ScriptAction> | ||
<ScriptCommand xsi:type="CommentCommand" CommandName="CommentCommand" IsCommented="false" SelectionName="Add Code Comment" DefaultPause="250" LineNumber="1" PauseBeforeExeucution="false" v_Comment="This sample demonstrates how to run custom C# code" CommandEnabled="true" /> | ||
</ScriptAction> | ||
<ScriptAction> | ||
<ScriptCommand xsi:type="RunCustomCodeCommand" CommandName="RunCustomCodeCommand" IsCommented="false" SelectionName="Run Custom Code" DefaultPause="250" LineNumber="2" PauseBeforeExeucution="false" CommandEnabled="true" v_Code="// A Hello World! program in C#.
 using System;

 namespace HelloWorld
 {
 class Hello 
 {
 static void Main() 
 {
 Console.WriteLine("Hi! This code was compiled on the fly from taskt!");

 //Keep the console window open, remove this if you do not want the exe to block
 Console.WriteLine("Press any key to exit.");
 Console.ReadKey();
 }
 }
 }" /> | ||
</ScriptAction> | ||
</Commands> | ||
<Variables /> | ||
</Script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
205 changes: 205 additions & 0 deletions
205
taskt/UI/Forms/Supplement Forms/frmCodeBuilder.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.