{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/JavaScriptServices/issues/538","repository_url":"https://api.github.com/repos/aspnet/JavaScriptServices","labels_url":"https://api.github.com/repos/aspnet/JavaScriptServices/issues/538/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/JavaScriptServices/issues/538/comments","events_url":"https://api.github.com/repos/aspnet/JavaScriptServices/issues/538/events","html_url":"https://github.com/aspnet/JavaScriptServices/issues/538","id":197387525,"number":538,"title":"Deploy on Azure fails error MSB4019","user":{"login":"psaussure","id":24230585,"avatar_url":"https://avatars.githubusercontent.com/u/24230585?v=3","gravatar_id":"","url":"https://api.github.com/users/psaussure","html_url":"https://github.com/psaussure","followers_url":"https://api.github.com/users/psaussure/followers","following_url":"https://api.github.com/users/psaussure/following{/other_user}","gists_url":"https://api.github.com/users/psaussure/gists{/gist_id}","starred_url":"https://api.github.com/users/psaussure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psaussure/subscriptions","organizations_url":"https://api.github.com/users/psaussure/orgs","repos_url":"https://api.github.com/users/psaussure/repos","events_url":"https://api.github.com/users/psaussure/events{/privacy}","received_events_url":"https://api.github.com/users/psaussure/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-23T15:32:20Z","updated_at":"2016-12-23T16:04:18Z","closed_at":null,"body":"## Bug on Azure Deploy\r\n*Just created a new project, let dependencies update then, via GIT method, tried to deploy on Azure. An error occurs.*\r\n\r\nFollowing: http://blog.stevensanderson.com/2016/10/04/angular2-template-for-visual-studio/#publishing-to-azure\r\n\r\n## Steps\r\n### Install all required VS2015 packages:\r\n- Core 1.0.1\r\n- npm and node last versions\r\n- VS2015 Update 3\r\n- Typescript for VS\r\n- Install ASP.NET Core Template Pack extension\r\n\r\n- Local `dotnet --version ->\r\n1.0.0-preview2-003131`\r\n- Local node version: `7.2.1`\r\n\r\n### Create and run the project in VS2015\r\n- Create new project -> \"ASP.NET Core Angular2 Starter Application\" > C:\\Angular2Application1\r\n- I don't modify anything\r\n- `git init` in \"C:\\Angular2Application1\\Angular2Application1\" (not at root level where sln file is, but where package.json and project.json are)\r\n\r\n- **Run the App in VS2015**: **works perfectly**\r\n\r\n- first `git commit`\r\n\r\n### Setup Azure Web App\r\n![nodeversion](https://cloud.githubusercontent.com/assets/24230585/21456476/547ad252-c8f6-11e6-9872-69ebc17b8f72.PNG)\r\n- Deployement option set to `local git`\r\n- `git remote add azure https://azurewebap-git-repo-url`\r\n- `git push azure master`\r\n\r\n## On Push to Azure, Error summary\r\n```D:\\home\\site\\repository\\Angular2Application1.xproj(8,3): error MSB4019: The imported project \"D:\\Program Files (x86)\\dotnet\\sdk\\1.0.0-preview3-004056\\Extensions\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Props\" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.```\r\n\r\n## On push to Azure, log\r\n```\r\nremote: D:\\home\\site\\repository\\project.json\r\nremote: Restore completed in 67974ms.\r\nremote:\r\nremote: NuGet Config files used:\r\nremote:     C:\\DWASFiles\\Sites\\#1myapp14446564\\AppData\\NuGet\\NuGet.Config\r\nremote:\r\nremote: Feeds used:\r\nremote:     https://api.nuget.org/v3/index.json\r\nremote:\r\nremote: Installed:\r\nremote:     212 package(s) to D:\\home\\site\\repository\\project.json\r\nremote: Microsoft (R) Build Engine version 15.1.0.0\r\nremote: Copyright (C) Microsoft Corporation. All rights reserved.\r\nremote:\r\nremote: Build started 12/23/2016 3:10:38 PM.\r\nremote:      1>Project \"D:\\home\\site\\repository\\Angular2Application1.xproj\" on node 1 (Publish target(s)).\r\nremote:      1>D:\\home\\site\\repository\\Angular2Application1.xproj(8,3): error MSB4019: The imported project \"D:\\Program Files (x86)\\dotnet\\sdk\\1.0.0-preview3-004056\\Extensions\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Props\" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.\r\nremote:      1>Done Building Project \"D:\\home\\site\\repository\\Angular2Application1.xproj\" (Publish target(s)) -- FAILED.\r\nremote:\r\nremote: Build FAILED.\r\nremote:\r\nremote:        \"D:\\home\\site\\repository\\Angular2Application1.xproj\" (Publish target) (1) ->\r\nremote:          D:\\home\\site\\repository\\Angular2Application1.xproj(8,3): error MSB4019: The imported project \"D:\\Program Files (x86)\\dotnet\\sdk\\1.0.0-preview3-004056\\Extensions\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Props\" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.\r\nremote:\r\nremote:     0 Warning(s)\r\nremote:     1 Error(s)\r\nremote:\r\nremote: Time Elapsed 00:00:00.39\r\nremote: Failed exitCode=1, command=dotnet publish \"Angular2Application1.xproj\" --output \"D:\\local\\Temp\\8d42b45add7eef8\" --configuration Release\r\nremote: An error has occurred during web site deployment.\r\nremote:\r\nremote: Error - Changes committed to remote repository but deployment to website failed.\r\n```\r\n\r\nMore complete log Here: [PasteBin](http://pastebin.com/gRnxsQhs)\r\n\r\n## Local console\r\n```\r\ndotnet --version\r\nD:\\home\\site\\wwwroot\r\n1.0.0-preview3-004056\r\n```\r\n\r\nDo you know why build fails?"},"comment":{"url":"https://api.github.com/repos/aspnet/JavaScriptServices/issues/comments/269010767","html_url":"https://github.com/aspnet/JavaScriptServices/issues/538#issuecomment-269010767","issue_url":"https://api.github.com/repos/aspnet/JavaScriptServices/issues/538","id":269010767,"user":{"login":"parys","id":3513357,"avatar_url":"https://avatars.githubusercontent.com/u/3513357?v=3","gravatar_id":"","url":"https://api.github.com/users/parys","html_url":"https://github.com/parys","followers_url":"https://api.github.com/users/parys/followers","following_url":"https://api.github.com/users/parys/following{/other_user}","gists_url":"https://api.github.com/users/parys/gists{/gist_id}","starred_url":"https://api.github.com/users/parys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parys/subscriptions","organizations_url":"https://api.github.com/users/parys/orgs","repos_url":"https://api.github.com/users/parys/repos","events_url":"https://api.github.com/users/parys/events{/privacy}","received_events_url":"https://api.github.com/users/parys/received_events","type":"User","site_admin":false},"created_at":"2016-12-23T16:04:18Z","updated_at":"2016-12-23T16:04:18Z","body":"I think yes. Because MS wants to revert project.json to cproj. And starting new project better in new environment. That's helps you to avoid migration things. That's my point of view."}}
{"actor":{"display_login":"parys"}}