fix #3454 - do not remove Oqtane.lLicensing assemblies during package uninstall
This commit is contained in:
parent
10b89ff00b
commit
bb10d64d58
|
@ -250,6 +250,9 @@ namespace Oqtane.Infrastructure
|
|||
// legacy support for assets that were stored as absolute paths
|
||||
string filepath = asset.StartsWith("\\") ? Path.Combine(_environment.ContentRootPath, asset.Substring(1)) : asset;
|
||||
if (File.Exists(filepath))
|
||||
{
|
||||
// do not remove licensing assemblies - this is a temporary fix until a more robust dependency management solution is available
|
||||
if (!filepath.Contains("Oqtane.Licensing."))
|
||||
{
|
||||
File.Delete(filepath);
|
||||
if (!Directory.EnumerateFiles(Path.GetDirectoryName(filepath)).Any())
|
||||
|
@ -258,6 +261,7 @@ namespace Oqtane.Infrastructure
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// clean up package asset manifests
|
||||
foreach (string asset in packages)
|
||||
|
|
Loading…
Reference in New Issue
Block a user