Merge pull request #5046 from sbwalker/dev
fix upgrade issue which can occur in development environments
This commit is contained in:
commit
3640cd2fdd
|
@ -1,5 +1,6 @@
|
|||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Oqtane.Models;
|
||||
using Oqtane.Repository;
|
||||
|
@ -506,6 +507,9 @@ namespace Oqtane.Infrastructure
|
|||
}
|
||||
|
||||
private void RemoveAssemblies(string[] assemblies, string version)
|
||||
{
|
||||
// in a development environment assemblies cannot be removed as the debugger runs fron /bin folder and locks the files
|
||||
if (!_environment.IsDevelopment())
|
||||
{
|
||||
foreach (var assembly in assemblies)
|
||||
{
|
||||
|
@ -523,4 +527,5 @@ namespace Oqtane.Infrastructure
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user