Could not abel to build WPF project

Jan 5 at 9:26 AM
I am getting following error.

Severity Code Description Project File Line Suppression State
Error The item "*****\packages\LiteDB.3.0.0-beta3\lib\net35\LiteDB.dll" in item list "ReferencePath" does not define a value for metadata "CopyLocal". In order to use this metadata, either qualify it by specifying %(ReferencePath.CopyLocal), or ensure that all items in this list define a value for this metadata. *****\packages\MSBuild.ILMerge.Task.1.0.5\build\MSBuild.ILMerge.Task.targets 35

WPF project is not working where as console application is working fine
Aug 22 at 7:24 PM
ILMerge doesn't handle WPF well, AFAIK - something goes wrong with the embedded resources.