The "CopyNonResxEmbeddedResources" target has conditions for two separate resource types, but the copy tasks within don't check for the files they're trying to copy. If you only have one of the two in your project, the other will fail with "error : You must specify DestinationFolder or DestinationFiles attribute.".