Invalid value for the configfile paramter of the generationapplication manifest task

[亡魂溺海] 提交于 2019-12-14 00:54:03

问题


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
  • Security tab
  • 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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!