add Version property to IPlugin

This commit is contained in:
Pilzinsel64
2025-06-18 06:23:45 +02:00
parent 6a066415eb
commit 1d14e80624
2 changed files with 10 additions and 2 deletions

View File

@@ -1,6 +1,10 @@
namespace Pilz.Plugins; using Pilz.Extensions;
using System.Reflection;
namespace Pilz.Plugins;
public interface IPlugin public interface IPlugin
{ {
public string Name { get; } string Name { get; }
AppVersion Version => GetType().Assembly.GetAppVersion();
} }

View File

@@ -11,4 +11,8 @@
<Version>2.1.10</Version> <Version>2.1.10</Version>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Pilz\Pilz.csproj" />
</ItemGroup>
</Project> </Project>