mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Use GetCustomAttributes instead of GetCustomAttribute
GetCustomAttribute is not part of net35
This commit is contained in:
1 parent
821ad5fe07
commit
cfa6857bb0
1 file changed
+2
-2
@@ -1,6 +1,6 @@
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using BepInEx.Core;
|
||||
using MonoMod.Utils;
|
||||
|
||||
namespace BepInEx
|
||||
@@ -34,7 +34,7 @@ namespace BepInEx
|
||||
PluginPath = Utility.CombinePaths(BepInExRootPath, pluginPath);
|
||||
}
|
||||
|
||||
public static SemVer.Version BepInExVersion { get; } = SemVer.Version.Parse(typeof(Paths).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion);
|
||||
public static SemVer.Version BepInExVersion { get; } = SemVer.Version.Parse(typeof(Paths).Assembly.GetCustomAttributes(typeof(AssemblyInformationalVersionAttribute), false).Cast<AssemblyInformationalVersionAttribute>().First().InformationalVersion);
|
||||
|
||||
/// <summary>
|
||||
/// The directory that the core BepInEx DLLs reside in.
|
||||
|
||||
Reference in new issue
Block a user