{"action":"created","issue":{"url":"https://api.github.com/repos/nuke-build/nuke/issues/185","repository_url":"https://api.github.com/repos/nuke-build/nuke","labels_url":"https://api.github.com/repos/nuke-build/nuke/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/nuke-build/nuke/issues/185/comments","events_url":"https://api.github.com/repos/nuke-build/nuke/issues/185/events","html_url":"https://github.com/nuke-build/nuke/issues/185","id":385791700,"node_id":"MDU6SXNzdWUzODU3OTE3MDA=","number":185,"title":"NuGetPath error: Assertion failed: !IncludesDependencies","user":{"login":"gkonterman","id":7427231,"node_id":"MDQ6VXNlcjc0MjcyMzE=","avatar_url":"https://avatars2.githubusercontent.com/u/7427231?v=4","gravatar_id":"","url":"https://api.github.com/users/gkonterman","html_url":"https://github.com/gkonterman","followers_url":"https://api.github.com/users/gkonterman/followers","following_url":"https://api.github.com/users/gkonterman/following{/other_user}","gists_url":"https://api.github.com/users/gkonterman/gists{/gist_id}","starred_url":"https://api.github.com/users/gkonterman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkonterman/subscriptions","organizations_url":"https://api.github.com/users/gkonterman/orgs","repos_url":"https://api.github.com/users/gkonterman/repos","events_url":"https://api.github.com/users/gkonterman/events{/privacy}","received_events_url":"https://api.github.com/users/gkonterman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-11-29T15:32:09Z","updated_at":"2018-11-29T16:01:06Z","closed_at":"2018-11-29T16:01:06Z","author_association":"NONE","body":"It seems Nuke cannot find my nuget.exe. when using `NuGetTasks.NuGetPack` I am getting:\r\n\r\n```\r\nSystem.Exception: 'Assertion failed: !IncludesDependencies([path]\\build\\nuke\\packages.config) || includeDependencies'\r\n```\r\n\r\nSo I try to debug it and the problem is the property `NuGetTasks.NuGetPath;` \r\n\r\nIn the code I see that it checks for a environment variable or else tries to download it (?).  See:\r\nhttps://github.com/nuke-build/nuke/blob/b9a08b5ddf2262e5455fb1617880e467256618e8/source/Nuke.Common/Tools/NuGet/NuGet.Generated.cs#L27\r\n\r\nMy attempt to workaround this issue by doing:\r\n\r\n```Csharp\r\n\r\nEnvironment.SetEnvironmentVariable(\"NUGET_EXE\", @\"D:\\tools\\NuGet.exe\");\r\n--or\r\nEnvironmentInfo.SetVariable(\"NUGET_EXE\", @\"D:\\tools\\NuGet.exe\");\r\n\r\n```\r\n\r\nSomehow it will not pick this up, can I set the tool explicitly? I just want to point it to the right location, but I do not want to permanently set the ENV variable\r\n"},"comment":{"url":"https://api.github.com/repos/nuke-build/nuke/issues/comments/442887913","html_url":"https://github.com/nuke-build/nuke/issues/185#issuecomment-442887913","issue_url":"https://api.github.com/repos/nuke-build/nuke/issues/185","id":442887913,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Mjg4NzkxMw==","user":{"login":"matkoch","id":5005566,"node_id":"MDQ6VXNlcjUwMDU1NjY=","avatar_url":"https://avatars3.githubusercontent.com/u/5005566?v=4","gravatar_id":"","url":"https://api.github.com/users/matkoch","html_url":"https://github.com/matkoch","followers_url":"https://api.github.com/users/matkoch/followers","following_url":"https://api.github.com/users/matkoch/following{/other_user}","gists_url":"https://api.github.com/users/matkoch/gists{/gist_id}","starred_url":"https://api.github.com/users/matkoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matkoch/subscriptions","organizations_url":"https://api.github.com/users/matkoch/orgs","repos_url":"https://api.github.com/users/matkoch/repos","events_url":"https://api.github.com/users/matkoch/events{/privacy}","received_events_url":"https://api.github.com/users/matkoch/received_events","type":"User","site_admin":false},"created_at":"2018-11-29T16:01:06Z","updated_at":"2018-11-29T16:01:06Z","author_association":"MEMBER","body":"I think I will change two things:\r\n\r\n- Change setup to not ask about .NET Core /  MSBuild, because most folks get this the wrong way. But provide a `--legacy` switch, which will allow to opt-in.\r\n- Remove that assertion all along.\r\n\r\nRegarding your other questions, please create a new issue or swing by at our slack channel!"}}
{"actor":{"display_login":"matkoch"}}