Problem during publish


projects with "Documernt.dll" runs in VS and works by F5.
But during the clickonce publish, when it tries to Build the project it shows an error:
"App.config;obj\Debug\ProjectName.csproj.ProjectName.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".
If I remove your dll and all related methods, it will build successfully.
What should I do?
And after referencing your dll it asks for "DocumentFormat.OpenXml ver: 2.0.5022.0",
in my my assemblies there is a "2.5.5631.0" one.
If it is intended for office 2007, how can I use it in a machine where office 2010 is installed? or
Has it anything to do with that?!

Thanks in advance


Tatibah wrote May 4, 2014 at 3:17 AM

The DocumentFormat.OpenXml version is used was 2.0, this is compatible with Office 2010 and 2013, the reason for using this version was that I thought that a lot of people would still be using Office 2010.
It looks like you have downloaded the DocumentFormat.OpenXml version 2.5 for Office 2013.
To get you project to publish just remove the Reference to DocumentFormat.OpenXml 2.5 and download the older version (there is a link on the front page of this site) and add a Reference to that.
If this doesn't fix the issue I will need some more information.