Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

How to install a serialization package(JSON or ProtoBuff) for HoloLens.

Hi,

I need an easy way to send data to my server from HoloLens.
Raw byte conversion is not scalable and NOT FUN.

I tried to install ProtoBuff(https://www.nuget.org/packages/Google.Protobuf) and JSON(https://www.nuget.org/packages/Newtonsoft.Json/) but I failed.

When I run

PM> Install-Package Google.Protobuf

I get

Attempting to gather dependency information for package 'Google.Protobuf.3.3.0' with respect to project 'HoloToolkit-Unity', targeting '.NETFramework,Version=v3.5,Profile=Unity Subset v3.5'
Attempting to resolve dependencies for package 'Google.Protobuf.3.3.0' with DependencyBehavior 'Lowest'
Resolving actions to install package 'Google.Protobuf.3.3.0'
Resolved actions to install package 'Google.Protobuf.3.3.0'
 GET https://api.nuget.org/packages/google.protobuf.3.3.0.nupkg
 OK https://api.nuget.org/packages/google.protobuf.3.3.0.nupkg 302ms
Installing Google.Protobuf 3.3.0.
Install failed. Rolling back...
Package 'Google.Protobuf.3.3.0' does not exist in project 'HoloToolkit-Unity'
Package 'Google.Protobuf.3.3.0' does not exist in folder 'C:\Users\HoloToolkit-Unity\packages'
Install-Package : Could not install package 'Google.Protobuf 3.3.0'. You are
trying to install this package into a project that targets
'.NETFramework,Version=v3.5,Profile=Unity Subset v3.5', but the package does
not contain any assembly references or content files that are compatible with
that framework. For more information, contact the package author.
At line:1 char:1
+ Install-Package Google.Protobuf
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
   + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManage
  ment.PowerShellCmdlets.InstallPackageCommand

For JSON,

PM> Install-Package Newtonsoft.Json
Attempting to gather dependency information for package 'Newtonsoft.Json.10.0.2' with respect to project 'HoloToolkit-Unity', targeting '.NETFramework,Version=v3.5,Profile=Unity Subset v3.5'
Attempting to resolve dependencies for package 'Newtonsoft.Json.10.0.2' with DependencyBehavior 'Lowest'
Resolving actions to install package 'Newtonsoft.Json.10.0.2'
Resolved actions to install package 'Newtonsoft.Json.10.0.2'
Install failed. Rolling back...
Package 'Newtonsoft.Json.10.0.2' does not exist in project 'HoloToolkit-Unity'
Package 'Newtonsoft.Json.10.0.2' does not exist in folder 'C:\Users\HoloToolkit-Unity\packages'
Install-Package : Could not install package 'Newtonsoft.Json 10.0.2'. You are
trying to install this package into a project that targets
'.NETFramework,Version=v3.5,Profile=Unity Subset v3.5', but the package does
not contain any assembly references or content files that are compatible with
that framework. For more information, contact the package author.
At line:1 char:1
+ Install-Package Newtonsoft.Json
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
   + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManage
  ment.PowerShellCmdlets.InstallPackageCommand

Do I need to build them from sources? Then how?

Sign In or Register to comment.