I have an issue when i want to publish a project i receive the error message
"obj\debug\project.exe.config;obj\Debug\project.exe.config"is an invalid value for the "ConfigFile" parameter of the "GenerateApplicationManifest" task.
Multiple items cannot be passed into a parameter of type
"Microsoft.Build.Framework.ITaskItem".
I have searched about the issue and i found i have to uncheck "Enable ClickOnce security settings" at Properties/Security but still have the same problem cannot publish my project.. ?
screenshot
Probably the transformation file is wrong. It seems like it is trying to add multiple config files at the same time.
Have you tried to look at your transformation file? It could be helpful, if you could post the transformation file.
Also this article, seems like there is a solution here for a similar issue:
I ran into this same problem. What fixed it for me was changing the line in the transform from above
from
<AppConfigWithTargetPath Remove="app.config" />
to
<AppConfigWithTargetPath Remove="@(AppConfigWithTargetPath)"/>
The AppConfigWithTargetPath
config parameter can be found in the .csproj file.
Got the same error on my WPF project (Visual Studio 2013), no idea why. I solved it disabling the ClickOnce
security settings.
- Project
Properties
Security
tab
- Untick "
Enable ClickOnce security settings
"
I had the same problem recently, removing the tag <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
inside .csproj
solved the problem.
This error when away after re-entering my outdated source control account credentials ( VisualStudio 2017: File > Account Settings... ).