Windows 10 Universal plateform build fixes #42
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
This PR fixes the native C# dll to be able to be built with Visual Studio on a Windows 10 Universal Project.
With Unity, we can build games for all plateforms, including Windows Store. The Windows Store C# API is limited because apps are sandboxed. So the current OSVR.ClientKit dll can't be used with Unity (Win32 calls).
We know that OSVR doesn't support Windows Store, but without those changes, it's impossible for a developer to deploy a project to this platform. The result is two DLLs, the one who already know and another who is just used by a Windows 10 project.
For the Unity SDK, I recommand you to create a new folder called
windows10
in thePlugins
folder and copy the new dll into it. Set its build target to Windows Store only (not editor, runtime, just Windows Store). The build target of the current dll have to be changed to exclude Windows Store.