do not include Licensing assembly with framework but prevent uninstall
This commit is contained in:
parent
474adf2d53
commit
2b12b67582
|
@ -19,7 +19,6 @@
|
||||||
<files>
|
<files>
|
||||||
<file src="..\Oqtane.Client\bin\Release\net8.0\Oqtane.Client.dll" target="lib\net8.0" />
|
<file src="..\Oqtane.Client\bin\Release\net8.0\Oqtane.Client.dll" target="lib\net8.0" />
|
||||||
<file src="..\Oqtane.Client\bin\Release\net8.0\Oqtane.Client.pdb" target="lib\net8.0" />
|
<file src="..\Oqtane.Client\bin\Release\net8.0\Oqtane.Client.pdb" target="lib\net8.0" />
|
||||||
<file src="..\Oqtane.Server\bin\Release\net8.0\Oqtane.Licensing.Client.Oqtane.dll" target="lib\net8.0" />
|
|
||||||
<file src="icon.png" target="" />
|
<file src="icon.png" target="" />
|
||||||
</files>
|
</files>
|
||||||
</package>
|
</package>
|
|
@ -19,7 +19,6 @@
|
||||||
<files>
|
<files>
|
||||||
<file src="..\Oqtane.Shared\bin\Release\net8.0\Oqtane.Shared.dll" target="lib\net8.0" />
|
<file src="..\Oqtane.Shared\bin\Release\net8.0\Oqtane.Shared.dll" target="lib\net8.0" />
|
||||||
<file src="..\Oqtane.Shared\bin\Release\net8.0\Oqtane.Shared.pdb" target="lib\net8.0" />
|
<file src="..\Oqtane.Shared\bin\Release\net8.0\Oqtane.Shared.pdb" target="lib\net8.0" />
|
||||||
<file src="..\Oqtane.Server\bin\Release\net8.0\Oqtane.Licensing.Shared.Oqtane.dll" target="lib\net8.0" />
|
|
||||||
<file src="icon.png" target="" />
|
<file src="icon.png" target="" />
|
||||||
</files>
|
</files>
|
||||||
</package>
|
</package>
|
|
@ -136,6 +136,9 @@ namespace Oqtane.Infrastructure
|
||||||
|
|
||||||
// register assembly
|
// register assembly
|
||||||
if (Path.GetExtension(filename) == ".dll")
|
if (Path.GetExtension(filename) == ".dll")
|
||||||
|
{
|
||||||
|
// do not register licensing assemblies
|
||||||
|
if (!Path.GetFileName(filename).StartsWith("Oqtane.Licensing."))
|
||||||
{
|
{
|
||||||
// if package version was not installed previously
|
// if package version was not installed previously
|
||||||
if (!File.Exists(Path.Combine(sourceFolder, name + ".log")))
|
if (!File.Exists(Path.Combine(sourceFolder, name + ".log")))
|
||||||
|
@ -152,6 +155,7 @@ namespace Oqtane.Infrastructure
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// save dynamic list of assets
|
// save dynamic list of assets
|
||||||
if (!manifest && assets.Count != 0)
|
if (!manifest && assets.Count != 0)
|
||||||
|
@ -254,6 +258,9 @@ namespace Oqtane.Infrastructure
|
||||||
|
|
||||||
// delete assets
|
// delete assets
|
||||||
if (Path.GetExtension(filepath) == ".dll")
|
if (Path.GetExtension(filepath) == ".dll")
|
||||||
|
{
|
||||||
|
// do not remove licensing assemblies
|
||||||
|
if (!Path.GetFileName(filepath).StartsWith("Oqtane.Licensing."))
|
||||||
{
|
{
|
||||||
// use assembly log to determine if assembly is used in other packages
|
// use assembly log to determine if assembly is used in other packages
|
||||||
if (assemblies.ContainsKey(Path.GetFileName(filepath)))
|
if (assemblies.ContainsKey(Path.GetFileName(filepath)))
|
||||||
|
@ -273,6 +280,7 @@ namespace Oqtane.Infrastructure
|
||||||
DeleteFile(filepath);
|
DeleteFile(filepath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else // not an assembly
|
else // not an assembly
|
||||||
{
|
{
|
||||||
DeleteFile(filepath);
|
DeleteFile(filepath);
|
||||||
|
|
|
@ -47,7 +47,6 @@
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="8.0.1" />
|
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="8.0.1" />
|
||||||
<PackageReference Include="Microsoft.Data.Sqlite.Core" Version="8.0.1" />
|
<PackageReference Include="Microsoft.Data.Sqlite.Core" Version="8.0.1" />
|
||||||
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3" Version="2.1.7" />
|
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3" Version="2.1.7" />
|
||||||
<PackageReference Include="Oqtane.Licensing" Version="5.0.0" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\Oqtane.Client\Oqtane.Client.csproj" />
|
<ProjectReference Include="..\Oqtane.Client\Oqtane.Client.csproj" />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user