diff --git a/src/CSScriptLib/src/CSScriptLib/CSScriptLib.csproj b/src/CSScriptLib/src/CSScriptLib/CSScriptLib.csproj index d54bf6fe..67576bb6 100644 --- a/src/CSScriptLib/src/CSScriptLib/CSScriptLib.csproj +++ b/src/CSScriptLib/src/CSScriptLib/CSScriptLib.csproj @@ -13,9 +13,9 @@ true snupkg true - 4.4.0.0 + 4.4.1.0 Oleg Shilo - CS-Script engine Class Library for .NET 5 + CS-Script engine Class Library for .NET 5 (and higher) (C) 2018-2022 Oleg Shilo https://github.com/oleg-shilo/cs-script @@ -34,11 +34,7 @@ repo=https://github.com/oleg-shilo/cs-script/releases/download/v4.4.0.0/; file=c _**Windows (choco)**_ _Pending approval_ ``` -choco install cs-script --version=4.4.0.0 -``` -It is highly recommended that you uninstall CS-Script.Core: -``` -sudo choco uninstall cs-script.core +sudo choco install cs-script --version=4.4.0.0 ``` _**Manual**_ @@ -67,8 +63,8 @@ The same shim/symbolic link is created if you are installing the CS-Script as a - Issue #278: Support for embedded PDB? - Added setting PDB format via `CSScript.EvaluatorConfig.PdbFormat` true - 4.4.0.0 - 4.4.0.0 + 4.4.1.0 + 4.4.1.0 MIT css_logo.png diff --git a/src/CSScriptLib/src/CSScriptLib/Evaluator.Roslyn.cs b/src/CSScriptLib/src/CSScriptLib/Evaluator.Roslyn.cs index ec924e66..ad643507 100644 --- a/src/CSScriptLib/src/CSScriptLib/Evaluator.Roslyn.cs +++ b/src/CSScriptLib/src/CSScriptLib/Evaluator.Roslyn.cs @@ -424,10 +424,14 @@ void add_code(string file, string[] codeLines, int lineOffset) var emitOptions = new EmitOptions(false, CSScript.EvaluatorConfig.PdbFormat); EmitResult result; - if (IsDebug && CSScript.EvaluatorConfig.PdbFormat == DebugInformationFormat.Embedded) - result = compilation.Emit(asm, options: emitOptions); - else if (IsDebug) - result = compilation.Emit(asm, pdb, options: emitOptions); + + if (IsDebug) + { + if (CSScript.EvaluatorConfig.PdbFormat == DebugInformationFormat.Embedded) + result = compilation.Emit(asm, options: emitOptions); + else + result = compilation.Emit(asm, pdb, options: emitOptions); + } else result = compilation.Emit(asm);