Error building Player: UnityException: Platform assembly not found

Hi everyone, I recently imaged my HDD to a new SSD and have been having trouble ever since. Unity and Visual Studio 2015 Community, and VS 2013 Community, all open and run fine by themselves. However, when I try to build to any Windows Phone option, I get the following error:

Error building Player: UnityException: Platform assembly not found.
Make sure Visual Studio 2013 and Windows Phone SDK 8.1 is installed.

I cannot build to Windows Store 8.0, same error as above
I can build to Windows Store 8.1 just fine.
Windows Store Universal 8.1 gives the same error as above
Windows Store Universal 10 gives similar error, but just says I need VS 2015.

I have uninstalled, reinstalled, cleared/cleaned my registry… Is there anything else that might be keeping Unity from recognizing that I have these files? It looks like it is focused on the WP8 SDK files, but I have both of those sets of files as well so I can’t figure out what is wrong.

Any help would be greatly appreciated!

Thanks,
Nick

Try creating Windows Phone 8.1 application from VS 2013 and see if it works then.

The registry keys Unity is looking for are:

Windows Phone 8.1: H_KEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\WindowsPhoneApp\v8.1\InstallationFolder (points to C:\Program Files (x86)\Windows Phone Kits\8.1\ on my machine). After getting that path, Unity looks for “References\CommonConfiguration\Neutral\Windows.winmd” in that folder.

Windows 10: H_KEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0\InstallationFolder (points to C:\Program Files (x86)\Windows Kits\10\ on my machine). After getting that path, Unity looks for “UnionMetadata\Facade\Windows.winmd”.

Thanks Tautvdas and Thomas! I’m trying to look for those keys right now. On trying to open VS2013 by itself this morning it is now giving me an error about side-by-side configuration and the coloader80.dll, so there must be something else wrong that is causing havoc. I’m going to move my issues over to the VS forums unless this sounds like something you guys can still help me with?

Thanks!
Nick