问题
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
回答1:
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)"/>
回答2:
Got the same error on my WPF project (Visual Studio 2013), no idea why. I solved it disabling the ClickOnce security settings.
- Project
Properties Securitytab- Untick "
Enable ClickOnce security settings"
回答3:
I had the same problem recently, removing the tag <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> inside .csproj
solved the problem.
回答4:
This error when away after re-entering my outdated source control account credentials ( VisualStudio 2017: File > Account Settings... ).
来源:https://stackoverflow.com/questions/53504590/invalid-value-for-the-configfile-paramter-of-the-generationapplication-manifest