From 8fbd57201095dc0a8dab59116df56f8cfd7bd364 Mon Sep 17 00:00:00 2001 From: Enis Necipoglu Date: Tue, 10 Dec 2024 09:08:47 +0300 Subject: [PATCH] Prevent error page while installing libs --- src/AbpDevTools/Commands/RunCommand.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/AbpDevTools/Commands/RunCommand.cs b/src/AbpDevTools/Commands/RunCommand.cs index 11c0391..724afaf 100644 --- a/src/AbpDevTools/Commands/RunCommand.cs +++ b/src/AbpDevTools/Commands/RunCommand.cs @@ -186,6 +186,17 @@ public async ValueTask ExecuteAsync(IConsole console) if (InstallLibs) { + var wwwRootLibs = Path.Combine(Path.GetDirectoryName(csproj.FullName)!, "wwwroot/libs"); + if (!Directory.Exists(wwwRootLibs)) + { + Directory.CreateDirectory(wwwRootLibs); + } + + if (!Directory.EnumerateFiles(wwwRootLibs).Any()) + { + File.WriteAllText(Path.Combine(wwwRootLibs, "abplibs.installing"), string.Empty); + } + var installLibsRunninItem = new RunningInstallLibsItem( csproj.Name.Replace(".csproj", " install-libs"), Process.Start(new ProcessStartInfo("abp", "install-libs")