{"action":"closed","issue":{"url":"https://api.github.com/repos/Fody/Costura/issues/98","labels_url":"https://api.github.com/repos/Fody/Costura/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/Fody/Costura/issues/98/comments","events_url":"https://api.github.com/repos/Fody/Costura/issues/98/events","html_url":"https://github.com/Fody/Costura/issues/98","id":52576954,"number":98,"title":"Assemblies excluded from processing by Costura still deleted by the output folder cleanup step","user":{"login":"konste","id":2653844,"avatar_url":"https://avatars.githubusercontent.com/u/2653844?v=3","gravatar_id":"","url":"https://api.github.com/users/konste","html_url":"https://github.com/konste","followers_url":"https://api.github.com/users/konste/followers","following_url":"https://api.github.com/users/konste/following{/other_user}","gists_url":"https://api.github.com/users/konste/gists{/gist_id}","starred_url":"https://api.github.com/users/konste/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konste/subscriptions","organizations_url":"https://api.github.com/users/konste/orgs","repos_url":"https://api.github.com/users/konste/repos","events_url":"https://api.github.com/users/konste/events{/privacy}","received_events_url":"https://api.github.com/users/konste/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Fody/Costura/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Fody/Costura/labels/needs%20repro","name":"needs repro","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-12-20T21:17:56Z","updated_at":"2015-04-07T04:58:38Z","closed_at":"2015-04-07T04:58:38Z","body":"First of all, thank you for a great piece of Software! It does amazing things amazingly well!\r\n\r\nI'm trying to exclude a few referenced assemblies from processing by Costura and indeed corresponding flag in Fody.Weavers.xml does the job and assemblies got skipped. \r\n\r\nThe problem is with the output folder cleanup target you recommended:\r\n<Target \r\n    AfterTargets=\"AfterBuild;NonWinFodyTarget\"\r\n    Name=\"CleanReferenceCopyLocalPaths\" >\r\n     <Delete Files=\"@(ReferenceCopyLocalPaths->'$(OutDir)%(DestinationSubDirectory)%(Filename)%(Extension)')\" />\r\n</Target>\r\n\r\nIt removes all references, including those excluded from Costura processing.\r\nCould you please recommend how to update cleanup script to leave excluded assemblies intact?\r\nMay be Costura Target implementation can provide msbuild variable with the list of files processed by Costura, so that cleanup step could be made more specific?\r\n\r\nThank you!\r\nKonstantin"}}