Hey everyone.
I’m codifying our build settings for the building purposes. We need to fix the UWP-generated solution Visual Studio version. This property seems to be a string. I tried both “2019”, and “Visual Studio 2019” but none works. I also can’t seem to find any documentation for possible values.
EditorUserBuildSettings.wsaUWPVisualStudioVersion
Any help appreciated.
Cheers
Printing the value with “Visual Studio 2019” explicitly selected in my Unity 2019.2.21f in the build settings UI gave me 16.7.30523.141. Interestingly, Visual Studio 2019 installed on my computer reports itself as 16.7.5. Using the value that Visual Studio itself reports doesn’t work. Using the one printed by Unity does. Go figure…
Update: to figure out Unity-compatible version of Visual Studio you can head to Start Menu / Apps & Features / Visual Studio 2019 and see all digits. This works.