I am facing this problem in my project using Visual Studio 2013 and .NET 4.5. It seems like a problem because I moved the project to another directory.
You can solve this problem by checking that the HintPath in the project file is correct or not (.csproj file).
<HintPath>..\..\..\..\..\..\..\..\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5.1\System.Runtime.WindowsRuntime.dll</HintPath>
Since I created a new directory and moved my project to this directory, I found that the relative path to System.Runtime.WindowsRuntime.dll in HintPath no longer correct and therefore cannot find the library.
Fixing this way solved the problem for me.
Chef Pharaoh Jun 28 '19 at 15:14 2019-06-28 15:14
source share