{"action":"created","issue":{"url":"https://api.github.com/repos/NuGet/Home/issues/878","labels_url":"https://api.github.com/repos/NuGet/Home/issues/878/labels{/name}","comments_url":"https://api.github.com/repos/NuGet/Home/issues/878/comments","events_url":"https://api.github.com/repos/NuGet/Home/issues/878/events","html_url":"https://github.com/NuGet/Home/issues/878","id":92739018,"number":878,"title":"Dependencies on .NET Framework","user":{"login":"yishaigalatzer","id":1238711,"avatar_url":"https://avatars.githubusercontent.com/u/1238711?v=3","gravatar_id":"","url":"https://api.github.com/users/yishaigalatzer","html_url":"https://github.com/yishaigalatzer","followers_url":"https://api.github.com/users/yishaigalatzer/followers","following_url":"https://api.github.com/users/yishaigalatzer/following{/other_user}","gists_url":"https://api.github.com/users/yishaigalatzer/gists{/gist_id}","starred_url":"https://api.github.com/users/yishaigalatzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yishaigalatzer/subscriptions","organizations_url":"https://api.github.com/users/yishaigalatzer/orgs","repos_url":"https://api.github.com/users/yishaigalatzer/repos","events_url":"https://api.github.com/users/yishaigalatzer/events{/privacy}","received_events_url":"https://api.github.com/users/yishaigalatzer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NuGet/Home/labels/Area:VS.Client","name":"Area:VS.Client","color":"159818"},{"url":"https://api.github.com/repos/NuGet/Home/labels/Priority:2","name":"Priority:2","color":"fbca04"},{"url":"https://api.github.com/repos/NuGet/Home/labels/Type:Bug","name":"Type:Bug","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"danliu","id":1087852,"avatar_url":"https://avatars.githubusercontent.com/u/1087852?v=3","gravatar_id":"","url":"https://api.github.com/users/danliu","html_url":"https://github.com/danliu","followers_url":"https://api.github.com/users/danliu/followers","following_url":"https://api.github.com/users/danliu/following{/other_user}","gists_url":"https://api.github.com/users/danliu/gists{/gist_id}","starred_url":"https://api.github.com/users/danliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danliu/subscriptions","organizations_url":"https://api.github.com/users/danliu/orgs","repos_url":"https://api.github.com/users/danliu/repos","events_url":"https://api.github.com/users/danliu/events{/privacy}","received_events_url":"https://api.github.com/users/danliu/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/NuGet/Home/milestones/11","html_url":"https://github.com/NuGet/Home/milestones/3.2.0-Beta","labels_url":"https://api.github.com/repos/NuGet/Home/milestones/11/labels","id":1057211,"number":11,"title":"3.2.0-Beta","description":"The first update for NuGet extension and command line after Visual Studio 2015 RTM.\r\n\r\nThe date is tentative","creator":{"login":"yishaigalatzer","id":1238711,"avatar_url":"https://avatars.githubusercontent.com/u/1238711?v=3","gravatar_id":"","url":"https://api.github.com/users/yishaigalatzer","html_url":"https://github.com/yishaigalatzer","followers_url":"https://api.github.com/users/yishaigalatzer/followers","following_url":"https://api.github.com/users/yishaigalatzer/following{/other_user}","gists_url":"https://api.github.com/users/yishaigalatzer/gists{/gist_id}","starred_url":"https://api.github.com/users/yishaigalatzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yishaigalatzer/subscriptions","organizations_url":"https://api.github.com/users/yishaigalatzer/orgs","repos_url":"https://api.github.com/users/yishaigalatzer/repos","events_url":"https://api.github.com/users/yishaigalatzer/events{/privacy}","received_events_url":"https://api.github.com/users/yishaigalatzer/received_events","type":"User","site_admin":false},"open_issues":162,"closed_issues":7,"state":"open","created_at":"2015-04-07T20:54:03Z","updated_at":"2015-07-07T21:19:55Z","due_on":"2015-08-15T07:00:00Z","closed_at":null},"comments":6,"created_at":"2015-07-02T21:25:23Z","updated_at":"2015-07-07T21:44:32Z","closed_at":null,"body":"Moved from - https://github.com/NuGet/NuGetGallery/issues/2574\r\n\r\nI did a quick search through issues so sorry if this has been mentioned but why are some packages not defining/stating their dependency on .specific NET framework versions?\r\n\r\nFor example... I have a .NET 4.0 Web App and Microsoft.AspNet.Web.Optimization.WebForms v1.1.3 allows me to install it via powershell console. The gallery page does not state that the latest version is for .NET 4.5 but Nuget happily installs the version despite it not being able to add the reference into a .NET 4.0 project.\r\n\r\nSimilar issues with Microsoft.AspNet.Mvc\r\n\r\nAlso the updat-package isn't aware of the .NET dependency and will happily upgrade to the incompatible version.\r\n\r\nIt seems the UI dialog filters out the invalid packages. But it would be nice is the project page in the gallery would also make it a little more obvious.\r\n\r\nNote, I've got installed Package Manager Console Host Version 2.8.60318.734\r\n\r\nHere is some -WhatIf output for my .NET 4.0 Web App...\r\nPM> update-package -WhatIf Microsoft.AspNet.Mvc -ProjectName MyWebApp\r\nUpdating 'Microsoft.AspNet.Mvc' from version '4.0.40804.0' to '5.2.3' in project 'MyWebApp'.\r\nRemove 'Microsoft.AspNet.Mvc 4.0.40804.0' from project MyWebApp.\r\nRemove 'Microsoft.AspNet.WebPages 2.0.30506.0' from project MyWebApp.\r\nRemove 'Microsoft.AspNet.Razor 2.0.30506.0' from project MyWebApp.\r\nAdd 'Microsoft.AspNet.Razor 3.2.3' to project MyWebApp.\r\nInstall 'Microsoft.AspNet.Razor 3.2.3'\r\nAdd 'Microsoft.AspNet.WebPages 3.2.3' to project MyWebApp.\r\nInstall 'Microsoft.AspNet.WebPages 3.2.3'\r\nAdd 'Microsoft.AspNet.Mvc 5.2.3' to project MyWebApp.\r\nInstall 'Microsoft.AspNet.Mvc 5.2.3'\r\nUninstall 'Microsoft.AspNet.Mvc 4.0.40804.0'.\r\nUninstall 'Microsoft.AspNet.WebPages 2.0.30506.0'.\r\nUninstall 'Microsoft.AspNet.Razor 2.0.30506.0'.\r\n\r\nNote, without the -WhatIf it does happily upgrade the packages despite it not being valid."},"comment":{"url":"https://api.github.com/repos/NuGet/Home/issues/comments/119351589","html_url":"https://github.com/NuGet/Home/issues/878#issuecomment-119351589","issue_url":"https://api.github.com/repos/NuGet/Home/issues/878","id":119351589,"user":{"login":"BlackMael","id":8148,"avatar_url":"https://avatars.githubusercontent.com/u/8148?v=3","gravatar_id":"","url":"https://api.github.com/users/BlackMael","html_url":"https://github.com/BlackMael","followers_url":"https://api.github.com/users/BlackMael/followers","following_url":"https://api.github.com/users/BlackMael/following{/other_user}","gists_url":"https://api.github.com/users/BlackMael/gists{/gist_id}","starred_url":"https://api.github.com/users/BlackMael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlackMael/subscriptions","organizations_url":"https://api.github.com/users/BlackMael/orgs","repos_url":"https://api.github.com/users/BlackMael/repos","events_url":"https://api.github.com/users/BlackMael/events{/privacy}","received_events_url":"https://api.github.com/users/BlackMael/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T21:44:32Z","updated_at":"2015-07-07T21:44:32Z","body":"Hi yishaigalatzer\r\n\r\nI'm using NuGet 2.8.60318.734 in both VS2013 Professional and Community Edition."}}