{"action":"created","issue":{"url":"https://api.github.com/repos/nightroman/Invoke-Build/issues/15","labels_url":"https://api.github.com/repos/nightroman/Invoke-Build/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/nightroman/Invoke-Build/issues/15/comments","events_url":"https://api.github.com/repos/nightroman/Invoke-Build/issues/15/events","html_url":"https://github.com/nightroman/Invoke-Build/issues/15","id":78257879,"number":15,"title":"Exception Missing default script thrown when no task is specified ","user":{"login":"DaveSenn","id":7510324,"avatar_url":"https://avatars.githubusercontent.com/u/7510324?v=3","gravatar_id":"","url":"https://api.github.com/users/DaveSenn","html_url":"https://github.com/DaveSenn","followers_url":"https://api.github.com/users/DaveSenn/followers","following_url":"https://api.github.com/users/DaveSenn/following{/other_user}","gists_url":"https://api.github.com/users/DaveSenn/gists{/gist_id}","starred_url":"https://api.github.com/users/DaveSenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaveSenn/subscriptions","organizations_url":"https://api.github.com/users/DaveSenn/orgs","repos_url":"https://api.github.com/users/DaveSenn/repos","events_url":"https://api.github.com/users/DaveSenn/events{/privacy}","received_events_url":"https://api.github.com/users/DaveSenn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-19T21:30:58Z","updated_at":"2015-05-20T15:10:27Z","closed_at":"2015-05-20T15:10:27Z","body":"Calling Invoke-Build without specifying a task throws the following exception:\r\n*‘Missing default script.’*\r\nI expected Invoke-Build would run the default task if no task is specified.\r\n\r\nThis is my build script:\r\n```powershell\r\ntask Build {\r\n\tWrite-Host \"Build...\"\r\n}\r\n\r\ntask Clean {\r\n\tWrite-Host \"Clean...\"\r\n}\r\n\r\ntask . Build, Clean\r\n```\r\n\r\nAnd this is how I start the script:\r\n```powershell\r\n.\\packages\\Invoke-Build\\tools\\Invoke-Build .\\.build\\Build.ps1\r\n```\r\n\r\nWhy does Invoke-Build not run the default task?"},"comment":{"url":"https://api.github.com/repos/nightroman/Invoke-Build/issues/comments/103921369","html_url":"https://github.com/nightroman/Invoke-Build/issues/15#issuecomment-103921369","issue_url":"https://api.github.com/repos/nightroman/Invoke-Build/issues/15","id":103921369,"user":{"login":"DaveSenn","id":7510324,"avatar_url":"https://avatars.githubusercontent.com/u/7510324?v=3","gravatar_id":"","url":"https://api.github.com/users/DaveSenn","html_url":"https://github.com/DaveSenn","followers_url":"https://api.github.com/users/DaveSenn/followers","following_url":"https://api.github.com/users/DaveSenn/following{/other_user}","gists_url":"https://api.github.com/users/DaveSenn/gists{/gist_id}","starred_url":"https://api.github.com/users/DaveSenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaveSenn/subscriptions","organizations_url":"https://api.github.com/users/DaveSenn/orgs","repos_url":"https://api.github.com/users/DaveSenn/repos","events_url":"https://api.github.com/users/DaveSenn/events{/privacy}","received_events_url":"https://api.github.com/users/DaveSenn/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T15:10:27Z","updated_at":"2015-05-20T15:10:27Z","body":"Sorry had no time to check you answer until now.\r\nThank you very much for your answer. \r\nSpecifying the name of the parameter works perfectly."}}