Skip to content

Commit c46dd91

Browse files
committed
Add support for nuget package generation
Fixes #2
1 parent a1f2a0c commit c46dd91

4 files changed

Lines changed: 18 additions & 11 deletions

File tree

Directory.Build.props

Lines changed: 0 additions & 8 deletions
This file was deleted.

examples/Directory.Build.props

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<Project>
2-
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
32
<PropertyGroup>
3+
<Authors>Christian Kothe</Authors>
4+
<TargetFramework>netstandard2.0</TargetFramework>
5+
<Version>1.12.2</Version>
46
<LangVersion>8.0</LangVersion>
57
</PropertyGroup>
6-
</Project>
8+
</Project>
9+

liblsl.csproj

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77
<Version>2.0</Version>
88
<DefaultItemExcludes>$(DefaultItemExcludes);examples/**</DefaultItemExcludes>
99
<AssemblyName>lsl_csharp</AssemblyName>
10+
<Copyright>Copyright © Christian Kothe 2021</Copyright>
11+
<ProjectUrl>https://github.com/labstreaminglayer/liblsl-Csharp</ProjectUrl>
12+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
13+
<PackageTags>LSL Lab Streaming Layer</PackageTags>
14+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
15+
<RuntimeIdentifiers>win-x86;win-x64;osx-x64;linux-x64</RuntimeIdentifiers>
1016
</PropertyGroup>
11-
</Project>
1217

18+
<ItemGroup>
19+
<Content Include="runtimes\**" Exclude="runtimes\README.md" PackagePath="runtimes" />
20+
</ItemGroup>
21+
</Project>

runtimes/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Runtime Identifier Dependencies
2+
3+
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 commit comments

Comments
 (0)