Bump NuGet packages

This commit is contained in:
ghorsington committed 2021-09-25 19:22:12 +03:00
1 parent 4304b817da
commit 639dbb475c
10 files changed
+43 -43

No files matched your search

+3 -3
View File
@@ -21,9 +21,9 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="All"/>
<PackageReference Include="HarmonyX" Version="2.4.2"/>
<PackageReference Include="MonoMod.Utils" Version="21.4.21.3"/>
<PackageReference Include="SemanticVersioning" Version="1.3.0"/>
<PackageReference Include="HarmonyX" Version="2.5.5"/>
<PackageReference Include="MonoMod.Utils" Version="21.9.19.1"/>
<PackageReference Include="SemanticVersioning" Version="2.0.0"/>
</ItemGroup>
<ItemGroup>
<Compile Remove="Contract\IPlugin.cs"/>
+1 -1
View File
@@ -267,7 +267,7 @@ namespace BepInEx.Bootstrap
var sortedPlugins = ModifyLoadOrder(plugins);
var invalidPlugins = new HashSet<string>();
var processedPlugins = new Dictionary<string, SemVer.Version>();
var processedPlugins = new Dictionary<string, SemanticVersioning.Version>();
var loadedAssemblies = new Dictionary<string, Assembly>();
foreach (var plugin in sortedPlugins)
+15 -15
View File
@@ -5,8 +5,8 @@ using System.Linq;
using System.Reflection;
using BepInEx.Bootstrap;
using Mono.Cecil;
using Version = SemVer.Version;
using Range = SemVer.Range;
using SemanticVersioning;
using Version = SemanticVersioning.Version;
namespace BepInEx
{
@@ -70,9 +70,9 @@ namespace BepInEx
if (attr == null)
return null;
return new BepInPlugin((string) attr.ConstructorArguments[0].Value,
(string) attr.ConstructorArguments[1].Value,
(string) attr.ConstructorArguments[2].Value);
return new BepInPlugin((string)attr.ConstructorArguments[0].Value,
(string)attr.ConstructorArguments[1].Value,
(string)attr.ConstructorArguments[2].Value);
}
}
@@ -145,14 +145,14 @@ namespace BepInEx
void ICacheable.Save(BinaryWriter bw)
{
bw.Write(DependencyGUID);
bw.Write((int) Flags);
bw.Write((int)Flags);
bw.Write(VersionRange?.ToString() ?? string.Empty);
}
void ICacheable.Load(BinaryReader br)
{
DependencyGUID = br.ReadString();
Flags = (DependencyFlags) br.ReadInt32();
Flags = (DependencyFlags)br.ReadInt32();
var versionRange = br.ReadString();
VersionRange = versionRange == string.Empty ? null : Range.Parse(versionRange);
@@ -163,10 +163,10 @@ namespace BepInEx
var attrs = MetadataHelper.GetCustomAttributes<BepInDependency>(td, true);
return attrs.Select(customAttribute =>
{
var dependencyGuid = (string) customAttribute.ConstructorArguments[0].Value;
var dependencyGuid = (string)customAttribute.ConstructorArguments[0].Value;
var secondArg = customAttribute.ConstructorArguments[1].Value;
if (secondArg is string minVersion) return new BepInDependency(dependencyGuid, minVersion);
return new BepInDependency(dependencyGuid, (DependencyFlags) secondArg);
return new BepInDependency(dependencyGuid, (DependencyFlags)secondArg);
}).ToList();
}
}
@@ -201,7 +201,7 @@ namespace BepInEx
var attrs = MetadataHelper.GetCustomAttributes<BepInIncompatibility>(td, true);
return attrs.Select(customAttribute =>
{
var dependencyGuid = (string) customAttribute.ConstructorArguments[0].Value;
var dependencyGuid = (string)customAttribute.ConstructorArguments[0].Value;
return new BepInIncompatibility(dependencyGuid);
}).ToList();
}
@@ -229,7 +229,7 @@ namespace BepInEx
{
var attrs = MetadataHelper.GetCustomAttributes<BepInProcess>(td, true);
return attrs.Select(customAttribute =>
new BepInProcess((string) customAttribute.ConstructorArguments[0].Value)).ToList();
new BepInProcess((string)customAttribute.ConstructorArguments[0].Value)).ToList();
}
}
@@ -271,7 +271,7 @@ namespace BepInEx
if (attributes.Length == 0)
return null;
return (BepInPlugin) attributes[0];
return (BepInPlugin)attributes[0];
}
/// <summary>
@@ -288,7 +288,7 @@ namespace BepInEx
/// <param name="pluginType">The plugin type.</param>
/// <returns>The attributes of the type, if existing.</returns>
public static T[] GetAttributes<T>(Type pluginType) where T : Attribute =>
(T[]) pluginType.GetCustomAttributes(typeof(T), true);
(T[])pluginType.GetCustomAttributes(typeof(T), true);
/// <summary>
/// Gets the specified attributes of an assembly, if they exist.
@@ -297,7 +297,7 @@ namespace BepInEx
/// <typeparam name="T">The attribute type to retrieve.</typeparam>
/// <returns>The attributes of the type, if existing.</returns>
public static T[] GetAttributes<T>(Assembly assembly) where T : Attribute =>
(T[]) assembly.GetCustomAttributes(typeof(T), true);
(T[])assembly.GetCustomAttributes(typeof(T), true);
/// <summary>
/// Gets the specified attributes of an instance, if they exist.
@@ -315,7 +315,7 @@ namespace BepInEx
/// <param name="member">The reflection metadata instance.</param>
/// <returns>The attributes of the instance, if existing.</returns>
public static T[] GetAttributes<T>(MemberInfo member) where T : Attribute =>
(T[]) member.GetCustomAttributes(typeof(T), true);
(T[])member.GetCustomAttributes(typeof(T), true);
/// <summary>
/// Retrieves the dependencies of the specified plugin type.
+1 -1
View File
@@ -2,7 +2,7 @@
using System.Linq;
using System.Reflection;
using MonoMod.Utils;
using SemVer;
using SemanticVersioning;
namespace BepInEx
{
+3 -3
View File
@@ -25,15 +25,15 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="BepInEx.Il2Cpp.TlsAdapter" Version="1.0.1"/>
<PackageReference Include="HarmonyX" Version="2.4.2"/>
<PackageReference Include="HarmonyX" Version="2.5.5"/>
<PackageReference Include="Iced" Version="1.13.0"/>
<PackageReference Include="Il2CppAssemblyUnhollower.BaseLib" Version="0.4.15.3"/>
<PackageReference Include="Il2CppAssemblyUnhollower.BaseLib.Legacy" Version="0.4.15.2"/>
<PackageReference Include="Il2CppAssemblyUnhollower.Tool" Version="0.4.15.3"/>
<PackageReference Include="Il2CppDumper" Version="6.6.4"/>
<PackageReference Include="Il2CppReferenceLibs.Core" Version="1.0.0" IncludeAssets="compile"/>
<PackageReference Include="MonoMod.RuntimeDetour" Version="21.4.21.3"/>
<PackageReference Include="Samboy063.Cpp2IL.Core" Version="2021.3.4"/>
<PackageReference Include="MonoMod.RuntimeDetour" Version="21.9.19.1"/>
<PackageReference Include="Samboy063.Cpp2IL.Core" Version="2021.3.7"/>
</ItemGroup>
<Import Project="..\BepInEx.Shared\BepInEx.Shared.projitems" Label="Shared"/>
@@ -26,7 +26,7 @@
<ProjectReference Include="..\BepInEx.Preloader.Core\BepInEx.Preloader.Core.csproj" PrivateAssets="All"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="HarmonyX" Version="2.4.2"/>
<PackageReference Include="HarmonyX" Version="2.5.5"/>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="All"/>
</ItemGroup>
<Import Project="..\BepInEx.Shared\BepInEx.Shared.projitems" Label="Shared"/>
@@ -22,8 +22,8 @@
<Import Project="..\BepInEx.Shared\BepInEx.Shared.projitems" Label="Shared"/>
<ItemGroup>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="All"/>
<PackageReference Include="HarmonyX" Version="2.4.2"/>
<PackageReference Include="MonoMod.RuntimeDetour" Version="21.4.21.3"/>
<PackageReference Include="MonoMod.Utils" Version="21.4.21.3"/>
<PackageReference Include="HarmonyX" Version="2.5.5"/>
<PackageReference Include="MonoMod.RuntimeDetour" Version="21.9.19.1"/>
<PackageReference Include="MonoMod.Utils" Version="21.9.19.1"/>
</ItemGroup>
</Project>
+14 -14
View File
@@ -1,7 +1,7 @@
using System;
using System.Linq;
using Mono.Cecil;
using Version = SemVer.Version;
using Version = SemanticVersioning.Version;
namespace BepInEx.Preloader.Core.Patching
{
@@ -90,16 +90,16 @@ namespace BepInEx.Preloader.Core.Patching
/// </summary>
public const string AllAssemblies = "_all";
/// <summary>
/// The short filename of the assembly to target.
/// </summary>
public string TargetAssembly { get; }
/// <param name="targetAssembly">The short filename of the assembly. Use <see cref="AllAssemblies"/> to mark all possible assemblies as targets.</param>
public TargetAssemblyAttribute(string targetAssembly)
{
TargetAssembly = targetAssembly;
}
/// <summary>
/// The short filename of the assembly to target.
/// </summary>
public string TargetAssembly { get; }
}
/// <summary>
@@ -108,6 +108,14 @@ namespace BepInEx.Preloader.Core.Patching
[AttributeUsage(AttributeTargets.Method)]
public class TargetTypeAttribute : Attribute
{
/// <param name="targetAssembly">The short filename of the assembly of which <paramref name="targetType"/> belongs to.</param>
/// <param name="targetType">The full name of the type to target for patching.</param>
public TargetTypeAttribute(string targetAssembly, string targetType)
{
TargetAssembly = targetAssembly;
TargetType = targetType;
}
/// <summary>
/// The short filename of the assembly to target.
/// </summary>
@@ -117,13 +125,5 @@ namespace BepInEx.Preloader.Core.Patching
/// The full name of the type to target for patching.
/// </summary>
public string TargetType { get; }
/// <param name="targetAssembly">The short filename of the assembly of which <paramref name="targetType"/> belongs to.</param>
/// <param name="targetType">The full name of the type to target for patching.</param>
public TargetTypeAttribute(string targetAssembly, string targetType)
{
TargetAssembly = targetAssembly;
TargetType = targetType;
}
}
}
@@ -20,7 +20,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="All"/>
<PackageReference Include="HarmonyX" Version="2.4.2"/>
<PackageReference Include="HarmonyX" Version="2.5.5"/>
</ItemGroup>
<Import Project="..\BepInEx.Shared\BepInEx.Shared.projitems" Label="Shared"/>
</Project>
+1 -1
View File
@@ -23,7 +23,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="All"/>
<PackageReference Include="HarmonyX" Version="2.4.2"/>
<PackageReference Include="HarmonyX" Version="2.5.5"/>
<PackageReference Include="UnityEngine" Version="5.6.1" IncludeAssets="compile"/>
</ItemGroup>
<Import Project="..\BepInEx.Shared\BepInEx.Shared.projitems" Label="Shared"/>