{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Tooling/issues/480","repository_url":"https://api.github.com/repos/aspnet/Tooling","labels_url":"https://api.github.com/repos/aspnet/Tooling/issues/480/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Tooling/issues/480/comments","events_url":"https://api.github.com/repos/aspnet/Tooling/issues/480/events","html_url":"https://github.com/aspnet/Tooling/issues/480","id":155107429,"number":480,"title":"Opening a project.json generates invalid xproj file","user":{"login":"dasMulli","id":6129250,"avatar_url":"https://avatars.githubusercontent.com/u/6129250?v=3","gravatar_id":"","url":"https://api.github.com/users/dasMulli","html_url":"https://github.com/dasMulli","followers_url":"https://api.github.com/users/dasMulli/followers","following_url":"https://api.github.com/users/dasMulli/following{/other_user}","gists_url":"https://api.github.com/users/dasMulli/gists{/gist_id}","starred_url":"https://api.github.com/users/dasMulli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dasMulli/subscriptions","organizations_url":"https://api.github.com/users/dasMulli/orgs","repos_url":"https://api.github.com/users/dasMulli/repos","events_url":"https://api.github.com/users/dasMulli/events{/privacy}","received_events_url":"https://api.github.com/users/dasMulli/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/Tooling/labels/TFS%20Tracked","name":"TFS Tracked","color":"009800"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-05-16T19:52:55Z","updated_at":"2016-08-13T23:22:46Z","closed_at":null,"body":"# Steps to reproduce\r\n\r\n* Create a new project using the asp.net core web application template (individual auth, no app insights)\r\n* Close solution.\r\n* Delete `.xproj` and `.xproj.user` files\r\n(This state matches a web application created without VS tooling)\r\n\r\n* File > Open > Project / Solution > select the `project.json` file\r\n\r\n# Expected behavior\r\n\r\nA valid `.xproj` file should be generated and opened successfully.\r\n\r\n# Actional behavior\r\n\r\nAn `.xproj` file is generated that fails to load logging: \r\n```\r\nThe imported project \"C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Web.targets\" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  C:\\Users\\Martin\\Documents\\Visual Studio 2015\\Projects\\WebApplication1\\src\\WebApplication1\\WebApplication1.xproj\r\n```\r\n\r\nThe xproj file contents an invalid reference:\r\n```xml\r\n<Import Project=\"$(VSToolsPath)\\DotNet\\Microsoft.DotNet.Web.targets\" Condition=\"'$(VSToolsPath)' != ''\" />\r\n```\r\n\r\nManually changing the path to `$(VSToolsPath)\\DotNet.Web\\Microsoft.DotNet.Web.targets` fixes this problem.\r\n\r\n# Environment\r\n\r\nWindows 10 x64\r\nVisual Studio 2015 Update 2\r\n(VM Created from Azure VS2015 enterprise on Windows 10 enterprise template)\r\n.NET Core Tooling Preview 1 for Visual Studio 2015"},"comment":{"url":"https://api.github.com/repos/aspnet/Tooling/issues/comments/239646850","html_url":"https://github.com/aspnet/Tooling/issues/480#issuecomment-239646850","issue_url":"https://api.github.com/repos/aspnet/Tooling/issues/480","id":239646850,"user":{"login":"MelbourneDeveloper","id":16697547,"avatar_url":"https://avatars.githubusercontent.com/u/16697547?v=3","gravatar_id":"","url":"https://api.github.com/users/MelbourneDeveloper","html_url":"https://github.com/MelbourneDeveloper","followers_url":"https://api.github.com/users/MelbourneDeveloper/followers","following_url":"https://api.github.com/users/MelbourneDeveloper/following{/other_user}","gists_url":"https://api.github.com/users/MelbourneDeveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/MelbourneDeveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MelbourneDeveloper/subscriptions","organizations_url":"https://api.github.com/users/MelbourneDeveloper/orgs","repos_url":"https://api.github.com/users/MelbourneDeveloper/repos","events_url":"https://api.github.com/users/MelbourneDeveloper/events{/privacy}","received_events_url":"https://api.github.com/users/MelbourneDeveloper/received_events","type":"User","site_admin":false},"created_at":"2016-08-13T23:22:46Z","updated_at":"2016-08-13T23:22:46Z","body":"I'm getting this same issue on one computer. On one computer it works fine, and on the other the file is completely missing. I tried the workaround above but the Microsoft.DotNet.Web.targets doesn't exist in DotNet.Web. When are these tools going to be stable?"}}
{"actor":{"display_login":"MelbourneDeveloper"}}