Mixedrealitytoolkit-unity: Multiple errors on build

Created on 18 Apr 2017  路  12Comments  路  Source: microsoft/MixedRealityToolkit-Unity

I was having issues with the latest download so I created a blank project with just the Holotoolkit package. Applied settings.

Versions:
Unity 5.5.0f3
VS 2017 15.1 (26403.7)

Build:
Universal 10
Holoens
D3D
Unity C# Projects

Error list:
Assets\HoloToolkit-Examples\SharingWithUNET\Scripts\GenericNetworkTransmitter.cs(114,57): error CS0246: The type or namespace name 'StreamSocketListener' could not be found (are you missing a using directive or an assembly reference?)

Assets\HoloToolkit-Examples\SharingWithUNET\Scripts\GenericNetworkTransmitter.cs(114,86): error CS0246: The type or namespace name 'StreamSocketListenerConnectionReceivedEventArgs' could not be found (are you missing a using directive or an assembly reference?)

Assets\HoloToolkit-Examples\SharingWithUNET\Scripts\GenericNetworkTransmitter.cs(159,55): error CS0246: The type or namespace name 'IAsyncAction' could not be found (are you missing a using directive or an assembly reference?)

Assets\HoloToolkit-Examples\SharingWithUNET\Scripts\GenericNetworkTransmitter.cs(159,79): error CS0246: The type or namespace name 'AsyncStatus' could not be found (are you missing a using directive or an assembly reference?)

Assets\HoloToolkit-Examples\SharingWithUNET\Scripts\GenericNetworkTransmitter.cs(81,17): error CS0246: The type or namespace name 'StreamSocket' could not be found (are you missing a using directive or an assembly reference?)

Assets\HoloToolkit-Examples\SharingWithUNET\Scripts\GenericNetworkTransmitter.cs(86,17): error CS0246: The type or namespace name 'StreamSocketListener' could not be found (are you missing a using directive or an assembly reference?)

Assets\HoloToolkit\SpatialMapping\Scripts\RemoteMapping\RemoteMeshSource.cs(140,45): error CS0246: The type or namespace name 'IAsyncAction' could not be found (are you missing a using directive or an assembly reference?)

Assets\HoloToolkit\SpatialMapping\Scripts\RemoteMapping\RemoteMeshSource.cs(140,69): error CS0246: The type or namespace name 'AsyncStatus' could not be found (are you missing a using directive or an assembly reference?)

Assets\HoloToolkit\Utilities\Scripts\TextToSpeechManager.cs(228,51): error CS0246: The type or namespace name 'IAsyncOperation<>' could not be found (are you missing a using directive or an assembly reference?)

Assets\HoloToolkit\Utilities\Scripts\TextToSpeechManager.cs(228,67): error CS0246: The type or namespace name 'SpeechSynthesisStream' could not be found (are you missing a using directive or an assembly reference?)

Assets\HoloToolkit\Utilities\Scripts\TextToSpeechManager.cs(66,17): error CS0246: The type or namespace name 'SpeechSynthesizer' could not be found (are you missing a using directive or an assembly reference?)

Assets\HoloToolkit\Utilities\Scripts\TextToSpeechManager.cs(67,17): error CS0246: The type or namespace name 'VoiceInformation' could not be found (are you missing a using directive or an assembly reference?)
v

Assets\HoloToolkit\SpatialMapping\Scripts\RemoteMapping\RemoteMeshSource.cs(182,37): error CS0246: The type or namespace name 'IAsyncOperation<>' could not be found (are you missing a using directive or an assembly reference?)

Assets\HoloToolkit\SpatialMapping\Scripts\RemoteMapping\RemoteMeshSource.cs(182,70): error CS0246: The type or namespace name 'AsyncStatus' could not be found (are you missing a using directive or an assembly reference?)

Assets\HoloToolkit\SpatialMapping\Scripts\RemoteMapping\RemoteMeshSource.cs(31,17): error CS0246: The type or namespace name 'StreamSocket' could not be found (are you missing a using directive or an assembly reference?)

All 12 comments

Which scene are you building with?

I had it in an existing project and it stopped working. So I downloaded the latest version, packaged it, and imported it into an empty project. At first I just tried a blank scene with just the camera prefab. Then I tried Color Picker. Same bugs all around. Could it be a problem with the "Windows" namespace?

Yeah it looks like build settings errors of some sort, which is why you'd get the windows namespace errors.

Try updating the .net core from the Nuget Package Manager...

Also, I haven't had much luck with visual studio 17 and unity prior to 5.6

If you're not having any issues with 5.6 then I will just bump up.

Nope. Let me know how that goes.

That fixed everything! Still kinda curious what the build issues are. I looked through and nothing jumped out.

I looked into 612 yesterday and it didn't seem to solve the issue. I just suggest everybody move to 5.6.

I suggest only moving to 5.6 if using vs 2017

The problem with 5.6 is that there's still a blocker with the WorldAnchorManager (https://forums.hololens.com/discussion/7203/vs2017-u5-6-crash-winrtscriptingobjectwrapper-internaladdref-reference-count-cannot-be-zero) which is not yet fixed.

I've been using the 10.0.1.4.14393 Win SDK target build in the meantime. Thanks for the update.

Was this page helpful?
0 / 5 - 0 ratings