{"action":"closed","issue":{"url":"https://api.github.com/repos/projectkudu/kudu/issues/1538","labels_url":"https://api.github.com/repos/projectkudu/kudu/issues/1538/labels{/name}","comments_url":"https://api.github.com/repos/projectkudu/kudu/issues/1538/comments","events_url":"https://api.github.com/repos/projectkudu/kudu/issues/1538/events","html_url":"https://github.com/projectkudu/kudu/issues/1538","id":69186216,"number":1538,"title":"Deployment failure in .NET 4.5.2 web application with Microsoft.Bcl.Async dependency","user":{"login":"olegsych","id":8355091,"avatar_url":"https://avatars.githubusercontent.com/u/8355091?v=3","gravatar_id":"","url":"https://api.github.com/users/olegsych","html_url":"https://github.com/olegsych","followers_url":"https://api.github.com/users/olegsych/followers","following_url":"https://api.github.com/users/olegsych/following{/other_user}","gists_url":"https://api.github.com/users/olegsych/gists{/gist_id}","starred_url":"https://api.github.com/users/olegsych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olegsych/subscriptions","organizations_url":"https://api.github.com/users/olegsych/orgs","repos_url":"https://api.github.com/users/olegsych/repos","events_url":"https://api.github.com/users/olegsych/events{/privacy}","received_events_url":"https://api.github.com/users/olegsych/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-17T17:56:28Z","updated_at":"2015-04-17T21:57:07Z","closed_at":"2015-04-17T21:57:07Z","body":"Source code: https://github.com/olegsych/AzureWebSiteWithBclAsync\r\nDeployment: http://azurewebsitewithbclasync.azurewebsites.net\r\n\r\nA single-page .NET 4.5.2 web application referencing a .NET 4.0 class library which depends on the Microsoft.Bcl.Async NuGet package encounters the following build warning when deployed by Kudu:\r\n\r\n```\r\nD:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\Microsoft.Common.targets(1605,5): warning MSB3268: The primary reference \"D:\\home\\site\\repository\\WebApplication1\\ClassLibrary1\\bin\\Release\\ClassLibrary1.dll\" could not be resolved because it has an indirect dependency on the framework assembly \"System.Runtime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\" which could not be resolved in the currently targeted framework. \".NETFramework,Version=v4.5.2\". To resolve this problem, either remove the reference \"D:\\home\\site\\repository\\WebApplication1\\ClassLibrary1\\bin\\Release\\ClassLibrary1.dll\" or retarget your application to a framework version which contains \"System.Runtime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\". [D:\\home\\site\\repository\\WebApplication1\\WebApplication1\\WebApplication1.csproj]\r\n```\r\nThe same application can be built (with Visual Studio 2013 Update 4) and run locally without problems. Note that the ClassLibrary1 actually needs the System.Runtime.dll v2.6.8 from the Microsoft.Bcl NuGet package. It gets copied to the app bin folder when built by Visual Studio, but not by Kudu's build."}}