I repeat, it certainly looks like a mistake. Judging by the error message in your screenshot, you are using VS2013. A very useless message, it softened in VS2015, but still fails. An odd btw error, it looks like it is considering a reference to the Microsoft.Threading.Task assembly, which your C # project uses as a structure assembly. No preliminary SO questions on this issue that I know of, most programmers get this right without having to fight the machine.
You should consider how to do this to avoid this error. This does not happen if you use the Browse button in the Add Link dialog box. But it works fine when you use the project link, as most programmers prefer to customize their solution. So use File> Add> Existing Project, select your C # project. Then add the link again, but this time select the C # project from the Solution> Projects list, rather than the Browse button.
If for some reason this is undesirable, you can work around it in another way. Open your .vcxproj in a text editor, Notepad is fine. Find this item:
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
And change the version number to v4.5 . Now add the link, as you did before, using the "Browse" button, this time no complaints. And go back to Notepad and change the version number to v4.0
source share