I’m developing an application which is to be deployed with ClickOnce. After downgrading from .NET 4.5 to .NET 4.0 and replacing repairing bad references, now I have problem with deployment package. Some files, most importantly
Settings and version numbers are same for both files:
References are made to same package:
Target platform is .NET 4, and deployment prerequisite is also .NET 4 and a KB update.
File is not even displayed in Application Files dialog:
Any ideas? I might just try and deploy the assembly as a content file if all else fails. Removing and re-adding the reference did not make a difference.
Posted message by Microsoft on Visual Studio support thread says that:
This will be fixed in the next update to Visual Studio 2013. Till then you will have to use the workaround of adding the assemblies as a link.
so, I found the next resolution (issue 8):
This occurs because ClickOnce fails to deploy certain required assemblies. As a workaround, do the following:
In my case, enough to add only one library System.Net.Http.