File tree Expand file tree Collapse file tree 3 files changed +57
-0
lines changed Expand file tree Collapse file tree 3 files changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ using PluginsService ;
2
+
3
+ public class Program
4
+ {
5
+ public static void Main ( string [ ] args )
6
+ {
7
+ Plugins plugins = new ( "plugins" ) ;
8
+ Console . WriteLine ( "插件名称:" + plugins . GetPluginName ( "TestPlugin" ) ) ;
9
+ Console . WriteLine ( "插件版本:" + plugins . GetPluginVersion ( "TestPlugin" ) ) ;
10
+ Console . WriteLine ( "插件介绍:" + plugins . GetPluginDescription ( "TestPlugin" ) ) ;
11
+ plugins . RunPlugin ( "TestPlugin" ) ;
12
+ }
13
+ }
Original file line number Diff line number Diff line change
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
+
3
+ <PropertyGroup >
4
+ <OutputType >Exe</OutputType >
5
+ <TargetFramework >net6.0</TargetFramework >
6
+ <ImplicitUsings >enable</ImplicitUsings >
7
+ <Nullable >enable</Nullable >
8
+ </PropertyGroup >
9
+
10
+ <ItemGroup >
11
+ <Reference Include =" PluginFrame" >
12
+ <HintPath >..\PluginFrame\bin\Release\PluginFrame.dll</HintPath >
13
+ </Reference >
14
+ <Reference Include =" PluginsService" >
15
+ <HintPath >..\PluginsService\bin\Release\PluginsService.dll</HintPath >
16
+ </Reference >
17
+ </ItemGroup >
18
+
19
+ </Project >
Original file line number Diff line number Diff line change
1
+
2
+ Microsoft Visual Studio Solution File, Format Version 12.00
3
+ # Visual Studio Version 17
4
+ VisualStudioVersion = 17.2.32616.157
5
+ MinimumVisualStudioVersion = 10.0.40219.1
6
+ Project ("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" ) = "TestProgram" , "TestProgram.csproj" , "{7DFA453C-B952-4EDE-9A5F-D4C4DE3ECE93}"
7
+ EndProject
8
+ Global
9
+ GlobalSection (SolutionConfigurationPlatforms ) = preSolution
10
+ Debug| Any CPU = Debug| Any CPU
11
+ Release| Any CPU = Release| Any CPU
12
+ EndGlobalSection
13
+ GlobalSection (ProjectConfigurationPlatforms ) = postSolution
14
+ {7DFA453C-B952-4EDE-9A5F-D4C4DE3ECE93} .Debug| Any CPU .ActiveCfg = Debug| Any CPU
15
+ {7DFA453C-B952-4EDE-9A5F-D4C4DE3ECE93} .Debug| Any CPU .Build .0 = Debug| Any CPU
16
+ {7DFA453C-B952-4EDE-9A5F-D4C4DE3ECE93} .Release| Any CPU .ActiveCfg = Release| Any CPU
17
+ {7DFA453C-B952-4EDE-9A5F-D4C4DE3ECE93} .Release| Any CPU .Build .0 = Release| Any CPU
18
+ EndGlobalSection
19
+ GlobalSection (SolutionProperties ) = preSolution
20
+ HideSolutionNode = FALSE
21
+ EndGlobalSection
22
+ GlobalSection (ExtensibilityGlobals ) = postSolution
23
+ SolutionGuid = {5722CB16-70D6-4026-9F79-2BD54F590F6F}
24
+ EndGlobalSection
25
+ EndGlobal
You can’t perform that action at this time.
0 commit comments