{"action":"closed","issue":{"url":"https://api.github.com/repos/aspnet/Docs/issues/7871","repository_url":"https://api.github.com/repos/aspnet/Docs","labels_url":"https://api.github.com/repos/aspnet/Docs/issues/7871/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Docs/issues/7871/comments","events_url":"https://api.github.com/repos/aspnet/Docs/issues/7871/events","html_url":"https://github.com/aspnet/Docs/issues/7871","id":345798591,"node_id":"MDU6SXNzdWUzNDU3OTg1OTE=","number":7871,"title":"Convert to plugin architecture?","user":{"login":"eric-914","id":34312830,"node_id":"MDQ6VXNlcjM0MzEyODMw","avatar_url":"https://avatars2.githubusercontent.com/u/34312830?v=4","gravatar_id":"","url":"https://api.github.com/users/eric-914","html_url":"https://github.com/eric-914","followers_url":"https://api.github.com/users/eric-914/followers","following_url":"https://api.github.com/users/eric-914/following{/other_user}","gists_url":"https://api.github.com/users/eric-914/gists{/gist_id}","starred_url":"https://api.github.com/users/eric-914/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eric-914/subscriptions","organizations_url":"https://api.github.com/users/eric-914/orgs","repos_url":"https://api.github.com/users/eric-914/repos","events_url":"https://api.github.com/users/eric-914/events{/privacy}","received_events_url":"https://api.github.com/users/eric-914/received_events","type":"User","site_admin":false},"labels":[{"id":566146594,"node_id":"MDU6TGFiZWw1NjYxNDY1OTQ=","url":"https://api.github.com/repos/aspnet/Docs/labels/P3","name":"P3","color":"5319e7","default":false},{"id":918734558,"node_id":"MDU6TGFiZWw5MTg3MzQ1NTg=","url":"https://api.github.com/repos/aspnet/Docs/labels/Source%20-%20Docs.ms","name":"Source - Docs.ms","color":"77f966","default":false},{"id":943989428,"node_id":"MDU6TGFiZWw5NDM5ODk0Mjg=","url":"https://api.github.com/repos/aspnet/Docs/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/aspnet/Docs/milestones/4","html_url":"https://github.com/aspnet/Docs/milestone/4","labels_url":"https://api.github.com/repos/aspnet/Docs/milestones/4/labels","id":1356168,"node_id":"MDk6TWlsZXN0b25lMTM1NjE2OA==","number":4,"title":"Backlog","description":"Issues that have been triaged but aren’t yet scheduled. Issues not assigned to any milestone are those that have not been triaged.","creator":{"login":"danroth27","id":1874516,"node_id":"MDQ6VXNlcjE4NzQ1MTY=","avatar_url":"https://avatars2.githubusercontent.com/u/1874516?v=4","gravatar_id":"","url":"https://api.github.com/users/danroth27","html_url":"https://github.com/danroth27","followers_url":"https://api.github.com/users/danroth27/followers","following_url":"https://api.github.com/users/danroth27/following{/other_user}","gists_url":"https://api.github.com/users/danroth27/gists{/gist_id}","starred_url":"https://api.github.com/users/danroth27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danroth27/subscriptions","organizations_url":"https://api.github.com/users/danroth27/orgs","repos_url":"https://api.github.com/users/danroth27/repos","events_url":"https://api.github.com/users/danroth27/events{/privacy}","received_events_url":"https://api.github.com/users/danroth27/received_events","type":"User","site_admin":false},"open_issues":395,"closed_issues":908,"state":"open","created_at":"2015-10-14T20:43:26Z","updated_at":"2019-01-04T04:49:51Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2018-07-30T15:06:04Z","updated_at":"2019-01-04T04:49:52Z","closed_at":"2019-01-04T04:49:51Z","author_association":"NONE","body":"I very much appreciate this page, and the idea of pushing views into reusable components.  But I'm wondering if this can be pushed to the next step, and have these components loaded as plugins?  This way the website wouldn't require a direct dependency to the component?\n\nI suspect this is possible based on the following successful experiment:\n1) I built the above project/library combo with the dependency, and it created a .deps.json file.  This is able to find the library views ok.\n2) I built the above project/library combo, but this time w/out the dependency.  It created a different .deps.json file.  This time, it was NOT able to find the library views.  (Expected)\n3) However, if I overwrite the .deps.json file with the original .deps.json file, when I run the project, it finds the library views.\n\nThis shows me it is possible to build the project w/out a direct dependency on the library, and still be able to make use of it at runtime, by manipulating the .deps.json file.  (Hmmmm, I wonder if this is a security risk?)\n\nAnyway, it's a hack, and would prefer to load the library views as a plugin.\n\n\n\n---\n#### Document Details\n\n⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*\n\n* ID: 9fd019c7-ceb7-6ef3-26ba-6b44341b6fc5\n* Version Independent ID: fd116d00-0dc7-efaf-c714-34d77b345a05\n* Content: [Reusable Razor UI in class libraries with ASP.NET Core](https://docs.microsoft.com/en-us/aspnet/core/razor-pages/ui-class?view=aspnetcore-2.1&tabs=visual-studio)\n* Content Source: [aspnetcore/razor-pages/ui-class.md](https://github.com/aspnet/Docs/blob/master/aspnetcore/razor-pages/ui-class.md)\n* Product: **aspnet-core**\n* GitHub Login: @Rick-Anderson\n* Microsoft Alias: **riande**"}}
{"actor":{"display_login":"Rick-Anderson"}}