{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/standard/issues/697","repository_url":"https://api.github.com/repos/dotnet/standard","labels_url":"https://api.github.com/repos/dotnet/standard/issues/697/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/standard/issues/697/comments","events_url":"https://api.github.com/repos/dotnet/standard/issues/697/events","html_url":"https://github.com/dotnet/standard/issues/697","id":310146294,"node_id":"MDU6SXNzdWUzMTAxNDYyOTQ=","number":697,"title":"Trimmer tries to run when assemblies are missing","user":{"login":"jnm2","id":8040367,"node_id":"MDQ6VXNlcjgwNDAzNjc=","avatar_url":"https://avatars2.githubusercontent.com/u/8040367?v=4","gravatar_id":"","url":"https://api.github.com/users/jnm2","html_url":"https://github.com/jnm2","followers_url":"https://api.github.com/users/jnm2/followers","following_url":"https://api.github.com/users/jnm2/following{/other_user}","gists_url":"https://api.github.com/users/jnm2/gists{/gist_id}","starred_url":"https://api.github.com/users/jnm2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnm2/subscriptions","organizations_url":"https://api.github.com/users/jnm2/orgs","repos_url":"https://api.github.com/users/jnm2/repos","events_url":"https://api.github.com/users/jnm2/events{/privacy}","received_events_url":"https://api.github.com/users/jnm2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ericstj","id":8918108,"node_id":"MDQ6VXNlcjg5MTgxMDg=","avatar_url":"https://avatars3.githubusercontent.com/u/8918108?v=4","gravatar_id":"","url":"https://api.github.com/users/ericstj","html_url":"https://github.com/ericstj","followers_url":"https://api.github.com/users/ericstj/followers","following_url":"https://api.github.com/users/ericstj/following{/other_user}","gists_url":"https://api.github.com/users/ericstj/gists{/gist_id}","starred_url":"https://api.github.com/users/ericstj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericstj/subscriptions","organizations_url":"https://api.github.com/users/ericstj/orgs","repos_url":"https://api.github.com/users/ericstj/repos","events_url":"https://api.github.com/users/ericstj/events{/privacy}","received_events_url":"https://api.github.com/users/ericstj/received_events","type":"User","site_admin":false},"assignees":[{"login":"ericstj","id":8918108,"node_id":"MDQ6VXNlcjg5MTgxMDg=","avatar_url":"https://avatars3.githubusercontent.com/u/8918108?v=4","gravatar_id":"","url":"https://api.github.com/users/ericstj","html_url":"https://github.com/ericstj","followers_url":"https://api.github.com/users/ericstj/followers","following_url":"https://api.github.com/users/ericstj/following{/other_user}","gists_url":"https://api.github.com/users/ericstj/gists{/gist_id}","starred_url":"https://api.github.com/users/ericstj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericstj/subscriptions","organizations_url":"https://api.github.com/users/ericstj/orgs","repos_url":"https://api.github.com/users/ericstj/repos","events_url":"https://api.github.com/users/ericstj/events{/privacy}","received_events_url":"https://api.github.com/users/ericstj/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-03-30T19:16:00Z","updated_at":"2018-06-06T10:58:27Z","closed_at":null,"author_association":"NONE","body":"When project B depends on project A and something causes project A to stop compiling, this appears for project B:\r\n\r\n> Error MSB4018 The \"TrimFiles\" task failed unexpectedly. System.IO.FileNotFoundException: Could not find file 'ProjectA\\bin\\Debug\\ProjectA.exe'.\r\n\r\n```\r\n   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)\r\n   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)\r\n   at Microsoft.DotNet.Build.Tasks.FileNode.PopulateDependenciesInternal(IDictionary`2 allFiles, Boolean preferNativeImage, ILog log, Stack`1 stack)\r\n   at Microsoft.DotNet.Build.Tasks.FileNode.PopulateDependencies(IDictionary`2 allFiles, Boolean preferNativeImage, ILog log)\r\n   at Microsoft.DotNet.Build.Tasks.TrimFiles.GetFiles(IDictionary`2 packages)\r\n   at Microsoft.DotNet.Build.Tasks.TrimFiles.Execute()\r\n   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()\r\n   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()\r\n```\r\n\r\n(build\\Microsoft.Packaging.Tools.Trimming.targets, line 71)\r\n\r\nI don't know if this is the whole picture, but when the trimmer I used to use ran into this I added `Condition=\"Exists(@(IntermediateAssembly))\"` to the main trimming target which had `AfterTargets=\"CoreCompile\"`.\r\n\r\n/cc @ericstj \r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/standard/issues/comments/395028491","html_url":"https://github.com/dotnet/standard/issues/697#issuecomment-395028491","issue_url":"https://api.github.com/repos/dotnet/standard/issues/697","id":395028491,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTAyODQ5MQ==","user":{"login":"alexdrl","id":26382633,"node_id":"MDQ6VXNlcjI2MzgyNjMz","avatar_url":"https://avatars2.githubusercontent.com/u/26382633?v=4","gravatar_id":"","url":"https://api.github.com/users/alexdrl","html_url":"https://github.com/alexdrl","followers_url":"https://api.github.com/users/alexdrl/followers","following_url":"https://api.github.com/users/alexdrl/following{/other_user}","gists_url":"https://api.github.com/users/alexdrl/gists{/gist_id}","starred_url":"https://api.github.com/users/alexdrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexdrl/subscriptions","organizations_url":"https://api.github.com/users/alexdrl/orgs","repos_url":"https://api.github.com/users/alexdrl/repos","events_url":"https://api.github.com/users/alexdrl/events{/privacy}","received_events_url":"https://api.github.com/users/alexdrl/received_events","type":"User","site_admin":false},"created_at":"2018-06-06T10:58:27Z","updated_at":"2018-06-06T10:58:27Z","author_association":"NONE","body":"Also, this also happens with other tasks like [StrongNamer ](https://github.com/dsplaisted/strongnamer)"}}
{"actor":{"display_login":"alexdrl"}}