Build and Run - Universal 10

Having problems with Build and Run Windows Store->Universal 10 (XAML) on Unity 5.2f3. I’m able to successfully Build and then open the .sln in Visual Studio and run it from there, but when I do Build and Run it freezes up Unity with the following dialog and I have to kill Unity:

2289760--153977--upload_2015-9-10_11-21-38.png

Just using ‘Build’ would maybe be okay except it seems to only want to do Development Builds from Visual Studio, even when I set it to Release.

Set configuration to Master.

Thanks, that does indeed allow it to run in non dev mode (though performance is still terrible… will have to profile that)

But what about Build and Run hanging? I looked through the editor log and don’t see anything that stands out.

If you look at task manager, it’s probably .NET native compiling your managed assemblies… That usually takes excessive amount of time and is only enabled for Master builds. Build & Run uses Master config for non-development builds, and Release config for development builds. If you check development build, it should build much faster.

Ahh, you’re right I just wasn’t waiting long enough. It finally finished and gave me the following error:

Exception: Failed to build Visual Studio project using arguments 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\..\IDE\devenv.exe "C:\\projects\\code\\P4\\noethis-P4\\Prune\\Build\\Win-UAP\Prune.sln" /deploy "Release|x86"'.
Output:

ApplicationLauncherImpl.RunVS2015 (System.String args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:321)
ApplicationLauncherImpl.RegisterLayoutOnLocalMachineUsingVS2015 () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:235)
ApplicationLauncherImpl.Run () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:194)
ApplicationLauncher.BuildAndRun (BuildLaunchPlayerArgs args, WSASDK wsaSDK) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:59)
ApplicationLauncher.BuildAndRun (BuildLaunchPlayerArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ApplicationLauncher.cs:46)
UnityEditor.Metro.BuildPostprocessor.LaunchPlayer (BuildLaunchPlayerArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:72)
UnityEditor.PostprocessBuildPlayer.Launch (BuildTarget target, System.String path, System.String productName, BuildOptions options) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:282)
UnityEditor.HostView:OnGUI()