diff --git a/SemanticKernelSamples/Example01_NativeFunctions/Example01_NativeFunctions.csproj b/SemanticKernelSamples/Example01_NativeFunctions/Example01_NativeFunctions.csproj new file mode 100644 index 0000000000..5a862be5fb --- /dev/null +++ b/SemanticKernelSamples/Example01_NativeFunctions/Example01_NativeFunctions.csproj @@ -0,0 +1,14 @@ + + + + Exe + net7.0 + enable + enable + + + + + + + diff --git a/SemanticKernelSamples/Example01_NativeFunctions/Program.cs b/SemanticKernelSamples/Example01_NativeFunctions/Program.cs new file mode 100644 index 0000000000..1bdf501e03 --- /dev/null +++ b/SemanticKernelSamples/Example01_NativeFunctions/Program.cs @@ -0,0 +1,9 @@ +using Microsoft.SemanticKernel.Skills.Core; + +// 创建技能 +var text = new TextSkill(); + +// 直接调用技能里的方法 +var result = text.Uppercase("ciao"); + +Console.WriteLine(result); diff --git a/SemanticKernelSamples/SemanticKernelSamples.sln b/SemanticKernelSamples/SemanticKernelSamples.sln new file mode 100644 index 0000000000..4a1ea515eb --- /dev/null +++ b/SemanticKernelSamples/SemanticKernelSamples.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.31903.59 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example01_NativeFunctions", "Example01_NativeFunctions\Example01_NativeFunctions.csproj", "{F7325FD9-216A-4A77-8208-EFADE8A2508C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F7325FD9-216A-4A77-8208-EFADE8A2508C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F7325FD9-216A-4A77-8208-EFADE8A2508C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F7325FD9-216A-4A77-8208-EFADE8A2508C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F7325FD9-216A-4A77-8208-EFADE8A2508C}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal