build: revise build informations.

This commit is contained in:
Yaohui Liu 2023-05-11 13:57:57 +08:00
parent 856d6549de
commit 118d410d52
No known key found for this signature in database
GPG Key ID: E86D01E1809BD23E
4 changed files with 11 additions and 12 deletions

View File

@ -8,7 +8,7 @@
<Platforms>AnyCPU;x64</Platforms>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<Version>0.1.0</Version>
<Version>0.1.9</Version>
<Authors>Yaohui Liu, Haiping Chen</Authors>
<Company>SciSharp STACK</Company>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
@ -42,16 +42,10 @@
</ItemGroup>
<ItemGroup>
<Content Include="./lib/llama.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<Pack>true</Pack>
<PackagePath>lib\$(TargetFramework)</PackagePath>
</Content>
<Content Include="./lib/libllama.so">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<Pack>true</Pack>
<PackagePath>lib\$(TargetFramework)</PackagePath>
</Content>
<Content Include="runtimes\*"
CopyToOutputDirectory="Always"
Pack="true"
PackagePath="runtimes\" />
<!--<Content Include="llama.so">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<PackageCopyToOutput>true</PackageCopyToOutput>

View File

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
@ -8,7 +9,11 @@ namespace LLama.Native
using llama_token = Int32;
internal unsafe partial class NativeApi
{
private const string libraryName = "lib/libllama";
static NativeApi()
{
}
private const string libraryName = "libllama";
[DllImport(libraryName)]
public static extern LLamaContextParams llama_context_default_params();