Hello,
I have migrated a project from VS 2008 to VS 2010 (target framework 2.0) and I tried to publish it (to a File System).
I ran into the following error :
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.5\Web\Microsoft.Web.Publishing.targets(2963,5): Error MSB4018: The "CopyPipelineFiles" task failed unexpectedly. System.ArgumentException: Illegal characters in path. at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) at System.IO.Path.Combine(String path1, String path2) at Microsoft.Web.Publishing.Tasks.CopyPipelineFiles.CopyPipelineFilesToFolder(TaskLoggingHelper log, ITaskItem[] allpipeLineItems, String sourceFolderName, String targetFolderName, ItemMetadataFilter itemMetadataSkipFilter, Boolean fUpdateItemSpec, Boolean deleteItemsMarkAsExcludeTrue, List`1 updatedPipeLineItems, List`1 failedPipeLineItems) at Microsoft.Web.Publishing.Tasks.CopyPipelineFiles.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() Done executing task "CopyPipelineFiles" -- FAILED. Done building target "CopyAllFilesToSingleFolderForPackage" in project "XXX.csproj" -- FAILED. Done building project "XXX.csproj" -- FAILED.
I can compile the project just fine. About specificities in the project I have multiple files that added to the project as a link so I don't know if it's that causing the issue.
I tried to do a failed "Combine" with all the files in my solution to see what is the offending file (since the error message do not tell) but I couldn't reproduce the error.
Thanks and regards,
Eric Gaspard