add Version property to IPlugin
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user