{"action":"created","issue":{"url":"https://api.github.com/repos/AArnott/Nerdbank.GitVersioning/issues/44","labels_url":"https://api.github.com/repos/AArnott/Nerdbank.GitVersioning/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/AArnott/Nerdbank.GitVersioning/issues/44/comments","events_url":"https://api.github.com/repos/AArnott/Nerdbank.GitVersioning/issues/44/events","html_url":"https://github.com/AArnott/Nerdbank.GitVersioning/issues/44","id":125076836,"number":44,"title":"GetBuildVersion fails when git history used version.json for another object","user":{"login":"ravensorb","id":2222472,"avatar_url":"https://avatars.githubusercontent.com/u/2222472?v=3","gravatar_id":"","url":"https://api.github.com/users/ravensorb","html_url":"https://github.com/ravensorb","followers_url":"https://api.github.com/users/ravensorb/followers","following_url":"https://api.github.com/users/ravensorb/following{/other_user}","gists_url":"https://api.github.com/users/ravensorb/gists{/gist_id}","starred_url":"https://api.github.com/users/ravensorb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravensorb/subscriptions","organizations_url":"https://api.github.com/users/ravensorb/orgs","repos_url":"https://api.github.com/users/ravensorb/repos","events_url":"https://api.github.com/users/ravensorb/events{/privacy}","received_events_url":"https://api.github.com/users/ravensorb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AArnott/Nerdbank.GitVersioning/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"AArnott","id":3548,"avatar_url":"https://avatars.githubusercontent.com/u/3548?v=3","gravatar_id":"","url":"https://api.github.com/users/AArnott","html_url":"https://github.com/AArnott","followers_url":"https://api.github.com/users/AArnott/followers","following_url":"https://api.github.com/users/AArnott/following{/other_user}","gists_url":"https://api.github.com/users/AArnott/gists{/gist_id}","starred_url":"https://api.github.com/users/AArnott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AArnott/subscriptions","organizations_url":"https://api.github.com/users/AArnott/orgs","repos_url":"https://api.github.com/users/AArnott/repos","events_url":"https://api.github.com/users/AArnott/events{/privacy}","received_events_url":"https://api.github.com/users/AArnott/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-01-05T23:31:28Z","updated_at":"2016-01-06T10:43:42Z","closed_at":"2016-01-06T06:54:11Z","body":"I keep getting following when trying to use the gitversioning package\r\n\r\n    1>Target \"GetBuildVersion\" in file \"E:\\Projects\\Github\\ravensorb\\Xamarin-Forms-Labs\\packages\\Nerdbank.GitVersioning.1.2.1\\build\\Nerdbank.GitVersioning.targets\" from project \"E:\\Projects\\Github\\ravensorb\\Xamarin-Forms-Labs\\src\\XLabs.Core\\XLabs.Core.csproj\" (target \"GenerateAssemblyInfo\" depends on it):\r\n    1>Using \"GetBuildVersion\" task from assembly \"E:\\Projects\\Github\\ravensorb\\Xamarin-Forms-Labs\\packages\\Nerdbank.GitVersioning.1.2.1\\build\\Nerdbank.GitVersioning.Tasks.dll\".\r\n    1>Task \"GetBuildVersion\"\r\n    1>E:\\Projects\\Github\\ravensorb\\Xamarin-Forms-Labs\\packages\\Nerdbank.GitVersioning.1.2.1\\build\\Nerdbank.GitVersioning.targets(30,5): error MSB4018: The \"GetBuildVersion\" task failed unexpectedly.\r\n    1>E:\\Projects\\Github\\ravensorb\\Xamarin-Forms-Labs\\packages\\Nerdbank.GitVersioning.1.2.1\\build\\Nerdbank.GitVersioning.targets(30,5): error MSB4018: System.NullReferenceException: Object reference not set to an instance of an object.\r\n    1>E:\\Projects\\Github\\ravensorb\\Xamarin-Forms-Labs\\packages\\Nerdbank.GitVersioning.1.2.1\\build\\Nerdbank.GitVersioning.targets(30,5): error MSB4018:    at Nerdbank.GitVersioning.GitExtensions.GetVersionHeight(Repository repo, String repoRelativeProjectDirectory)\r\n    1>E:\\Projects\\Github\\ravensorb\\Xamarin-Forms-Labs\\packages\\Nerdbank.GitVersioning.1.2.1\\build\\Nerdbank.GitVersioning.targets(30,5): error MSB4018:    at Nerdbank.GitVersioning.Tasks.GetBuildVersion.Execute()\r\n    1>E:\\Projects\\Github\\ravensorb\\Xamarin-Forms-Labs\\packages\\Nerdbank.GitVersioning.1.2.1\\build\\Nerdbank.GitVersioning.targets(30,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()\r\n    1>E:\\Projects\\Github\\ravensorb\\Xamarin-Forms-Labs\\packages\\Nerdbank.GitVersioning.1.2.1\\build\\Nerdbank.GitVersioning.targets(30,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()\r\n    1>Done executing task \"GetBuildVersion\" -- FAILED.\r\n    1>Done building target \"GetBuildVersion\" in project \"XLabs.Core.csproj\" -- FAILED.\r\n\r\nI have tried a rebuild all, a clean and then build, a full reboot, and still I get the same errors.\r\n\r\nHere is the contents of my version.json file (it is at the solution level).  I have also tried at the project level and get the same result\r\n\r\n    { \"version\": \"2.0.5818\" }"},"comment":{"url":"https://api.github.com/repos/AArnott/Nerdbank.GitVersioning/issues/comments/169294871","html_url":"https://github.com/AArnott/Nerdbank.GitVersioning/issues/44#issuecomment-169294871","issue_url":"https://api.github.com/repos/AArnott/Nerdbank.GitVersioning/issues/44","id":169294871,"user":{"login":"ravensorb","id":2222472,"avatar_url":"https://avatars.githubusercontent.com/u/2222472?v=3","gravatar_id":"","url":"https://api.github.com/users/ravensorb","html_url":"https://github.com/ravensorb","followers_url":"https://api.github.com/users/ravensorb/followers","following_url":"https://api.github.com/users/ravensorb/following{/other_user}","gists_url":"https://api.github.com/users/ravensorb/gists{/gist_id}","starred_url":"https://api.github.com/users/ravensorb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravensorb/subscriptions","organizations_url":"https://api.github.com/users/ravensorb/orgs","repos_url":"https://api.github.com/users/ravensorb/repos","events_url":"https://api.github.com/users/ravensorb/events{/privacy}","received_events_url":"https://api.github.com/users/ravensorb/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T10:43:42Z","updated_at":"2016-01-06T10:43:42Z","body":"@AArnott thanks.  And yea, the version.json in the repro is from my current build process.  I was using the following on my local dev env when I was testing \r\n\r\n{ version : \"2.0.5818\" }\r\n\r\nI'll try the new build and let you know.\r\n\r\nThanks again!"}}