Search Issue Tracker
Fixed in 5.6.0
Votes
0
Found in
5.6.0b8
Issue ID
879757
Regression
Yes
Can't switch to 'Windows Store' platform when Windows 10 SDK is not installed
1. What happened
When trying to switch to 'Windows Store' platform in Build Settings, I'm getting exception in console:
DirectoryNotFoundException: Directory 'C:\Program Files (x86)\Windows Kits\10\Platforms\UAP' not found.
System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:514)
System.IO.Directory.GetFiles (System.String path, System.String searchPattern) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:308)
System.IO.Directory.GetFilesRecurse (System.String path, System.String searchPattern, System.Collections.ArrayList all) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:323)
System.IO.Directory.GetFiles (System.String path, System.String searchPattern, SearchOption searchOption) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:317)
UnityEditor.Scripting.Compilers.UWPReferences.GetInstalledSDKVersions () (at C:/buildslave/unity/build/Editor/Mono/Scripting/Compilers/UWPReferences.cs:95)
UnityEditor.WSA.MetroBuildWindowExtension..ctor (UnityEditor.WSA.TargetExtension targetExtension) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/MetroBuildWindowExtension.cs:103)
UnityEditor.WSA.TargetExtension.CreateBuildWindowExtension () (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:71)
UnityEditor.Modules.ModuleManager.GetBuildWindowExtension (System.String target) (at C:/buildslave/unity/build/Editor/Mono/Modules/ModuleManager.cs:588)
UnityEditor.BuildPlayerWindow.ShowBuildTargetSettings () (at C:/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:1188)
UnityEditor.BuildPlayerWindow.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:914)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:262)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:255)
UnityEditor.HostView.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:85)
This is regression from 5.6.0b7.
2. How we can reproduce it using the example you attached
- Open build settings
- Select 'Windows Store'
---> On selection, exception appears in console and there's no way to actually switch
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
_geo__
Mar 13, 2017 15:21
Anyone suffering from this issue in an older version just create a folder named "C:\Program Files (x86)\Windows Kits\10\Platforms\UAP". If that doesn't help, open the project on a Windows 10 machine and set the platform to Windows 8. -- Mei