{"action":"created","issue":{"url":"https://api.github.com/repos/nsubstitute/NSubstitute/issues/197","repository_url":"https://api.github.com/repos/nsubstitute/NSubstitute","labels_url":"https://api.github.com/repos/nsubstitute/NSubstitute/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/nsubstitute/NSubstitute/issues/197/comments","events_url":"https://api.github.com/repos/nsubstitute/NSubstitute/issues/197/events","html_url":"https://github.com/nsubstitute/NSubstitute/pull/197","id":102338633,"number":197,"title":"[WIP] Add .NET Core support (Option 2)","user":{"login":"alexandrnikitin","id":1798438,"avatar_url":"https://avatars.githubusercontent.com/u/1798438?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandrnikitin","html_url":"https://github.com/alexandrnikitin","followers_url":"https://api.github.com/users/alexandrnikitin/followers","following_url":"https://api.github.com/users/alexandrnikitin/following{/other_user}","gists_url":"https://api.github.com/users/alexandrnikitin/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandrnikitin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandrnikitin/subscriptions","organizations_url":"https://api.github.com/users/alexandrnikitin/orgs","repos_url":"https://api.github.com/users/alexandrnikitin/repos","events_url":"https://api.github.com/users/alexandrnikitin/events{/privacy}","received_events_url":"https://api.github.com/users/alexandrnikitin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-21T09:34:25Z","updated_at":"2016-02-04T18:54:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nsubstitute/NSubstitute/pulls/197","html_url":"https://github.com/nsubstitute/NSubstitute/pull/197","diff_url":"https://github.com/nsubstitute/NSubstitute/pull/197.diff","patch_url":"https://github.com/nsubstitute/NSubstitute/pull/197.patch"},"body":"This is another option how to get .NET Core support for #192. I prefer this one more comparing to #193. Approach is borrowed from [Automapper](https://github.com/automapper/automapper) project.\r\n\r\n* Introduced `Class Library (Package)` project that targets .Net 4, 4.5 and Core which replaced original `NSubstitute.csproj`.\r\n* Introduced `TypeExtensions` under `System.Reflection` namespace that handles all work with types.\r\n* Included `Castle.Core` assembly compiled against .NET Core based on https://github.com/castleproject/Core/pull/92\r\n* Tests projects are unloaded because cannot reference new `Class Library (Package)` type of project. To solve that we need to introduce separate old type projects like `AutoMapper` does.\r\n\r\nTODO:\r\n\r\n- [ ] drop .Net 3.5 support?\r\n- [x] add old type of class library project and enable tests against it\r\n- [ ] adjust FAKE build scripts to build new type of project\r\n- [ ] add ILMerge for .NET Core project (better to have it in build script)\r\n- [ ] publish alpha version of .NET Core support\r\n- [ ] TBA\r\n\r\n\r\nFeedback is appreciated."},"comment":{"url":"https://api.github.com/repos/nsubstitute/NSubstitute/issues/comments/179999454","html_url":"https://github.com/nsubstitute/NSubstitute/pull/197#issuecomment-179999454","issue_url":"https://api.github.com/repos/nsubstitute/NSubstitute/issues/197","id":179999454,"user":{"login":"alexandrnikitin","id":1798438,"avatar_url":"https://avatars.githubusercontent.com/u/1798438?v=3","gravatar_id":"","url":"https://api.github.com/users/alexandrnikitin","html_url":"https://github.com/alexandrnikitin","followers_url":"https://api.github.com/users/alexandrnikitin/followers","following_url":"https://api.github.com/users/alexandrnikitin/following{/other_user}","gists_url":"https://api.github.com/users/alexandrnikitin/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandrnikitin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandrnikitin/subscriptions","organizations_url":"https://api.github.com/users/alexandrnikitin/orgs","repos_url":"https://api.github.com/users/alexandrnikitin/repos","events_url":"https://api.github.com/users/alexandrnikitin/events{/privacy}","received_events_url":"https://api.github.com/users/alexandrnikitin/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T18:54:06Z","updated_at":"2016-02-04T18:54:06Z","body":"Quick status update:\r\n1. The latest master is merged. \r\n2. Build works: `build.bat \"BuildProjectsDNX\"`\r\n3. Tested in a .NET Core app. It works.\r\n3. I'm struggling with ILMerge and cannot make it work for .NET Core. Help is appreciated :blush: "}}