Skip to content

Commit

Permalink
Merge pull request #20 from enisn/install-libs-fix
Browse files Browse the repository at this point in the history
Prevent error page while installing libs
  • Loading branch information
enisn authored Dec 10, 2024
2 parents a1ddfc1 + 8fbd572 commit 7e102d4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/AbpDevTools/Commands/RunCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 7e102d4

Please sign in to comment.