{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/project-system/issues/2678","repository_url":"https://api.github.com/repos/dotnet/project-system","labels_url":"https://api.github.com/repos/dotnet/project-system/issues/2678/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/project-system/issues/2678/comments","events_url":"https://api.github.com/repos/dotnet/project-system/issues/2678/events","html_url":"https://github.com/dotnet/project-system/issues/2678","id":247119964,"number":2678,"title":"Adding item templates doesn't effect the project if EnableDefaultCompileItems is set to false.","user":{"login":"ericstj","id":8918108,"avatar_url":"https://avatars3.githubusercontent.com/u/8918108?v=4","gravatar_id":"","url":"https://api.github.com/users/ericstj","html_url":"https://github.com/ericstj","followers_url":"https://api.github.com/users/ericstj/followers","following_url":"https://api.github.com/users/ericstj/following{/other_user}","gists_url":"https://api.github.com/users/ericstj/gists{/gist_id}","starred_url":"https://api.github.com/users/ericstj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericstj/subscriptions","organizations_url":"https://api.github.com/users/ericstj/orgs","repos_url":"https://api.github.com/users/ericstj/repos","events_url":"https://api.github.com/users/ericstj/events{/privacy}","received_events_url":"https://api.github.com/users/ericstj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-01T16:02:01Z","updated_at":"2017-09-04T02:19:29Z","closed_at":null,"author_association":"MEMBER","body":"Using 15.3 preview 26723.0.d15rel\r\n\r\n1. Create new NETStandard library project.\r\n2. Edit the CSproj to set EnableDefaultCompileItems and manually include class1.cs.  EG:\r\n```xml\r\n<Project Sdk=\"Microsoft.NET.Sdk\">\r\n\r\n  <PropertyGroup>\r\n    <TargetFramework>netstandard1.4</TargetFramework>\r\n    <EnableDefaultCompileItems>false</EnableDefaultCompileItems>\r\n  </PropertyGroup>\r\n\r\n  <ItemGroup>\r\n    <Compile Include=\"Class1.cs\" />\r\n  </ItemGroup>\r\n\r\n</Project>\r\n```\r\n3. Do Add > New Item and select a class.  Name it \"test\".\r\n4. In Class1.cs try to instantiate \"test\".\r\n\r\nExpect: compile works and item is added to csproj.\r\n\r\nActual: added item is missing from project, but appears in the solution hierarchy 😕 \r\nUnloading and reloading the project maintains this state.  The added item remains missing from the project file.  I can't seem to do anything to get the file to disappear from the hierarchy.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/project-system/issues/comments/326851552","html_url":"https://github.com/dotnet/project-system/issues/2678#issuecomment-326851552","issue_url":"https://api.github.com/repos/dotnet/project-system/issues/2678","id":326851552,"user":{"login":"davkean","id":1103906,"avatar_url":"https://avatars1.githubusercontent.com/u/1103906?v=4","gravatar_id":"","url":"https://api.github.com/users/davkean","html_url":"https://github.com/davkean","followers_url":"https://api.github.com/users/davkean/followers","following_url":"https://api.github.com/users/davkean/following{/other_user}","gists_url":"https://api.github.com/users/davkean/gists{/gist_id}","starred_url":"https://api.github.com/users/davkean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davkean/subscriptions","organizations_url":"https://api.github.com/users/davkean/orgs","repos_url":"https://api.github.com/users/davkean/repos","events_url":"https://api.github.com/users/davkean/events{/privacy}","received_events_url":"https://api.github.com/users/davkean/received_events","type":"User","site_admin":false},"created_at":"2017-09-04T02:19:28Z","updated_at":"2017-09-04T02:19:28Z","author_association":"MEMBER","body":"Ah, you added the class via a template and we didn't add to the Compile glob. Hmm, unsure who's bug this is."}}
{"actor":{"display_login":"davkean"}}