I am trying to produce the Visual Studio solution from which UWP apps can be built from using the Unity3D build settings window.
When I opened the build settings window I was completely confused. I only saw options to build for Microsoft Store or XBox One, which made absolutely no sense, since with UWP the single app built should run on any Windows UWP device, including Raspberry Pi with Windows IoT and XBox One.
What am I doing wrong? Did I miss a feature selection when I installed Unity3D 5.50b10 personal?
I think the first time I tried to do the Windows Store build I made a mistake, because I repeated the attempt and a Visual Studio solution was generated, but it doesn’t build, claiming I didn’t reference the assembly for the System.Security.Cryptography.SymmetricAlgorithm class, which makes no sense, as I have the WinRT legacy and Microsoft.NETCoreUniversalWindowsPlatform assemblies referenced.
You target UWP by building to Windows Store platform with Windows 10 SDK selected. The application will run on all those devices.
System.Security.Cryptography.SymmetricAlgorithm is not available to use on .NET scripting backend - it’s not part of the offical .NET API that Microsoft allows you to use on the windows store. If you want to use it - switch to IL2CPP scripting backend in the player settings, which will make you target .NET 3.5 API surface which is used on all other platforms you build your project to from Unity - including the editor.
I see…I didn’t realize that…when Unity3D built my solution it targeted .NET Framework 4.5 and offered me the option to downgrade to .NET 3.5…next time I’ll downgrade…
Now I understand why there is a separate build module for XBox One…because it doesn’t support .NET framework (Unity3D just deploys the mono framework onto XBox One)…
It does for UWP, but there are other limitations for UWP apps on Xbox One (for starters - you don’t get full access to hardware). You can still run UWP apps exported from Unity on Xbox.