{"action":"created","issue":{"url":"https://api.github.com/repos/difi/sikker-digital-post-klient-dotnet/issues/167","repository_url":"https://api.github.com/repos/difi/sikker-digital-post-klient-dotnet","labels_url":"https://api.github.com/repos/difi/sikker-digital-post-klient-dotnet/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/difi/sikker-digital-post-klient-dotnet/issues/167/comments","events_url":"https://api.github.com/repos/difi/sikker-digital-post-klient-dotnet/issues/167/events","html_url":"https://github.com/difi/sikker-digital-post-klient-dotnet/issues/167","id":153006520,"number":167,"title":"Problemer med å legge til flere nuget pakker","user":{"login":"fmj","id":2693481,"avatar_url":"https://avatars.githubusercontent.com/u/2693481?v=3","gravatar_id":"","url":"https://api.github.com/users/fmj","html_url":"https://github.com/fmj","followers_url":"https://api.github.com/users/fmj/followers","following_url":"https://api.github.com/users/fmj/following{/other_user}","gists_url":"https://api.github.com/users/fmj/gists{/gist_id}","starred_url":"https://api.github.com/users/fmj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmj/subscriptions","organizations_url":"https://api.github.com/users/fmj/orgs","repos_url":"https://api.github.com/users/fmj/repos","events_url":"https://api.github.com/users/fmj/events{/privacy}","received_events_url":"https://api.github.com/users/fmj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-04T13:05:27Z","updated_at":"2016-05-09T08:17:55Z","closed_at":null,"body":"Vi skal bruke oppslagstjeneste og sikker digitalpost. Har lagt til pakkene fra nuget som følger:\r\n\r\n```XML\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<packages>\r\n  <package id=\"difi-oppslagstjeneste-klient\" version=\"5.1.5952.22633\" targetFramework=\"net45\" />\r\n  <package id=\"difi-sikker-digital-post-klient\" version=\"1.6.5962.22680\" targetFramework=\"net45\" />\r\n</packages>\r\n```` \r\n\r\nEtter å ha oppdatert pakkene til siste versjon så får jeg følgende feil:\r\n![image](https://cloud.githubusercontent.com/assets/2693481/15014939/3b879252-1209-11e6-9a4c-4f5bfa30f221.png)\r\n\r\nDet ser ut som oppslagtjeneste biblioteket er linket mot en annen versjon av Difi.FellesUtility enn Difi.SikkerDigitalPost.Klient slik at det ikke er mulig å bruke begge nugetpakkene samtidig:\r\n\r\nOppslagstjeneste: \r\n![image](https://cloud.githubusercontent.com/assets/2693481/15014970/73530c3e-1209-11e6-833c-b24fb1cd35e3.png)\r\n\r\nSikkerDigitalPost:\r\n![image](https://cloud.githubusercontent.com/assets/2693481/15014991/8de0809a-1209-11e6-9674-d5c479727c32.png)\r\n\r\n\r\nEr det mulig å få harmonisert pakkene slik at de bruker samme fellesbibliotek eller er det nuget som har et problem?\r\n"},"comment":{"url":"https://api.github.com/repos/difi/sikker-digital-post-klient-dotnet/issues/comments/217803254","html_url":"https://github.com/difi/sikker-digital-post-klient-dotnet/issues/167#issuecomment-217803254","issue_url":"https://api.github.com/repos/difi/sikker-digital-post-klient-dotnet/issues/167","id":217803254,"user":{"login":"asjafjell","id":720545,"avatar_url":"https://avatars.githubusercontent.com/u/720545?v=3","gravatar_id":"","url":"https://api.github.com/users/asjafjell","html_url":"https://github.com/asjafjell","followers_url":"https://api.github.com/users/asjafjell/followers","following_url":"https://api.github.com/users/asjafjell/following{/other_user}","gists_url":"https://api.github.com/users/asjafjell/gists{/gist_id}","starred_url":"https://api.github.com/users/asjafjell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asjafjell/subscriptions","organizations_url":"https://api.github.com/users/asjafjell/orgs","repos_url":"https://api.github.com/users/asjafjell/repos","events_url":"https://api.github.com/users/asjafjell/events{/privacy}","received_events_url":"https://api.github.com/users/asjafjell/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T08:17:55Z","updated_at":"2016-05-09T08:17:55Z","body":"Jeg skjønner problemstillingen og det du sier er delvis rett. Det er ikke mulig å direkte laste inn to dll-er i samme prosjekt. Men ved å sette eksplisitte avhengigheter på SDP og OT så kan vi sette en range med versjoner som godtas. I ditt tilfelle vil ikke dette fungere, og da må vi se til andre løsninger. \r\n\r\nJeg var litt uklar når jeg sa definitivt  ja til harmonisering av avhengigheter, for dette blir nok ikke gjort til enhver tid. Det vil være tidspunkt hvor de ikke er like. Heldigvis er det en løsning for dette, og det er å legge inn aktuell .dll i GAC. Test gjerne oppskriften på [msdn.microsoft.com](https://msdn.microsoft.com/en-us/library/dkkx7f79(v=vs.110).aspx) og kom med tilbakemelding."}}