Skip to content
This repository was archived by the owner on Oct 9, 2024. It is now read-only.

Commit 4910c97

Browse files
committed
More robust versioning & add assembly info
1 parent 357fedd commit 4910c97

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

Outflow.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class Outflow : ResoniteMod
1414
{
1515
public override string Name => "Outflow";
1616
public override string Author => "Cyro";
17-
public override string Version => "1.0.0";
17+
public override string Version => typeof(Outflow).Assembly.GetName().Version.ToString();
1818
public override string Link => "https://github.com/RileyGuy/Outflow";
1919
public static ModConfiguration? Config;
2020

@@ -77,7 +77,7 @@ public static bool EncodeLoop_Prefix(Session __instance, ref AutoResetEvent ___e
7777
break;
7878
}
7979

80-
80+
8181
while (___messagesToTransmit.TryDequeue(out SyncMessage val)) // De-queue messages to send
8282
{
8383
DateTime last = DateTime.Now;

Outflow.csproj

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<LangVersion>latest</LangVersion>
8+
9+
<Version>0.0.0.1</Version>
10+
<AssemblyVersion>$(Version)</AssemblyVersion>
11+
<Authors>Cyro</Authors>
12+
<Product>Outflow packet manager</Product>
13+
<Description>Mitigate hitching when new users join a session in Resonite</Description>
14+
<Copyright>Copyright (c) 2023 Riley Fields</Copyright>
15+
816
<DocumentationFile>./Docs.xml</DocumentationFile>
917
</PropertyGroup>
1018

@@ -38,7 +46,18 @@
3846
</ItemGroup>
3947

4048
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
41-
<Copy SourceFiles="$(OutDir)$(TargetFileName)" DestinationFolder="P:\Resonite\Headless\Headless\rml_mods" />
49+
<!--Copy SourceFiles="$(OutDir)$(TargetFileName)" DestinationFolder="./" /-->
4250
<!--Exec Command="C:\Program Files (x86)\Steam\steamapps\common\Resonite\Resonite.exe -Screen -screen-fullscreen 1 -DontAutoOpenCloudHome -CachePath C:\Resonite\Cache -DataPath C:\Resonite\Data -CTAATemporalEdgePower 1.0 -CTAASharpnessEnabled False -CTAAAdaptiveSharpness 0.4 -LoadAssembly Libraries\ResoniteModLoader.dll" /-->
4351
</Target>
52+
53+
<Target Name="MoveBinary" AfterTargets="Publish">
54+
<Copy SourceFiles="$(PublishDir)$(TargetFileName)" DestinationFolder="." />
55+
</Target>
56+
57+
<Target Name="DeepClean">
58+
<RemoveDir Directories="./bin" />
59+
<RemoveDir Directories="./obj" />
60+
<Delete Files="./$(TargetFileName)" />
61+
<Exec Command="dotnet restore" />
62+
</Target>
4463
</Project>

0 commit comments

Comments
 (0)