{"action":"created","issue":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/issues/511","repository_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet","labels_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/issues/511/labels{/name}","comments_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/issues/511/comments","events_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/issues/511/events","html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-dotnet/issues/511","id":169091424,"number":511,"title":"Main Project referencing a library that includes ActiveDirectory NuGet requires reference to package also","user":{"login":"jamesmundy","id":1474701,"avatar_url":"https://avatars3.githubusercontent.com/u/1474701?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesmundy","html_url":"https://github.com/jamesmundy","followers_url":"https://api.github.com/users/jamesmundy/followers","following_url":"https://api.github.com/users/jamesmundy/following{/other_user}","gists_url":"https://api.github.com/users/jamesmundy/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesmundy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesmundy/subscriptions","organizations_url":"https://api.github.com/users/jamesmundy/orgs","repos_url":"https://api.github.com/users/jamesmundy/repos","events_url":"https://api.github.com/users/jamesmundy/events{/privacy}","received_events_url":"https://api.github.com/users/jamesmundy/received_events","type":"User","site_admin":false},"labels":[{"id":307439571,"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/labels/By%20Design","name":"By Design","color":"c7def8","default":false},{"id":138191674,"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/labels/P2","name":"P2","color":"e11d21","default":false}],"state":"closed","locked":false,"assignee":{"login":"duncanpMS","id":10757559,"avatar_url":"https://avatars2.githubusercontent.com/u/10757559?v=3","gravatar_id":"","url":"https://api.github.com/users/duncanpMS","html_url":"https://github.com/duncanpMS","followers_url":"https://api.github.com/users/duncanpMS/followers","following_url":"https://api.github.com/users/duncanpMS/following{/other_user}","gists_url":"https://api.github.com/users/duncanpMS/gists{/gist_id}","starred_url":"https://api.github.com/users/duncanpMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncanpMS/subscriptions","organizations_url":"https://api.github.com/users/duncanpMS/orgs","repos_url":"https://api.github.com/users/duncanpMS/repos","events_url":"https://api.github.com/users/duncanpMS/events{/privacy}","received_events_url":"https://api.github.com/users/duncanpMS/received_events","type":"User","site_admin":false},"assignees":[{"login":"duncanpMS","id":10757559,"avatar_url":"https://avatars2.githubusercontent.com/u/10757559?v=3","gravatar_id":"","url":"https://api.github.com/users/duncanpMS","html_url":"https://github.com/duncanpMS","followers_url":"https://api.github.com/users/duncanpMS/followers","following_url":"https://api.github.com/users/duncanpMS/following{/other_user}","gists_url":"https://api.github.com/users/duncanpMS/gists{/gist_id}","starred_url":"https://api.github.com/users/duncanpMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncanpMS/subscriptions","organizations_url":"https://api.github.com/users/duncanpMS/orgs","repos_url":"https://api.github.com/users/duncanpMS/repos","events_url":"https://api.github.com/users/duncanpMS/events{/privacy}","received_events_url":"https://api.github.com/users/duncanpMS/received_events","type":"User","site_admin":false}],"milestone":null,"comments":41,"created_at":"2016-08-03T09:49:20Z","updated_at":"2017-06-30T12:11:40Z","closed_at":"2017-06-06T14:20:17Z","body":"Two of us on StackOverflow have noticed this issue after updating to the latest version of the ActiveDirectory nuget package so I thought I'd notify you here and see if this is indeed an issue: http://stackoverflow.com/questions/37940169/nuget-reference-behaves-in-a-strange-fashion\n\nBasically, I have a asp.net web project which references a library which I use to retrieve tokens securely from Azure KeyVault which requires a reference to this nuget package. All was working fine until I updated the nuget package to the latest version today.\n\nEvery time I try to make a request that uses the library I receive the following exception:\n`Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory.Platform, Version=3.13.1.846, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.\n</ExceptionMessage>\n<ExceptionType>System.IO.FileNotFoundException</ExceptionType>\n<StackTrace>\nat System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.Assembly.Load(AssemblyName assemblyRef) at Microsoft.IdentityModel.Clients.ActiveDirectory.PlatformPlugin.LoadPlatformSpecificAssembly()\n</StackTrace>`\n\nIf I then include the ActiveDirectory in the top level web project everything works ok. As far as I know you shouldn't have to do this. Downgrading the package to a much older 2.28 (the version I was using before) works just fine.\n\n It's similar to an issue I have experienced with Xamarin.iOS/Android and the linker which can strip out references.\n\nAny ideas?\n"},"comment":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/issues/comments/312251175","html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-dotnet/issues/511#issuecomment-312251175","issue_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-dotnet/issues/511","id":312251175,"user":{"login":"mjcheetham","id":5658207,"avatar_url":"https://avatars2.githubusercontent.com/u/5658207?v=3","gravatar_id":"","url":"https://api.github.com/users/mjcheetham","html_url":"https://github.com/mjcheetham","followers_url":"https://api.github.com/users/mjcheetham/followers","following_url":"https://api.github.com/users/mjcheetham/following{/other_user}","gists_url":"https://api.github.com/users/mjcheetham/gists{/gist_id}","starred_url":"https://api.github.com/users/mjcheetham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjcheetham/subscriptions","organizations_url":"https://api.github.com/users/mjcheetham/orgs","repos_url":"https://api.github.com/users/mjcheetham/repos","events_url":"https://api.github.com/users/mjcheetham/events{/privacy}","received_events_url":"https://api.github.com/users/mjcheetham/received_events","type":"User","site_admin":false},"created_at":"2017-06-30T12:11:40Z","updated_at":"2017-06-30T12:11:40Z","body":"Hi @Maggern3,\r\n\r\nI have been unable to reproduce the error you are facing on versions above 3.12.\r\nSee an example solution [here](https://github.com/mjcheetham/ADALXamariniOSSample) which has an iOS app and a PCL which uses ADAL.NET 3.14.1.\r\n\r\nPlease could you share a solution/projects which exhibits the issue you are facing so we might investigate further?\r\n\r\nCan you also confirm whether or not the _Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll_ file exists in your built _.app_ package?\r\n\r\nThanks\r\n"}}
{"actor":{"display_login":"mjcheetham"}}