Skip to content

Commit

Permalink
Add support for nuget package generation
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Jun 15, 2021
1 parent a1f2a0c commit c46dd91
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
8 changes: 0 additions & 8 deletions Directory.Build.props

This file was deleted.

7 changes: 5 additions & 2 deletions examples/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
<PropertyGroup>
<Authors>Christian Kothe</Authors>
<TargetFramework>netstandard2.0</TargetFramework>
<Version>1.12.2</Version>
<LangVersion>8.0</LangVersion>
</PropertyGroup>
</Project>
</Project>

11 changes: 10 additions & 1 deletion liblsl.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@
<Version>2.0</Version>
<DefaultItemExcludes>$(DefaultItemExcludes);examples/**</DefaultItemExcludes>
<AssemblyName>lsl_csharp</AssemblyName>
<Copyright>Copyright © Christian Kothe 2021</Copyright>
<ProjectUrl>https://github.com/labstreaminglayer/liblsl-Csharp</ProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageTags>LSL Lab Streaming Layer</PackageTags>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<RuntimeIdentifiers>win-x86;win-x64;osx-x64;linux-x64</RuntimeIdentifiers>
</PropertyGroup>
</Project>

<ItemGroup>
<Content Include="runtimes\**" Exclude="runtimes\README.md" PackagePath="runtimes" />
</ItemGroup>
</Project>
3 changes: 3 additions & 0 deletions runtimes/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Runtime Identifier Dependencies

The NuGet package for the C# bindings includes binary distributions for major platform runtimes targeted by [liblsl](https://github.com/sccn/liblsl). To successfully build the package, these binaries need to be downloaded from [liblsl releases](https://github.com/sccn/liblsl/releases) and included in this folder following the RID naming conventions outlined in the [RID Catalog](https://docs.microsoft.com/en-us/dotnet/core/rid-catalog).

0 comments on commit c46dd91

Please sign in to comment.