{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/2397","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/2397/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/2397/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/2397/events","html_url":"https://github.com/dotnet/cli/issues/2397","id":147423231,"number":2397,"title":"[dotnet build] null exception during build when no packages are resolved","user":{"login":"abpiskunov","id":1592091,"avatar_url":"https://avatars.githubusercontent.com/u/1592091?v=3","gravatar_id":"","url":"https://api.github.com/users/abpiskunov","html_url":"https://github.com/abpiskunov","followers_url":"https://api.github.com/users/abpiskunov/followers","following_url":"https://api.github.com/users/abpiskunov/following{/other_user}","gists_url":"https://api.github.com/users/abpiskunov/gists{/gist_id}","starred_url":"https://api.github.com/users/abpiskunov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abpiskunov/subscriptions","organizations_url":"https://api.github.com/users/abpiskunov/orgs","repos_url":"https://api.github.com/users/abpiskunov/repos","events_url":"https://api.github.com/users/abpiskunov/events{/privacy}","received_events_url":"https://api.github.com/users/abpiskunov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/cli/labels/aspnet","name":"aspnet","color":"0052cc"},{"url":"https://api.github.com/repos/dotnet/cli/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"krwq","id":660048,"avatar_url":"https://avatars.githubusercontent.com/u/660048?v=3","gravatar_id":"","url":"https://api.github.com/users/krwq","html_url":"https://github.com/krwq","followers_url":"https://api.github.com/users/krwq/followers","following_url":"https://api.github.com/users/krwq/following{/other_user}","gists_url":"https://api.github.com/users/krwq/gists{/gist_id}","starred_url":"https://api.github.com/users/krwq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krwq/subscriptions","organizations_url":"https://api.github.com/users/krwq/orgs","repos_url":"https://api.github.com/users/krwq/repos","events_url":"https://api.github.com/users/krwq/events{/privacy}","received_events_url":"https://api.github.com/users/krwq/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dotnet/cli/milestones/3","html_url":"https://github.com/dotnet/cli/milestones/1.0.0-rc2","labels_url":"https://api.github.com/repos/dotnet/cli/milestones/3/labels","id":1343748,"number":3,"title":"1.0.0-rc2","description":"","creator":{"login":"Sridhar-MS","id":9423246,"avatar_url":"https://avatars.githubusercontent.com/u/9423246?v=3","gravatar_id":"","url":"https://api.github.com/users/Sridhar-MS","html_url":"https://github.com/Sridhar-MS","followers_url":"https://api.github.com/users/Sridhar-MS/followers","following_url":"https://api.github.com/users/Sridhar-MS/following{/other_user}","gists_url":"https://api.github.com/users/Sridhar-MS/gists{/gist_id}","starred_url":"https://api.github.com/users/Sridhar-MS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sridhar-MS/subscriptions","organizations_url":"https://api.github.com/users/Sridhar-MS/orgs","repos_url":"https://api.github.com/users/Sridhar-MS/repos","events_url":"https://api.github.com/users/Sridhar-MS/events{/privacy}","received_events_url":"https://api.github.com/users/Sridhar-MS/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":184,"state":"open","created_at":"2015-10-08T01:23:25Z","updated_at":"2016-04-12T23:01:44Z","due_on":"2016-04-22T07:00:00Z","closed_at":null},"comments":8,"created_at":"2016-04-11T13:15:36Z","updated_at":"2016-04-12T23:03:40Z","closed_at":null,"body":"## Steps to reproduce\r\n\r\n- create a new web app (you need to simulate a situation when no dependency packages can be resolved, disable all nuget feeds or something like that\r\n(for me it is happeneing since this is the state when i use latest tooling, there is some mismatch with packages at the moment)\r\n\r\n- build after restore failed\r\n\r\n## Expected  behavior\r\n\r\nlots of build errors , since dependencies/references are missing\r\n\r\n## Actual behavior\r\n\r\n```\r\n1>------ Build started: Project: App1, Configuration: Debug Any CPU ------\r\n1>  C:\\Program Files\\dotnet\\dotnet.exe build \"D:\\dd\\WTE\\Release\\TestResults\\Deploy_asplab 2016-04-11 06_07_37\\Out\\App1\\src\\App1\" --configuration Debug --no-dependencies --build-base-path \"D:\\dd\\WTE\\Release\\TestResults\\Deploy_asplab 2016-04-11 06_07_37\\Out\\App1\\artifacts\"\r\n1>  Compiling App1 for .NETCoreApp,Version=v1.0\r\n1>C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Common.Targets(241,5): error : **Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.\r\n1>C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Common.Targets(241,5): error :    at Microsoft.DotNet.Cli.Utils.ToolPathCalculator.GetLockFilePath(String packageId, NuGetVersion version, NuGetFramework framework)**\r\n1>C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Common.Targets(241,5): error :    at Microsoft.DotNet.Cli.Utils.ProjectToolsCommandResolver.GetToolLockFilePath(LibraryRange toolLibrary, String nugetPackagesRoot)\r\n1>C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Common.Targets(241,5): error :    at Microsoft.DotNet.Cli.Utils.ProjectToolsCommandResolver.GetToolLockFile(LibraryRange toolLibrary, String nugetPackagesRoot)\r\n1>C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Common.Targets(241,5): error :    at Microsoft.DotNet.Cli.Utils.ProjectToolsCommandResolver.ResolveCommandSpecFromToolLibrary(LibraryRange toolLibraryRange, String commandName, IEnumerable`1 args, ProjectContext projectContext)\r\n1>C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Common.Targets(241,5): error :    at Microsoft.DotNet.Cli.Utils.ProjectToolsCommandResolver.ResolveCommandSpecFromAllToolLibraries(IEnumerable`1 toolsLibraries, String commandName, IEnumerable`1 args, ProjectContext projectContext)\r\n1>C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Common.Targets(241,5): error :    at Microsoft.DotNet.Cli.Utils.ProjectToolsCommandResolver.ResolveFromProjectTools(String commandName, IEnumerable`1 args, String projectDirectory)\r\n1>C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Common.Targets(241,5): error :    at Microsoft.DotNet.Cli.Utils.CompositeCommandResolver.Resolve(CommandResolverArguments commandResolverArguments)\r\n1>C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Common.Targets(241,5): error :    at Microsoft.DotNet.Cli.Utils.Command.Create(String commandName, IEnumerable`1 args, NuGetFramework framework, String configuration, String outputPath)\r\n1>C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Common.Targets(241,5): error :    at Microsoft.DotNet.Tools.Compiler.Csc.CompileCscCommand.RunCsc(String[] cscArgs)\r\n1>C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Common.Targets(241,5): error :    at Microsoft.DotNet.Tools.Compiler.Csc.CompileCscCommand.Run(String[] args)\r\n1>C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Common.Targets(241,5): error :    at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient)\r\n1>C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Common.Targets(241,5): error :    at Microsoft.DotNet.Cli.Program.Main(String[] args)\r\n1>C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\DotNet\\Microsoft.DotNet.Common.Targets(241,5): error : C:\\Program Files\\dotnet\\dotnet.exe compile-csc \"@D:\\dd\\WTE\\Release\\TestResults\\Deploy_asplab 2016-04-11 06_07_37\\Out\\App1\\artifacts\\src\\App1\\obj\\Debug\\netcoreapp1.0\\dotnet-compile.rsp\" returned Exit Code -1073741819\r\n1>D:\\dd\\WTE\\Release\\TestResults\\Deploy_asplab 2016-04-11 06_07_37\\Out\\App1\\src\\App1\\project.json(8,58): error NU1001: The dependency Microsoft.AspNetCore.Diagnostics >= 1.0.0-rc2-20507 could not be resolved.\r\n1>D:\\dd\\WTE\\Release\\TestResults\\Deploy_asplab 2016-04-11 06_07_37\\Out\\App1\\src\\App1\\project.json(9,50): error NU1001: The dependency Microsoft.AspNetCore.Mvc >= 1.0.0-rc2-20507 could not be resolved.\r\n1>D:\\dd\\WTE\\Release\\TestResults\\Deploy_asplab 2016-04-11 06_07_37\\Out\\App1\\src\\App1\\project.json(10,61): error NU1001: The dependency Microsoft.AspNetCore.Mvc.TagHelpers >= 1.0.0-rc2-20507 could not be resolved.\r\n1>D:\\dd\\WTE\\Release\\TestResults\\Deploy_asplab 2016-04-11 06_07_37\\Out\\App1\\src\\App1\\project.json(11,68): error NU1001: The dependency Microsoft.AspNetCore.Server.IISIntegration >= 1.0.0-rc2-20507 could not be resolved.\r\n1>D:\\dd\\WTE\\Release\\TestResults\\Deploy_asplab 2016-04-11 06_07_37\\Out\\App1\\src\\App1\\project.json(12,61): error NU1001: The dependency Microsoft.AspNetCore.Server.Kestrel >= 1.0.0-rc2-20507 could not be resolved.\r\n1>D:\\dd\\WTE\\Release\\TestResults\\Deploy_asplab 2016-04-11 06_07_37\\Out\\App1\\src\\App1\\project.json(13,58): error NU1001: The dependency Microsoft.AspNetCore.StaticFiles >= 1.0.0-rc2-20507 could not be resolved.\r\n1>D:\\dd\\WTE\\Release\\TestResults\\Deploy_asplab 2016-04-11 06_07_37\\Out\\App1\\src\\App1\\project.json(14,75): error NU1001: The dependency Microsoft.Extensions.Configuration.FileExtensions >= 1.0.0-rc2-20507 could not be resolved.\r\n1>D:\\dd\\WTE\\Release\\TestResults\\Deploy_asplab 2016-04-11 06_07_37\\Out\\App1\\src\\App1\\project.json(15,65): error NU1001: The dependency Microsoft.Extensions.Configuration.Json >= 1.0.0-rc2-20507 could not be resolved.\r\n1>D:\\dd\\WTE\\Release\\TestResults\\Deploy_asplab 2016-04-11 06_07_37\\Out\\App1\\src\\App1\\project.json(16,54): error NU1001: The dependency Microsoft.Extensions.Logging >= 1.0.0-rc2-20507 could not be resolved.\r\n1>D:\\dd\\WTE\\Release\\TestResults\\Deploy_asplab 2016-04-11 06_07_37\\Out\\App1\\src\\App1\\project.json(17,62): error NU1001: The dependency Microsoft.Extensions.Logging.Console >= 1.0.0-rc2-20507 could not be resolved.\r\n1>D:\\dd\\WTE\\Release\\TestResults\\Deploy_asplab 2016-04-11 06_07_37\\Out\\App1\\src\\App1\\project.json(18,60): error NU1001: The dependency Microsoft.Extensions.Logging.Debug >= 1.0.0-rc2-20507 could not be resolved.\r\n1>D:\\dd\\WTE\\Release\\TestResults\\Deploy_asplab 2016-04-11 06_07_37\\Out\\App1\\src\\App1\\project.json(23,72): error NU1001: The dependency Microsoft.VisualStudio.Web.BrowserLink.Loader >= 14.0.0-rc2-20507 could not be resolved.\r\n1>  Compilation failed.\r\n1>      0 Warning(s)\r\n1>      12 Error(s)\r\n1>  Time elapsed 00:00:01.3271302\r\n========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========\r\n```\r\n\r\n## Environment data\r\n`dotnet --info` output:\r\n\r\n\r\n\r\nC:\\Windows\\system32>dotnet --info\r\n.NET Command Line Tools (1.0.0-beta-002275)\r\n\r\nProduct Information:\r\n Version:     1.0.0-beta-002275\r\n Commit Sha:  4af7437aa6\r\n\r\nRuntime Environment:\r\n OS Name:     Windows\r\n OS Version:  6.3.9600\r\n OS Platform: Windows\r\n RID:         win81-x64\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/209141014","html_url":"https://github.com/dotnet/cli/issues/2397#issuecomment-209141014","issue_url":"https://api.github.com/repos/dotnet/cli/issues/2397","id":209141014,"user":{"login":"piotrpMSFT","id":2379589,"avatar_url":"https://avatars.githubusercontent.com/u/2379589?v=3","gravatar_id":"","url":"https://api.github.com/users/piotrpMSFT","html_url":"https://github.com/piotrpMSFT","followers_url":"https://api.github.com/users/piotrpMSFT/followers","following_url":"https://api.github.com/users/piotrpMSFT/following{/other_user}","gists_url":"https://api.github.com/users/piotrpMSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/piotrpMSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotrpMSFT/subscriptions","organizations_url":"https://api.github.com/users/piotrpMSFT/orgs","repos_url":"https://api.github.com/users/piotrpMSFT/repos","events_url":"https://api.github.com/users/piotrpMSFT/events{/privacy}","received_events_url":"https://api.github.com/users/piotrpMSFT/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T23:03:40Z","updated_at":"2016-04-12T23:03:40Z","body":"@krwq will have a fix tomorrow."}}