microsoft / MixedRealityCompanionKit

This is a MixedRealityToolkit style repository for code bits and components that may not run directly on Microsoft HoloLens or immersive headsets but instead pair with them to build experiences.
MIT License
591 stars 286 forks source link

RemotingHostSample Desktop sample not working with Visual studio 2017 #317

Open shekhar331 opened 5 years ago

shekhar331 commented 5 years ago

I have DirectX application ready and Running, I have developed it in Visual Studio 2017 (V141 features used). Now I want to add the Hololens remoting to complete the project. The project does not compile and throws several errors when compiled with v141. Even the Nuget does not seem to be updated.

chakitp commented 5 years ago

I also tried working on the sample Project for desk Top Desktop, and Getting Same Errors Wile Building..

Error: fatal error C1107: could not find assembly 'platform.winmd': please specify the assembly search path using /AI or by setting the LIBPATH environment variable 1>Done building project "RemotingHostSampleDesktop.vcxproj" -- FAILED.

joschemd commented 5 years ago

Experiencing this too first hand .. clean pull and attempted to compile with 2017 for the Desktop Sample and receiving this.

Visual Studio version: 15.9.2 Platform Toolset: Visual Studio 2017 (v141) Windows SDK version: 10.0.17763.0

andrewsolis commented 5 years ago

Experienced this as well. I cloned the repo in Visual Studio and it gave compilation errors.

Visual Studio Version: 15.9.3
Platform Toolset: Visual Studio 2017 (v141)
.Net Framework:  4.7.03056
Windows SDK Version: 10.0.17763

Let me know if there is anything else I can provide.

xiaoguid commented 5 years ago

Quick fix for building on Visual Studio 2017 (GUI or manual edit):

The problem is that "platform.winmd" location was changed in VS2017. Desktop projects mixing C++/CX should update the "additional #using directories" to point from $(VCInstallDir) to the new location $(VCIDEInstallDir).

GUI

Update the directory entry in: RemotingHostSampleDesktop -> Properties -> C/C++ / General -> Additional #using Directories From $(VCInstallDir)\vcpackages to the VS2017 location $(VCIDEInstallDir)\vcpackages

Manual Edit:

Edit the file RemotingHostSampleDesktop.vcxproj and change:

$(FrameworkSdkDir)\UnionMetadata;$(VCInstallDir)\vcpackages;%(AdditionalUsingDirectories)

To:

$(FrameworkSdkDir)\UnionMetadata;$(VCIDEInstallDir)\vcpackages;%(AdditionalUsingDirectories)
IanET commented 4 years ago

Just btw, there's a new sample for HoloLens 2 here https://github.com/microsoft/MixedReality-HolographicRemoting-Samples