Docs for LOC SDK for C Sharp
This is the docs for FST Network's LOC Logic SDK for C#, a helper package and client interface for C# logic.
For docs of earlier SDK releases, see release note.
For main docs of LOC itself, see Docs for Logic Operating Centre.
Target SDK Version
0.0.x
Supported Language
Language | Version |
---|---|
C# | 11 or earlier |
Runtime | Version |
---|---|
.NET | 7 |
Studio Support
The C# SDK and its runtime can be included in LOC via licensing and will be automatically imported for the logic building in LOC Studio. The users do not need to install or setup additional packages.
Studio Project Configuration
The following default project file in logic source is shared by all cloud logic:
Logic.csproj
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PublishAot>true</PublishAot>
<AssemblyName>lib_loc_logic</AssemblyName>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="FSTNetwork.LOC.Logic.Sdk" Version="0.0.18" />
<PackageReference Include="ILRepack.Lib.MSBuild.Task" Version="2.0.26" />
</ItemGroup>
</Project>
Additional third-party packages can be added under ItemGroup
.
info
The ImplicitUsings
option implicitly adds a list of namespaces for all logic.
Local Installation for CLI
Requires .NET SDK
7.0.404
and .NET runtime7.0.14
dotnet add package FSTNetwork.LOC.Logic.Sdk --version 0.0.18