From 0b7997d691c8d970bf37e87d96469792ecb82101 Mon Sep 17 00:00:00 2001 From: AlexanderZemlyak <92867056+AlexanderZemlyak@users.noreply.github.com> Date: Tue, 23 Apr 2024 20:54:00 +0300 Subject: [PATCH] Remove main resource deletion in code generation stage (#3098) --- Compiler/Compiler.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Compiler/Compiler.cs b/Compiler/Compiler.cs index f9670f1a5..8303a16a8 100644 --- a/Compiler/Compiler.cs +++ b/Compiler/Compiler.cs @@ -2122,7 +2122,7 @@ namespace PascalABCCompiler if (project.ProjectType == ProjectType.WindowsApp) compilerOptions.target = NETGenerator.TargetType.WinExe; - // возможно, требуется переименование EVA + // при использовании учесть удаление res_file из этой функции при кодогенерации EVA // CreateRCFile(compilerOptions); } } @@ -2528,9 +2528,6 @@ namespace PascalABCCompiler CodeGeneratorsController.EmitAssemblyRedirects( assemblyResolveScope, CompilerOptions.OutputFileName); - - if (compilerOptions.MainResourceFileName != null) - File.Delete(compilerOptions.MainResourceFileName); } }