I just installed Visual Studio 2015 CTP 6 on a machine that had CTP 5 and multiple K runtimes that all worked correctly. However, after the install completed, I got the following error when trying to run an existing application:
This is caused by having duplicate profiles listed in more than one framework version. These are stored at c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable in individual directories per framework. In my case, the problem was profile158 in v4.0\profiles and v4.5\profiles.
This happens to me every time I install a new version of Visual Studio and I believe it started after installing the Xamarin tools, but I don’t have any proof of this. To fix the problem, I just move the profile158 folder out of the v4.5 directory and into a backup location. I chose this one instead of the v4.0 version because v4.0 included the Xamarin profiles, which is something I want to keep around.