Skip to content

Commit 9f0a561

Browse files
committed
- Release v4.8.3.0
1 parent 636a3a2 commit 9f0a561

File tree

3 files changed

+29
-11
lines changed

3 files changed

+29
-11
lines changed

src/CSScriptLib/src/CSScriptLib/Evaluator.Roslyn.cs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ void add_code(string file, string[] codeLines, int lineOffset)
449449
////////////////////////////////////////
450450

451451
// PrepareRefAssemblies just updates CompilerSettings.MetadataReferences
452-
// however SourceCodeKind.Script will require completely different referencing mechanizm
452+
// however SourceCodeKind.Script will require completely different referencing mechanism
453453
if (info == null || info.CodeKind != SourceCodeKind.Script)
454454
PrepareRefAssemblies();
455455

@@ -663,10 +663,17 @@ public override IEvaluator ReferenceAssembly(Assembly assembly)
663663
///
664664
/// return new Script();");
665665
/// int sum = calc.Sum(1, 2);
666-
/// </code><remarks>
667-
/// Note <see cref="IEvaluator.Eval" /> compiles and executes the script in the current AppDoman.
666+
/// </code>
667+
/// <remarks>
668+
/// Note <see cref="IEvaluator.Eval"/> compiles and executes the script in the current AppDoman.
668669
/// All AppDomain loaded assemblies of the AppDomain being referenced from the script regardless of
669-
/// <see cref="EvaluatorConfig.ReferenceDomainAssemblies"></see> setting.
670+
/// <see cref="CSScript.EvaluatorConfig"></see> setting.
671+
/// <para>During the script compilation, this method uses:
672+
/// <para>
673+
/// <c>CompileInfo.CodeKind=Microsoft.CodeAnalysis.SourceCodeKind.Script</c>.
674+
/// </para>
675+
/// This is the only option that supports script execution for applications published with
676+
/// PublishSingleFile option.</para>
670677
/// </remarks>
671678
/// <para>This method is the only option that supports script execution for applications published with
672679
/// PublishSingleFile option.</para>

src/CSScriptLib/src/CSScriptLib/EvaluatorBase.cs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,12 +1103,18 @@ public string CompileAssemblyFromFile(string scriptFile, CompileInfo info)
11031103
/// }
11041104
/// return new Script();");
11051105
/// int sum = calc.Sum(1, 2);
1106-
/// </code><remarks>
1107-
/// Note <see cref="IEvaluator.Eval" /> compiles and executes the script in the current AppDoman.
1106+
/// </code>
1107+
/// <remarks>
1108+
/// Note <see cref="IEvaluator.Eval"/> compiles and executes the script in the current AppDoman.
11081109
/// All AppDomain loaded assemblies of the AppDomain being referenced from the script regardless of
1109-
/// <see cref="EvaluatorConfig.ReferenceDomainAssemblies"></see> setting.
1110-
/// </remarks><para>This method is the only option that supports script execution for
1111-
/// applications published with PublishSingleFile option.</para>
1110+
/// <see cref="CSScript.EvaluatorConfig"></see> setting.
1111+
/// <para>During the script compilation, this method uses:
1112+
/// <para>
1113+
/// <c>CompileInfo.CodeKind=Microsoft.CodeAnalysis.SourceCodeKind.Script</c>.
1114+
/// </para>
1115+
/// This is the only option that supports script execution for applications published with
1116+
/// PublishSingleFile option.</para>
1117+
/// </remarks>
11121118
/// </summary>
11131119
/// <param name="scriptText">The script text.</param>
11141120
/// <returns>

src/CSScriptLib/src/CSScriptLib/IEvaluator.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,9 +559,14 @@ public interface IEvaluator
559559
/// <remarks>
560560
/// Note <see cref="IEvaluator.Eval"/> compiles and executes the script in the current AppDoman.
561561
/// All AppDomain loaded assemblies of the AppDomain being referenced from the script regardless of
562-
/// <see cref="CSScript.EvaluatorConfig"></see> setting.</remarks>
563-
/// <para>This method is the only option that supports script execution for applications published with
562+
/// <see cref="CSScript.EvaluatorConfig"></see> setting.
563+
/// <para>During the script compilation, this method uses:
564+
/// <para>
565+
/// <c>CompileInfo.CodeKind=Microsoft.CodeAnalysis.SourceCodeKind.Script</c>.
566+
/// </para>
567+
/// This is the only option that supports script execution for applications published with
564568
/// PublishSingleFile option.</para>
569+
/// </remarks>
565570
/// </summary>
566571
/// <param name="scriptText">The script text.</param>
567572
/// <returns>The object returned by the script.</returns>

0 commit comments

Comments
 (0)