Skip to content

Commit 7cd52f6

Browse files
Eugene Bochiloyulian-gaponenko
authored andcommitted
Remove KeyVersionAttribute class
DEVSIX-5807
1 parent a1377ef commit 7cd52f6

File tree

4 files changed

+3
-67
lines changed

4 files changed

+3
-67
lines changed

itext/itext.kernel/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System.Reflection;
22
using System.Runtime.CompilerServices;
33
using System.Runtime.InteropServices;
4-
using Versions.Attributes;
54

65
[assembly: AssemblyTitle("iText.Kernel")]
76
[assembly: AssemblyDescription("")]
@@ -22,8 +21,6 @@
2221

2322
[assembly: Guid("be4c62cc-6495-47e1-ab00-05b1bfe331f6")]
2423

25-
[assembly: KeyVersion("3.1.5.0")]
26-
2724
[assembly: AssemblyVersion("7.2.0.0")]
2825
[assembly: AssemblyFileVersion("7.2.0.0")]
2926
[assembly: AssemblyInformationalVersion("7.2.0-SNAPSHOT")]

itext/itext.kernel/Properties/KeyVersionAttribute.cs

Lines changed: 0 additions & 56 deletions
This file was deleted.

itext/itext.kernel/itext.kernel.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@
106106
<ItemGroup>
107107
<Compile Include="itext\kernel\**\*.cs" />
108108
<Compile Include="Properties\AssemblyInfo.cs" />
109-
<Compile Include="Properties\KeyVersionAttribute.cs" />
110109
<Compile Include="KernelExtensions.cs" />
111110
</ItemGroup>
112111
<ItemGroup>

itext/itext.kernel/itext/kernel/Version.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ source product.
4545
using System.IO;
4646
using System.Reflection;
4747
using Microsoft.Extensions.Logging;
48-
using Versions.Attributes;
4948
using iText.Commons;
5049
using iText.Kernel.Actions.Data;
5150

@@ -313,12 +312,9 @@ private static Type GetClassFromLicenseKey(String classPartialName) {
313312
String classFullName = null;
314313

315314
Assembly kernelAssembly = typeof(Version).GetAssembly();
316-
Attribute keyVersionAttr = kernelAssembly.GetCustomAttribute(typeof(KeyVersionAttribute));
317-
if (keyVersionAttr is KeyVersionAttribute) {
318-
String keyVersion = ((KeyVersionAttribute)keyVersionAttr).KeyVersion;
319-
String format = "{0}, Version={1}, Culture=neutral, PublicKeyToken=8354ae6d2174ddca";
320-
classFullName = String.Format(format, classPartialName, keyVersion);
321-
}
315+
String keyVersion = "3.1.5.0";
316+
String format = "{0}, Version={1}, Culture=neutral, PublicKeyToken=8354ae6d2174ddca";
317+
classFullName = String.Format(format, classPartialName, keyVersion);
322318

323319
Type type = null;
324320
if (classFullName != null) {

0 commit comments

Comments
 (0)