Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RemotingHostSample Desktop sample not working with Visual studio 2017 #317

Open
shekhar331 opened this issue Nov 23, 2018 · 5 comments
Open

Comments

@shekhar331
Copy link

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.

@shekhar331 shekhar331 changed the title RemotingHostSample Desktop sample not working with Windows 2017 RemotingHostSample Desktop sample not working with Visual studio 2017 Nov 23, 2018
@chakitp
Copy link

chakitp commented Nov 26, 2018

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
Copy link

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
Copy link

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
Copy link

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
Copy link

IanET commented Dec 8, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants