For MixedReality app I need to access the "Sensor Streaming" for depth image. In order to use the API for sensor streaming I have to turn on the ToolVersion from "14" to "15", for example
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
in project file.
By default ToolVersion="14", thus will result in "Access Denied" exception by calling MediaCapture.InitializeAsync(mySettings); Unity (I tested frome Unity 2017 to the newest Unity 2018.2.9) exports UWP Projects all with ToolVersion="14".
Modifying the Version manually to 15 will cause System.runtime conflicts to other dlls of UnityEngine. The AssembleConverter.exe provided by Unity is not able to convert the existing managed code. How could I solve this problem?
I could only use standalone UWP to access the depth sensor, not the UWP exported by the unity!