{"action":"created","issue":{"url":"https://api.github.com/repos/ElectronNET/Electron.NET/issues/160","repository_url":"https://api.github.com/repos/ElectronNET/Electron.NET","labels_url":"https://api.github.com/repos/ElectronNET/Electron.NET/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/ElectronNET/Electron.NET/issues/160/comments","events_url":"https://api.github.com/repos/ElectronNET/Electron.NET/issues/160/events","html_url":"https://github.com/ElectronNET/Electron.NET/issues/160","id":349808932,"node_id":"MDU6SXNzdWUzNDk4MDg5MzI=","number":160,"title":"Fail to build when using dotnet spa templates","user":{"login":"bravecobra","id":391353,"node_id":"MDQ6VXNlcjM5MTM1Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/391353?v=4","gravatar_id":"","url":"https://api.github.com/users/bravecobra","html_url":"https://github.com/bravecobra","followers_url":"https://api.github.com/users/bravecobra/followers","following_url":"https://api.github.com/users/bravecobra/following{/other_user}","gists_url":"https://api.github.com/users/bravecobra/gists{/gist_id}","starred_url":"https://api.github.com/users/bravecobra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bravecobra/subscriptions","organizations_url":"https://api.github.com/users/bravecobra/orgs","repos_url":"https://api.github.com/users/bravecobra/repos","events_url":"https://api.github.com/users/bravecobra/events{/privacy}","received_events_url":"https://api.github.com/users/bravecobra/received_events","type":"User","site_admin":false},"labels":[{"id":709463740,"node_id":"MDU6TGFiZWw3MDk0NjM3NDA=","url":"https://api.github.com/repos/ElectronNET/Electron.NET/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"GregorBiswanger","id":7336300,"node_id":"MDQ6VXNlcjczMzYzMDA=","avatar_url":"https://avatars0.githubusercontent.com/u/7336300?v=4","gravatar_id":"","url":"https://api.github.com/users/GregorBiswanger","html_url":"https://github.com/GregorBiswanger","followers_url":"https://api.github.com/users/GregorBiswanger/followers","following_url":"https://api.github.com/users/GregorBiswanger/following{/other_user}","gists_url":"https://api.github.com/users/GregorBiswanger/gists{/gist_id}","starred_url":"https://api.github.com/users/GregorBiswanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GregorBiswanger/subscriptions","organizations_url":"https://api.github.com/users/GregorBiswanger/orgs","repos_url":"https://api.github.com/users/GregorBiswanger/repos","events_url":"https://api.github.com/users/GregorBiswanger/events{/privacy}","received_events_url":"https://api.github.com/users/GregorBiswanger/received_events","type":"User","site_admin":false},"assignees":[{"login":"GregorBiswanger","id":7336300,"node_id":"MDQ6VXNlcjczMzYzMDA=","avatar_url":"https://avatars0.githubusercontent.com/u/7336300?v=4","gravatar_id":"","url":"https://api.github.com/users/GregorBiswanger","html_url":"https://github.com/GregorBiswanger","followers_url":"https://api.github.com/users/GregorBiswanger/followers","following_url":"https://api.github.com/users/GregorBiswanger/following{/other_user}","gists_url":"https://api.github.com/users/GregorBiswanger/gists{/gist_id}","starred_url":"https://api.github.com/users/GregorBiswanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GregorBiswanger/subscriptions","organizations_url":"https://api.github.com/users/GregorBiswanger/orgs","repos_url":"https://api.github.com/users/GregorBiswanger/repos","events_url":"https://api.github.com/users/GregorBiswanger/events{/privacy}","received_events_url":"https://api.github.com/users/GregorBiswanger/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-08-12T12:31:10Z","updated_at":"2018-09-27T10:57:24Z","closed_at":null,"author_association":"NONE","body":"I use the angular template of https://github.com/aspnet/templating, but electronizing it fails. The dotnet publish fails at the last step trying to build the SPA\r\n```\r\n<Target Name=\"PublishRunWebpack\" AfterTargets=\"ComputeFilesToPublish\">\r\n    <!-- As part of publishing, ensure the JS resources are freshly built in production mode -->\r\n    <Exec WorkingDirectory=\"$(SpaRoot)\" Command=\"npm install\" />\r\n    <Exec WorkingDirectory=\"$(SpaRoot)\" Command=\"npm run build -- --prod\" />\r\n    <Exec WorkingDirectory=\"$(SpaRoot)\" Command=\"npm run build:ssr -- --prod\" Condition=\" '$(BuildServerSideRenderer)' == 'true' \" />\r\n    <!-- Include the newly-built files in the publish output -->\r\n    <ItemGroup>\r\n      <DistFiles Include=\"$(SpaRoot)dist\\**; $(SpaRoot)dist-server\\**\" />\r\n      <DistFiles Include=\"$(SpaRoot)node_modules\\**\" Condition=\"'$(BuildServerSideRenderer)' == 'true'\" />\r\n      <ResolvedFileToPublish Include=\"@(DistFiles->'%(FullPath)')\" Exclude=\"@(ResolvedFileToPublish)\">\r\n        <RelativePath>%(DistFiles.Identity)</RelativePath>\r\n        <CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>\r\n      </ResolvedFileToPublish>\r\n    </ItemGroup>\r\n  </Target>\r\n```\r\nDoing the `ng build` upfront and commenting the above part out of the csproj, makes it work perfectly. So there must be something going on with the publish function being called during start. "},"comment":{"url":"https://api.github.com/repos/ElectronNET/Electron.NET/issues/comments/425048329","html_url":"https://github.com/ElectronNET/Electron.NET/issues/160#issuecomment-425048329","issue_url":"https://api.github.com/repos/ElectronNET/Electron.NET/issues/160","id":425048329,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTA0ODMyOQ==","user":{"login":"bravecobra","id":391353,"node_id":"MDQ6VXNlcjM5MTM1Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/391353?v=4","gravatar_id":"","url":"https://api.github.com/users/bravecobra","html_url":"https://github.com/bravecobra","followers_url":"https://api.github.com/users/bravecobra/followers","following_url":"https://api.github.com/users/bravecobra/following{/other_user}","gists_url":"https://api.github.com/users/bravecobra/gists{/gist_id}","starred_url":"https://api.github.com/users/bravecobra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bravecobra/subscriptions","organizations_url":"https://api.github.com/users/bravecobra/orgs","repos_url":"https://api.github.com/users/bravecobra/repos","events_url":"https://api.github.com/users/bravecobra/events{/privacy}","received_events_url":"https://api.github.com/users/bravecobra/received_events","type":"User","site_admin":false},"created_at":"2018-09-27T10:57:24Z","updated_at":"2018-09-27T10:57:24Z","author_association":"NONE","body":"I am using .NET Core 2.1 already."}}
{"actor":{"display_login":"bravecobra"}}