Solution :
I had faced the above error in the past and after doing lot of trials I found the solution on it
I am sharing my solution as below hope this will help someone else too.
So you need to edit your .csproj file for your project which is facing above error.
It is very simple you just need to delete the below lines of code:
<PropertyGroup>
<ManifestCertificateThumbprint>...........</ManifestCertificateThumbprint>
</PropertyGroup>
<PropertyGroup>
<ManifestKeyFile>xxxxxxxx.pfx</ManifestKeyFile>
</PropertyGroup>
<PropertyGroup>
<GenerateManifests>true</GenerateManifests>
</PropertyGroup>
<PropertyGroup>
<SignManifests>false</SignManifests>
</PropertyGroup>
If above approach is not working for you then you should try below steps as solution.
Go to your Solution Explorer:
You need to right click on your project
Then you can click on properties
You can find it usually on your left-hand side then you can select the "Signing" tab
After that you must check off your Sign the ClickOnce manifests
Finally you must make sure you to save! the changes you have just made.