{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/1598","repository_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk","labels_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/1598/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/1598/comments","events_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/1598/events","html_url":"https://github.com/Azure/azure-webjobs-sdk/issues/1598","id":301102284,"number":1598,"title":"\"Found conflicts between different versions of the same dependent assembly\" despite AutoGenerateBindingRedirects ON","user":{"login":"ggirard07","id":2625886,"avatar_url":"https://avatars1.githubusercontent.com/u/2625886?v=4","gravatar_id":"","url":"https://api.github.com/users/ggirard07","html_url":"https://github.com/ggirard07","followers_url":"https://api.github.com/users/ggirard07/followers","following_url":"https://api.github.com/users/ggirard07/following{/other_user}","gists_url":"https://api.github.com/users/ggirard07/gists{/gist_id}","starred_url":"https://api.github.com/users/ggirard07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggirard07/subscriptions","organizations_url":"https://api.github.com/users/ggirard07/orgs","repos_url":"https://api.github.com/users/ggirard07/repos","events_url":"https://api.github.com/users/ggirard07/events{/privacy}","received_events_url":"https://api.github.com/users/ggirard07/received_events","type":"User","site_admin":false},"labels":[{"id":620217197,"url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/labels/needs-investigation","name":"needs-investigation","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/milestones/27","html_url":"https://github.com/Azure/azure-webjobs-sdk/milestone/27","labels_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/milestones/27/labels","id":2628212,"number":27,"title":"Triaged","description":"Issues here need to be moved to a sprint or next.","creator":{"login":"paulbatum","id":10663,"avatar_url":"https://avatars2.githubusercontent.com/u/10663?v=4","gravatar_id":"","url":"https://api.github.com/users/paulbatum","html_url":"https://github.com/paulbatum","followers_url":"https://api.github.com/users/paulbatum/followers","following_url":"https://api.github.com/users/paulbatum/following{/other_user}","gists_url":"https://api.github.com/users/paulbatum/gists{/gist_id}","starred_url":"https://api.github.com/users/paulbatum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulbatum/subscriptions","organizations_url":"https://api.github.com/users/paulbatum/orgs","repos_url":"https://api.github.com/users/paulbatum/repos","events_url":"https://api.github.com/users/paulbatum/events{/privacy}","received_events_url":"https://api.github.com/users/paulbatum/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":7,"state":"open","created_at":"2017-07-07T18:59:19Z","updated_at":"2018-03-28T18:20:29Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-02-28T16:57:04Z","updated_at":"2018-03-28T18:21:00Z","closed_at":null,"author_association":"NONE","body":"I recently migrated my solution to .Net Core with .netstandard 2.0. The only project still using .Net Framework 4.6.1 is my webjob (a console app project) because the NuGet package for the WebJobs SDK supporting .Net Standard is still in preview (3.0-beta4).\r\n\r\nMy solution is working properly but I can' t get ride of this last warning:\r\n> 2>  C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Professional\\MSBuild\\15.0\\Bin\\Microsoft.Common.CurrentVersion.targets(2041,5): warning MSB3276: Found conflicts between different versions of the same dependent assembly. Please set the \"AutoGenerateBindingRedirects\" property to true in the project file. For more information, see http://go.microsoft.com/fwlink/?LinkId=294190.\r\n\r\nIn order to get the NuGet package management right when mixing a class library in .Net Standard with an executable still in full framework, I had to update the console app project to use `PackageReference` instead of `packages.config`, as explained [here](https://www.hanselman.com/blog/ReferencingNETStandardAssembliesFromBothNETCoreAndNETFramework.aspx). I uninstalled every packages in the packages.config prior to switch to `PackageReference` and then reinstalled only the required packages. For the `Microsoft.Web.WebJobs.Publish` package, I used the workaround detailed in https://github.com/Azure/azure-webjobs-sdk/issues/1109 as `PackageReference` does not support PowerShell installation.\r\n\r\nI found the following [announcement](https://github.com/dotnet/standard/issues/481) describing a similar pattern generating this kind of warning. But it does not cover my warning as the console application is an executable and is already using `AutoGenerateBindingRedirects`.\r\n\r\n#### Repro steps\r\n\r\n1. Clone the repository containing the reproduction sample at https://github.com/ggirard07/bindingredirect.\r\n\r\n2. Open the solution `BindingRedirectIssue.sln`.\r\n\r\n3. Build the solution (Build > Rebuild Solution).\r\n\r\n4. Check the build errors and warnings.\r\n\r\n#### Expected behavior\r\n\r\nNo error or warning should be produced.\r\n\r\n#### Actual behavior\r\n\r\nA warning is reported about assembly version conflicts.\r\n\r\n#### Known workarounds\r\n\r\nNone.\r\n\r\n#### Related information \r\n\r\nThe issue starts when adding the `Microsoft.Web.WebJobs.Publish` package to the solution.\r\nThe warning seems to be related to a conflict about the `Newtonsoft.Json.dll`.\r\nThere should be no conflict in the solution as everyone is using `Newtonsoft.Json` in version `9.0.1`.\r\nThe only reference to a different version is in the `Microsoft.Web.WebJobs.Publish` which use `6.0.4`. it is used only during the build by the added .targets, there is no impact at runtime. This is also why the `Microsoft.Web.WebJobs.Publish` does not define any dependency to the `Newtonsoft.Json` package.\r\n\r\nI am pretty sure this assembly, `$(NuGetPackageRoot)Microsoft.Web.WebJobs.Publish\\1.1.0\\tools\\Newtonsoft.Json.dll` raises the issue because as soon as you remove the `webjob-publish-settings.json` file from the disk or the `webjobs.targets` from the console app csproj, the warning disappear (but you can no longer build the webjob...).\r\n\r\nVersions involved:\r\n* Microsoft.Azure.WebJobs 2.1.0\r\n* Microsoft.Web.WebJobs.Publish 1.1.0"},"comment":{"url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/comments/376986410","html_url":"https://github.com/Azure/azure-webjobs-sdk/issues/1598#issuecomment-376986410","issue_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/1598","id":376986410,"user":{"login":"mathewc","id":1056548,"avatar_url":"https://avatars3.githubusercontent.com/u/1056548?v=4","gravatar_id":"","url":"https://api.github.com/users/mathewc","html_url":"https://github.com/mathewc","followers_url":"https://api.github.com/users/mathewc/followers","following_url":"https://api.github.com/users/mathewc/following{/other_user}","gists_url":"https://api.github.com/users/mathewc/gists{/gist_id}","starred_url":"https://api.github.com/users/mathewc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathewc/subscriptions","organizations_url":"https://api.github.com/users/mathewc/orgs","repos_url":"https://api.github.com/users/mathewc/repos","events_url":"https://api.github.com/users/mathewc/events{/privacy}","received_events_url":"https://api.github.com/users/mathewc/received_events","type":"User","site_admin":false},"created_at":"2018-03-28T18:21:00Z","updated_at":"2018-03-28T18:21:00Z","author_association":"CONTRIBUTOR","body":"We'll try to repro and see if there is a workaround possible or if there is an actual issue needing fixed."}}
{"actor":{"display_login":"mathewc"}}