Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

Commit

Permalink
update dependencies, switch to netstandard2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cgytrus committed Sep 26, 2022
1 parent 914f7cc commit adf2ab4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
7 changes: 2 additions & 5 deletions ThreeDashTools.Patcher/ThreeDashTools.Patcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="all" />
<PackageReference Include="Mono.Cecil" Version="0.10.4" />
</ItemGroup>

</Project>
</Project>
12 changes: 4 additions & 8 deletions ThreeDashTools/ThreeDashTools.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net471</TargetFramework>
<TargetFramework>netstandard2.1</TargetFramework>
<AssemblyName>ThreeDashTools</AssemblyName>
<Version>0.3.0</Version>
<Company>https://github.com/cgytrus/ThreeDashTools</Company>
Expand All @@ -11,16 +11,12 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BepInEx.Analyzers" Version="1.*" PrivateAssets="all" />
<PackageReference Include="BepInEx.Core" Version="5.*" />
<PackageReference Include="BepInEx.PluginInfoProps" Version="1.*" />
<PackageReference Include="BepInEx.Analyzers" Version="1.0.8" PrivateAssets="all" />
<PackageReference Include="BepInEx.Core" Version="5.4.21" />
<PackageReference Include="BepInEx.PluginInfoProps" Version="2.1.0" />
<PackageReference Include="UnityEngine.Modules" Version="2021.3.6" IncludeAssets="compile" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
<Reference Include="Assembly-CSharp">
<HintPath>libs\Assembly-CSharp.dll</HintPath>
Expand Down
4 changes: 2 additions & 2 deletions ThreeDashTools/src/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace ThreeDashTools;

[BepInPlugin("mod.cgytrus.plugins.3dashtools", PluginInfo.PLUGIN_NAME, PluginInfo.PLUGIN_VERSION)]
[BepInPlugin("mod.cgytrus.plugins.3dashtools", MyPluginInfo.PLUGIN_NAME, MyPluginInfo.PLUGIN_VERSION)]
[BepInDependency("mod.cgytrus.plugins.sixdash", "0.4.0")]
public class Plugin : BaseUnityPlugin {
public static Plugin? instance { get; private set; }
Expand All @@ -23,7 +23,7 @@ private void Awake() {
Util.ApplyAllPatches();

Logger.LogInfo("Initializing UI");
UI.AddVersionText($"3DashTools v{PluginInfo.PLUGIN_VERSION}");
UI.AddVersionText($"3DashTools v{MyPluginInfo.PLUGIN_VERSION}");
}

private void Update() => ShowHitboxes.instance?.Update();
Expand Down

0 comments on commit adf2ab4

Please sign in to comment.