1 parent 5e2e14f commit 2913498Copy full SHA for 2913498
1 file changed
src/Scripty.Core/ScriptEngine.cs
@@ -45,11 +45,13 @@ public async Task<ScriptResult> Evaluate(ScriptSource source)
45
ScriptOptions options = ScriptOptions.Default
46
.WithFilePath(source.FilePath)
47
.WithReferences(
48
- typeof(Project).Assembly // Microsoft.CodeAnalysis.Workspaces
+ typeof(Project).Assembly, // Microsoft.CodeAnalysis.Workspaces
49
+ typeof(ScriptEngine).Assembly // Scripty.Core
50
)
51
.WithImports(
52
"System",
- "Microsoft.CodeAnalysis");
53
+ "Microsoft.CodeAnalysis",
54
+ "Scripty.Core");
55
56
using (ScriptGlobals globals = new ScriptGlobals(source.FilePath, _projectFilePath, LoadProject))
57
{
0 commit comments