Mixedrealitytoolkit-unity: MSBuild error (code=1)

Created on 8 Sep 2017  路  9Comments  路  Source: microsoft/MixedRealityToolkit-Unity

I'm attempting to deploy my app from Unity to HL and getting this error with no explanation:

MSBuild error (code = 1) UnityEngine.Debug:LogError(Object) HoloToolkit.Unity.BuildDeployTools:BuildAppxFromSLN(String, String, Boolean, String, String, Boolean, Boolean) (at Assets/HoloToolkit/Build/Editor/BuildDeployTools.cs:253) HoloToolkit.Unity.BuildDeployWindow:BuildAll(Boolean) (at Assets/HoloToolkit/Build/Editor/BuildDeployWindow.cs:650) HoloToolkit.Unity.<OnGUI>c__AnonStorey0:<>m__0() (at Assets/HoloToolkit/Build/Editor/BuildDeployWindow.cs:181) UnityEditor.EditorApplication:Internal_CallDelayFunctions()

Any thoughts? I just updated to the toolkit release for Unity 2017.1.1f1 because I thought it was supposed to fix MSBuild issues.

Question

All 9 comments

For further reference, I also attempted to build in VS17. Here is the error there:

C:\Program Files (x86)\MSBuild\15.0\.Net\CoreRuntime\Microsoft.Net.CoreRuntime.targets(193,9): error : Framework resource extraction failed. This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.

because I thought it was supposed to fix MSBuild issues.

It did.

What's your build settings and SDK target?

Sorry for the delay. Here is what the HLTK build window set them as:
image
I tried adjusting them as well but same error with these:
image

Try un checking Unity C# Projects, use the 14393 sdk, and use the D3D build type.

Then open using Visual Studio and try building from there. And share the output window log.

I think the issue you're running into might be related to your code base.
The toolkit doesn't rely on any cryptographic libraries.

Thanks, that allowed me to build successfully in Unity. It seems like my VS17 install was missing part of the Windows 10 SDK that it didn't notify me about earlier. I'll complete the install and report back if that fixes my issues.

Still no luck. My code also isn't using cryptographic libraries either, so I'll have to do some digging to see where this could be coming from.
If it's helpful, I'm running into this issue after rewriting my .NET networking code to instead do something similar to the CustomMessages.cs example code. I can provide the code or snippets if anyone has some insight, but otherwise I guess I'll have to go through it myself.

3>------ Build started: Project: ARInterface, Configuration: Release x86 ------
3>C:\Users\sbagchi\Documents\Vuforia\ARDemo\ARInterface-Unity\ARInterface\UWP\ARInterface\App.cs(56,13,56,71): warning CS0618: 'ApplicationView.SuppressSystemOverlays.set' is obsolete: 'Use the TryEnterFullScreen method and IsFullScreenMode property instead of SuppressSystemOverlays. For more info, see MSDN.'
3> ARInterface -> C:\Users\sbagchi\Documents\Vuforia\ARDemo\ARInterface-Unity\ARInterface\UWP\ARInterface\bin\x86\Release\ARInterface.exe
3>C:\Program Files (x86)\MSBuild\15.0\.Net\CoreRuntime\Microsoft.Net.CoreRuntime.targets(193,9): error : Framework resource extraction failed. This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.
========== Build: 2 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Progress! I followed these steps to remove the cryptographic error and was able to build successfully. I got this error the first time I attempted to deploy, but it seems to have gone away on successive tries?

image

The app isn't working as expected (Unity UI elements aren't responsive, Vuforia image recognition has some unexpected behavior, etc.), but that's a different issue, so I'm going to close this. Thanks for the help @StephenHodgson!

Edit:
In Unity, the HLTK Build Window is still throwing the same MSBuild error as before. Should I reopen the issue until that is resolved?

Unless you can get reproducible steps for the error coming from something in the toolkit, I'd leave this closed.

The activation request is because your certificate is either expired or needs to be updated via player settings.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jimstack picture jimstack  路  3Comments

StephenHodgson picture StephenHodgson  路  3Comments

ritijain picture ritijain  路  3Comments

reillydonovan picture reillydonovan  路  3Comments

markgrossnickle picture markgrossnickle  路  3Comments