|
|
@ -1,4 +1,4 @@ |
|
|
using System; |
|
|
using System; |
|
|
using System.IO; |
|
|
using System.IO; |
|
|
using System.Text; |
|
|
using System.Text; |
|
|
using System.Threading.Tasks; |
|
|
using System.Threading.Tasks; |
|
|
@ -34,7 +34,7 @@ namespace Opulence |
|
|
var code = File.ReadAllText(scriptFilePath); |
|
|
var code = File.ReadAllText(scriptFilePath); |
|
|
var script = CSharpScript.Create<object>( |
|
|
var script = CSharpScript.Create<object>( |
|
|
code, |
|
|
code, |
|
|
options: ScriptOptions.Default.WithImports(new []{ "System", "System.Collections.Generic", }), |
|
|
options: ScriptOptions.Default.WithImports(new[] { "System", "System.Collections.Generic", }), |
|
|
globalsType: typeof(PipelineHolder), |
|
|
globalsType: typeof(PipelineHolder), |
|
|
assemblyLoader: null); |
|
|
assemblyLoader: null); |
|
|
script = script.ContinueWith<object>(@"return await Pipeline.ExecuteAsync(__Pipeline);", options: ScriptOptions.Default); |
|
|
script = script.ContinueWith<object>(@"return await Pipeline.ExecuteAsync(__Pipeline);", options: ScriptOptions.Default); |
|
|
@ -58,10 +58,10 @@ namespace Opulence |
|
|
output.WriteDebugLine($"Done compiling {Path.GetFileName(scriptFilePath)}'."); |
|
|
output.WriteDebugLine($"Done compiling {Path.GetFileName(scriptFilePath)}'."); |
|
|
|
|
|
|
|
|
var pipeline = new CustomizationPipeline( |
|
|
var pipeline = new CustomizationPipeline( |
|
|
output, |
|
|
output, |
|
|
rootDirectory: Path.GetDirectoryName(scriptFilePath)!, |
|
|
rootDirectory: Path.GetDirectoryName(scriptFilePath)!, |
|
|
name: Names.NormalizeToDns(Path.GetFileNameWithoutExtension(projectFile.Name)), |
|
|
name: Names.NormalizeToDns(Path.GetFileNameWithoutExtension(projectFile.Name)), |
|
|
solution: null, |
|
|
solution: null, |
|
|
projectFile); |
|
|
projectFile); |
|
|
var holder = new PipelineHolder(pipeline); |
|
|
var holder = new PipelineHolder(pipeline); |
|
|
|
|
|
|
|
|
@ -115,7 +115,7 @@ namespace Opulence |
|
|
var code = File.ReadAllText(scriptFilePath); |
|
|
var code = File.ReadAllText(scriptFilePath); |
|
|
var script = CSharpScript.Create<object>( |
|
|
var script = CSharpScript.Create<object>( |
|
|
code, |
|
|
code, |
|
|
options: ScriptOptions.Default.WithImports(new []{ "System", "System.Collections.Generic", }), |
|
|
options: ScriptOptions.Default.WithImports(new[] { "System", "System.Collections.Generic", }), |
|
|
globalsType: typeof(PipelineHolder), |
|
|
globalsType: typeof(PipelineHolder), |
|
|
assemblyLoader: null); |
|
|
assemblyLoader: null); |
|
|
script = script.ContinueWith<object>(@"return await Pipeline.ExecuteAsync(__Pipeline);", options: ScriptOptions.Default); |
|
|
script = script.ContinueWith<object>(@"return await Pipeline.ExecuteAsync(__Pipeline);", options: ScriptOptions.Default); |
|
|
@ -139,10 +139,10 @@ namespace Opulence |
|
|
output.WriteDebugLine($"Done compiling {Path.GetFileName(scriptFilePath)}'."); |
|
|
output.WriteDebugLine($"Done compiling {Path.GetFileName(scriptFilePath)}'."); |
|
|
|
|
|
|
|
|
var pipeline = new CustomizationPipeline( |
|
|
var pipeline = new CustomizationPipeline( |
|
|
output, |
|
|
output, |
|
|
rootDirectory: Path.GetDirectoryName(scriptFilePath)!, |
|
|
rootDirectory: Path.GetDirectoryName(scriptFilePath)!, |
|
|
name: Names.NormalizeToDns(Path.GetFileNameWithoutExtension(solutionFile.Name)), |
|
|
name: Names.NormalizeToDns(Path.GetFileNameWithoutExtension(solutionFile.Name)), |
|
|
solution, |
|
|
solution, |
|
|
projectFile: null); |
|
|
projectFile: null); |
|
|
var holder = new PipelineHolder(pipeline); |
|
|
var holder = new PipelineHolder(pipeline); |
|
|
|
|
|
|
|
|
@ -163,4 +163,4 @@ namespace Opulence |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|