Visual Studio 2017 Create Strong Name Key File

When trying to create a strong name key file for your project, in this case a UWP project, in Visual Studio 2017, and probably previous versions too, you may get an error message, once you click OK in the Create Strong Name Key dialogue box.


The operation could not be completed message box.


It turns out that all I needed to do, was to run Visual Studio as an administrator, and it worked. It’s the actual signing with the password that requires this, as you can create a key file without a password, and the signing will work without running VS as an administrator.