Projektdateien hinzufügen.
This commit is contained in:
23
IPage.cs
Normal file
23
IPage.cs
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
using System.Windows.Controls;
|
||||||
|
|
||||||
|
namespace PTConverter.Plugin
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Represent a Module-Page
|
||||||
|
/// </summary>
|
||||||
|
public interface IPage
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Instance of an Control(XAML-Page)
|
||||||
|
/// </summary>
|
||||||
|
UserControl GetPage();
|
||||||
|
/// <summary>
|
||||||
|
/// The Main Category
|
||||||
|
/// </summary>
|
||||||
|
string GetCategory();
|
||||||
|
/// <summary>
|
||||||
|
/// The Undercategory of an Main Category Page
|
||||||
|
/// </summary>
|
||||||
|
string GetUnderCategory();
|
||||||
|
}
|
||||||
|
}
|
||||||
39
IPlugin.cs
Normal file
39
IPlugin.cs
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace PTConverter.Plugin
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Describes an Plugin
|
||||||
|
/// </summary>
|
||||||
|
public interface IPlugin
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Author of the plugin
|
||||||
|
/// </summary>
|
||||||
|
string Author { get; }
|
||||||
|
/// <summary>
|
||||||
|
/// Company of the Plugin
|
||||||
|
/// </summary>
|
||||||
|
string Company { get; }
|
||||||
|
/// <summary>
|
||||||
|
/// Name of the Plugin
|
||||||
|
/// </summary>
|
||||||
|
string PluginName { get; }
|
||||||
|
/// <summary>
|
||||||
|
/// Description of the Plugin
|
||||||
|
/// </summary>
|
||||||
|
string Description { get; }
|
||||||
|
/// <summary>
|
||||||
|
/// The Version of the Plugin
|
||||||
|
/// </summary>
|
||||||
|
string Version { get; }
|
||||||
|
/// <summary>
|
||||||
|
/// The Icon(Link) of the Plugin
|
||||||
|
/// </summary>
|
||||||
|
string IconLink { get; }
|
||||||
|
/// <summary>
|
||||||
|
/// Registers all pages
|
||||||
|
/// </summary>
|
||||||
|
IEnumerable<IPage> RegisterPages {get;}
|
||||||
|
}
|
||||||
|
}
|
||||||
51
PTConverter.Plugin.csproj
Normal file
51
PTConverter.Plugin.csproj
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{F6384BCA-C5A7-4DBA-A051-D15A9494CB3B}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>PTConverter.Plugin</RootNamespace>
|
||||||
|
<AssemblyName>PTConverter.Plugin</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
<DocumentationFile>bin\Debug\PTConverter.Plugin.xml</DocumentationFile>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="PresentationFramework" />
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="IPage.cs" />
|
||||||
|
<Compile Include="IPlugin.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
||||||
17
PTConverter.Plugin.nuspec
Normal file
17
PTConverter.Plugin.nuspec
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<package >
|
||||||
|
<metadata>
|
||||||
|
<id>$id$</id>
|
||||||
|
<version>1.0.4</version>
|
||||||
|
<title>PTConverter.Plugin</title>
|
||||||
|
<authors>Kevin Krüger</authors>
|
||||||
|
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||||
|
<license type="expression">MIT</license>
|
||||||
|
<projectUrl>https://git.peacetoke.com/PeaceToke/PTConverter</projectUrl>
|
||||||
|
<!-- <iconUrl>http://icon_url_here_or_delete_this_line/</iconUrl> -->
|
||||||
|
<description>A Package to create a Plugin for PTConverter.</description>
|
||||||
|
<releaseNotes>Projectwebsite updated.</releaseNotes>
|
||||||
|
<copyright>Kevin Krüger</copyright>
|
||||||
|
<tags>PTConverter Plugin</tags>
|
||||||
|
</metadata>
|
||||||
|
</package>
|
||||||
36
Properties/AssemblyInfo.cs
Normal file
36
Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
using System.Reflection;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
// Allgemeine Informationen über eine Assembly werden über die folgenden
|
||||||
|
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
||||||
|
// die einer Assembly zugeordnet sind.
|
||||||
|
[assembly: AssemblyTitle("PTConverter.Plugin")]
|
||||||
|
[assembly: AssemblyDescription("")]
|
||||||
|
[assembly: AssemblyConfiguration("")]
|
||||||
|
[assembly: AssemblyCompany("")]
|
||||||
|
[assembly: AssemblyProduct("PTConverter.Plugin")]
|
||||||
|
[assembly: AssemblyCopyright("Copyright © 2021")]
|
||||||
|
[assembly: AssemblyTrademark("")]
|
||||||
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly
|
||||||
|
// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
|
||||||
|
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
|
||||||
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
|
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
|
||||||
|
[assembly: Guid("f6384bca-c5a7-4dba-a051-d15a9494cb3b")]
|
||||||
|
|
||||||
|
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
|
||||||
|
//
|
||||||
|
// Hauptversion
|
||||||
|
// Nebenversion
|
||||||
|
// Buildnummer
|
||||||
|
// Revision
|
||||||
|
//
|
||||||
|
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
|
||||||
|
// indem Sie "*" wie unten gezeigt eingeben:
|
||||||
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
Reference in New Issue
Block a user