microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
6.01k stars 2.12k forks source link

Can't build appx from solution. #840

Closed Hitomilras closed 7 years ago

Hitomilras commented 7 years ago

I trying to build APPX from solution, but i getting error code -1 while building appx...

This console appears, show me this error and close automatically. image

Tryed to build with VS 2015 on clean windows (virtual machine), on VS 2017, on VS 2017 with 2015 installed too, nothing good happens... Error code -1.

StephenHodgson commented 7 years ago

Can't read the Russian, but it looks like you're building XAML, correct?

Hitomilras commented 7 years ago

ohh, i understand. No, i don't trying to build XAML. In project settings i see D3D. But maybe by default Holotoolkit build window use XAML.

StephenHodgson commented 7 years ago

No it's up to the build options. Both XAML and D3D should work.

Please double check and make sure you have all the windows 10 sdks installed.

Hitomilras commented 7 years ago

Checked. I install all... And download latest version of holotoolkit (for 2017.1.f03 unity). Now getting this error: MSBuild.exe is missing or invalid (path=). Note that the default version is 14.0

Strange :D Calculated path - just empty string. MSBuild installed in Visual studio and others packages too) Visual studio 2017 installed) How it's possible :D?

StephenHodgson commented 7 years ago

Could be that our paths are hard coded in English, and your path may include cyrillic.

StephenHodgson commented 7 years ago

Be sure to follow getting started guidelines.

Hitomilras commented 7 years ago

Build appx from solution in VS. Tomorrow check if it works fine on the hololens.

jessemcculloch commented 7 years ago

@Hitomilras - Did you have any update on this?

Hitomilras commented 7 years ago

All works fine if just build solution in VS...) But build appx button in Unity doesn't work)

But i didn't try last fix for this issue.

nick7ikin commented 7 years ago

Faced the same error message (MSBuild.exe is missing or invalid (path=). Note that the default version is 14.0)

Try to install to Visual Studio MSBuilder and Windows 10 SDK* packages

XPav commented 7 years ago

I got this error if I had SDK 10.0.14393.0 selected. Changing SDK to 10.0.15063.0 changed the MSBuild version to 15, and then it built.

I do not have Visual Studio 2015 installed, but I do have the 14393 SDK installed via Visual Studio 2017.

StephenHodgson commented 7 years ago

@XPav This was fixed in #981 but it's not in the latest release.

thewizarder commented 6 years ago

I still get this using the MRTK when I try to build an appx package fro inside Unity