Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid value for the configfile paramter of the generationapplication manifest task

Tags:

c#

msbuild

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

like image 840
Charlie Avatar asked Nov 27 '18 16:11

Charlie


3 Answers

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.

like image 192
Crick3t Avatar answered Nov 12 '22 09:11

Crick3t


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"

enter image description here

like image 30
Vland Avatar answered Nov 12 '22 11:11

Vland


I had the same problem recently, removing the tag <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> inside .csproj solved the problem.

like image 6
mtanksl Avatar answered Nov 12 '22 10:11

mtanksl