{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Home/issues/1251","labels_url":"https://api.github.com/repos/aspnet/Home/issues/1251/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Home/issues/1251/comments","events_url":"https://api.github.com/repos/aspnet/Home/issues/1251/events","html_url":"https://github.com/aspnet/Home/issues/1251","id":127937670,"number":1251,"title":"Availability of types when building for dotnet5.4","user":{"login":"bryanjhogan","id":5768871,"avatar_url":"https://avatars.githubusercontent.com/u/5768871?v=3","gravatar_id":"","url":"https://api.github.com/users/bryanjhogan","html_url":"https://github.com/bryanjhogan","followers_url":"https://api.github.com/users/bryanjhogan/followers","following_url":"https://api.github.com/users/bryanjhogan/following{/other_user}","gists_url":"https://api.github.com/users/bryanjhogan/gists{/gist_id}","starred_url":"https://api.github.com/users/bryanjhogan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryanjhogan/subscriptions","organizations_url":"https://api.github.com/users/bryanjhogan/orgs","repos_url":"https://api.github.com/users/bryanjhogan/repos","events_url":"https://api.github.com/users/bryanjhogan/events{/privacy}","received_events_url":"https://api.github.com/users/bryanjhogan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-21T14:38:12Z","updated_at":"2016-01-21T15:25:02Z","closed_at":null,"body":"I have a simple class like - \r\n\r\n    using System;\r\n    using System.ComponentModel;\r\n    using System.Reflection;\r\n    \r\n    namespace Common\r\n    {\r\n        public static class ExtensionMethods\r\n        {\r\n            public static string Description(this Enum value)\r\n            {\r\n                FieldInfo fi = value.GetType().GetField(value.ToString());\r\n    \r\n                DescriptionAttribute[] attributes =\r\n                    (DescriptionAttribute[])fi.GetCustomAttributes(\r\n                    typeof(DescriptionAttribute),\r\n                    false);\r\n    \r\n                if (attributes.Length > 0)\r\n                {\r\n                    return attributes[0].Description;\r\n                }\r\n    \r\n                return value.ToString();\r\n            }\r\n        }\r\n    }\r\n\r\nBut I'm getting this compile error - \r\n\r\n> Severity\tCode\tDescription\tProject\tFile\tLine\tSuppression State\r\n> Error\tCS0246\tThe type or namespace name 'DescriptionAttribute' could\r\n> not be found (are you missing a using directive or an assembly\r\n> reference?)\tFund.FundEntitlement.Common..NET Platform\r\n> 5.4\tC:\\dev\\Repos\\Finomial.InternalServices\\Fund.FundEntitlement\\Fund.FundEntitlement.Common\\ExtensionMethods.cs\t13\tActive\r\n\r\n\r\nMy project.json is \r\n\r\n    {\r\n      \"version\": \"1.0.0-*\",\r\n      \"description\": \"Common Class Library\",\r\n      \"authors\": [ \"bryan\" ],\r\n      \"tags\": [ \"\" ],\r\n      \"projectUrl\": \"\",\r\n      \"licenseUrl\": \"\",\r\n    \r\n      \"frameworks\": {\r\n        \"net451\": { },\r\n        \"dotnet5.4\": {\r\n          \"dependencies\": {\r\n            \"Microsoft.CSharp\": \"4.0.1-beta-23516\",\r\n            \"System.Collections\": \"4.0.11-beta-23516\",\r\n            \"System.Linq\": \"4.0.1-beta-23516\",\r\n            \"System.Runtime\": \"4.0.21-beta-23516\",\r\n            \"System.Threading\": \"4.0.11-beta-23516\"\r\n          }\r\n        }\r\n      }\r\n    }\r\n\r\nWhat am I doing wrong?"},"comment":{"url":"https://api.github.com/repos/aspnet/Home/issues/comments/173605129","html_url":"https://github.com/aspnet/Home/issues/1251#issuecomment-173605129","issue_url":"https://api.github.com/repos/aspnet/Home/issues/1251","id":173605129,"user":{"login":"bryanjhogan","id":5768871,"avatar_url":"https://avatars.githubusercontent.com/u/5768871?v=3","gravatar_id":"","url":"https://api.github.com/users/bryanjhogan","html_url":"https://github.com/bryanjhogan","followers_url":"https://api.github.com/users/bryanjhogan/followers","following_url":"https://api.github.com/users/bryanjhogan/following{/other_user}","gists_url":"https://api.github.com/users/bryanjhogan/gists{/gist_id}","starred_url":"https://api.github.com/users/bryanjhogan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bryanjhogan/subscriptions","organizations_url":"https://api.github.com/users/bryanjhogan/orgs","repos_url":"https://api.github.com/users/bryanjhogan/repos","events_url":"https://api.github.com/users/bryanjhogan/events{/privacy}","received_events_url":"https://api.github.com/users/bryanjhogan/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T15:25:02Z","updated_at":"2016-01-21T15:25:02Z","body":"But what if I'm targeting \"dotnet5.4\"? "}}