Skip to content

Commit

Permalink
Fixed C# bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavidberger committed Aug 30, 2020
1 parent d071dd5 commit 6a8457d
Show file tree
Hide file tree
Showing 8 changed files with 183 additions and 674 deletions.
98 changes: 12 additions & 86 deletions bindings/cs/Demo/Demo.csproj
Original file line number Diff line number Diff line change
@@ -1,86 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{D3A43A2F-03B7-4A10-928F-686790036838}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>Demo</RootNamespace>
<AssemblyName>Demo</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\libsurvive.net\libsurvive.net.csproj">
<Project>{da1b12d7-a121-4d40-b363-4893e4f88b8a}</Project>
<Name>libsurvive.net</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.6.1">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4.6.1 %28x86 and x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
<Project Sdk="Microsoft.NET.Sdk">

<ItemGroup>
<ProjectReference Include="..\libsurvive.net\libsurvive.net.csproj" />
</ItemGroup>

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

</Project>
18 changes: 6 additions & 12 deletions bindings/cs/Demo/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,10 @@ class Program
{
static void Main(string[] args)
{
LibSurViveAPI api = LibSurViveAPI.Instance;

var so = api.GetSurviveObjectByName("HMD");

}

public static void HMDUpdate(int ObjectID, Vector3 pos)
{

}

}
SurviveContext api = new SurviveContext(args);
while (api.Poll() == 0) {
}
api.Close();
}
}
}
36 changes: 0 additions & 36 deletions bindings/cs/Demo/Properties/AssemblyInfo.cs

This file was deleted.

115 changes: 48 additions & 67 deletions bindings/cs/LibSurviveBinding.sln
Original file line number Diff line number Diff line change
@@ -1,67 +1,48 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2003
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Demo", "Demo\Demo.csproj", "{D3A43A2F-03B7-4A10-928F-686790036838}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "libsurvive.net", "libsurvive.net\libsurvive.net.csproj", "{DA1B12D7-A121-4D40-B363-4893E4F88B8A}"
ProjectSection(ProjectDependencies) = postProject
{435CFD2C-8724-42EE-8FDE-71EF7D2C6B2F} = {435CFD2C-8724-42EE-8FDE-71EF7D2C6B2F}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libsurvive", "..\..\winbuild\libsurvive\libsurvive.vcxproj", "{435CFD2C-8724-42EE-8FDE-71EF7D2C6B2F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D3A43A2F-03B7-4A10-928F-686790036838}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D3A43A2F-03B7-4A10-928F-686790036838}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D3A43A2F-03B7-4A10-928F-686790036838}.Debug|x64.ActiveCfg = Debug|Any CPU
{D3A43A2F-03B7-4A10-928F-686790036838}.Debug|x64.Build.0 = Debug|Any CPU
{D3A43A2F-03B7-4A10-928F-686790036838}.Debug|x86.ActiveCfg = Debug|Any CPU
{D3A43A2F-03B7-4A10-928F-686790036838}.Debug|x86.Build.0 = Debug|Any CPU
{D3A43A2F-03B7-4A10-928F-686790036838}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D3A43A2F-03B7-4A10-928F-686790036838}.Release|Any CPU.Build.0 = Release|Any CPU
{D3A43A2F-03B7-4A10-928F-686790036838}.Release|x64.ActiveCfg = Release|Any CPU
{D3A43A2F-03B7-4A10-928F-686790036838}.Release|x64.Build.0 = Release|Any CPU
{D3A43A2F-03B7-4A10-928F-686790036838}.Release|x86.ActiveCfg = Release|Any CPU
{D3A43A2F-03B7-4A10-928F-686790036838}.Release|x86.Build.0 = Release|Any CPU
{DA1B12D7-A121-4D40-B363-4893E4F88B8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DA1B12D7-A121-4D40-B363-4893E4F88B8A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DA1B12D7-A121-4D40-B363-4893E4F88B8A}.Debug|x64.ActiveCfg = Debug|Any CPU
{DA1B12D7-A121-4D40-B363-4893E4F88B8A}.Debug|x64.Build.0 = Debug|Any CPU
{DA1B12D7-A121-4D40-B363-4893E4F88B8A}.Debug|x86.ActiveCfg = Debug|Any CPU
{DA1B12D7-A121-4D40-B363-4893E4F88B8A}.Debug|x86.Build.0 = Debug|Any CPU
{DA1B12D7-A121-4D40-B363-4893E4F88B8A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DA1B12D7-A121-4D40-B363-4893E4F88B8A}.Release|Any CPU.Build.0 = Release|Any CPU
{DA1B12D7-A121-4D40-B363-4893E4F88B8A}.Release|x64.ActiveCfg = Release|Any CPU
{DA1B12D7-A121-4D40-B363-4893E4F88B8A}.Release|x64.Build.0 = Release|Any CPU
{DA1B12D7-A121-4D40-B363-4893E4F88B8A}.Release|x86.ActiveCfg = Release|Any CPU
{DA1B12D7-A121-4D40-B363-4893E4F88B8A}.Release|x86.Build.0 = Release|Any CPU
{435CFD2C-8724-42EE-8FDE-71EF7D2C6B2F}.Debug|Any CPU.ActiveCfg = Debug|x64
{435CFD2C-8724-42EE-8FDE-71EF7D2C6B2F}.Debug|Any CPU.Build.0 = Debug|x64
{435CFD2C-8724-42EE-8FDE-71EF7D2C6B2F}.Debug|x64.ActiveCfg = Debug|x64
{435CFD2C-8724-42EE-8FDE-71EF7D2C6B2F}.Debug|x64.Build.0 = Debug|x64
{435CFD2C-8724-42EE-8FDE-71EF7D2C6B2F}.Debug|x86.ActiveCfg = Debug|Win32
{435CFD2C-8724-42EE-8FDE-71EF7D2C6B2F}.Debug|x86.Build.0 = Debug|Win32
{435CFD2C-8724-42EE-8FDE-71EF7D2C6B2F}.Release|Any CPU.ActiveCfg = Release|Win32
{435CFD2C-8724-42EE-8FDE-71EF7D2C6B2F}.Release|x64.ActiveCfg = Release|x64
{435CFD2C-8724-42EE-8FDE-71EF7D2C6B2F}.Release|x64.Build.0 = Release|x64
{435CFD2C-8724-42EE-8FDE-71EF7D2C6B2F}.Release|x86.ActiveCfg = Release|Win32
{435CFD2C-8724-42EE-8FDE-71EF7D2C6B2F}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {CA47A8D6-3379-4ABA-927E-86BBDDE1D304}
EndGlobalSection
EndGlobal

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26124.0
MinimumVisualStudioVersion = 15.0.26124.0
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "libsurvive.net", "libsurvive.net\libsurvive.net.csproj", "{EF963623-9F00-40BC-8FC7-1BA5015070A5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Demo", "Demo\Demo.csproj", "{D1ADFCE0-613D-4BD7-B28A-9DB0259F9633}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{EF963623-9F00-40BC-8FC7-1BA5015070A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EF963623-9F00-40BC-8FC7-1BA5015070A5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EF963623-9F00-40BC-8FC7-1BA5015070A5}.Debug|x64.ActiveCfg = Debug|Any CPU
{EF963623-9F00-40BC-8FC7-1BA5015070A5}.Debug|x64.Build.0 = Debug|Any CPU
{EF963623-9F00-40BC-8FC7-1BA5015070A5}.Debug|x86.ActiveCfg = Debug|Any CPU
{EF963623-9F00-40BC-8FC7-1BA5015070A5}.Debug|x86.Build.0 = Debug|Any CPU
{EF963623-9F00-40BC-8FC7-1BA5015070A5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EF963623-9F00-40BC-8FC7-1BA5015070A5}.Release|Any CPU.Build.0 = Release|Any CPU
{EF963623-9F00-40BC-8FC7-1BA5015070A5}.Release|x64.ActiveCfg = Release|Any CPU
{EF963623-9F00-40BC-8FC7-1BA5015070A5}.Release|x64.Build.0 = Release|Any CPU
{EF963623-9F00-40BC-8FC7-1BA5015070A5}.Release|x86.ActiveCfg = Release|Any CPU
{EF963623-9F00-40BC-8FC7-1BA5015070A5}.Release|x86.Build.0 = Release|Any CPU
{D1ADFCE0-613D-4BD7-B28A-9DB0259F9633}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D1ADFCE0-613D-4BD7-B28A-9DB0259F9633}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D1ADFCE0-613D-4BD7-B28A-9DB0259F9633}.Debug|x64.ActiveCfg = Debug|Any CPU
{D1ADFCE0-613D-4BD7-B28A-9DB0259F9633}.Debug|x64.Build.0 = Debug|Any CPU
{D1ADFCE0-613D-4BD7-B28A-9DB0259F9633}.Debug|x86.ActiveCfg = Debug|Any CPU
{D1ADFCE0-613D-4BD7-B28A-9DB0259F9633}.Debug|x86.Build.0 = Debug|Any CPU
{D1ADFCE0-613D-4BD7-B28A-9DB0259F9633}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D1ADFCE0-613D-4BD7-B28A-9DB0259F9633}.Release|Any CPU.Build.0 = Release|Any CPU
{D1ADFCE0-613D-4BD7-B28A-9DB0259F9633}.Release|x64.ActiveCfg = Release|Any CPU
{D1ADFCE0-613D-4BD7-B28A-9DB0259F9633}.Release|x64.Build.0 = Release|Any CPU
{D1ADFCE0-613D-4BD7-B28A-9DB0259F9633}.Release|x86.ActiveCfg = Release|Any CPU
{D1ADFCE0-613D-4BD7-B28A-9DB0259F9633}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
Loading

0 comments on commit 6a8457d

Please sign in to comment.