Skip to content

Commit

Permalink
Example01 NativeFunctions
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi committed Aug 27, 2023
1 parent 834e171 commit eef729b
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SemanticKernel" Version="0.20.230821.4-preview" />
</ItemGroup>

</Project>
9 changes: 9 additions & 0 deletions SemanticKernelSamples/Example01_NativeFunctions/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using Microsoft.SemanticKernel.Skills.Core;

// 创建技能
var text = new TextSkill();

// 直接调用技能里的方法
var result = text.Uppercase("ciao");

Console.WriteLine(result);
22 changes: 22 additions & 0 deletions SemanticKernelSamples/SemanticKernelSamples.sln
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit eef729b

Please sign in to comment.