{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/DNX/issues/642","labels_url":"https://api.github.com/repos/aspnet/DNX/issues/642/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/DNX/issues/642/comments","events_url":"https://api.github.com/repos/aspnet/DNX/issues/642/events","html_url":"https://github.com/aspnet/DNX/issues/642","id":43067620,"number":642,"title":"Executing command files from kpm bundle output throws exception on CoreCLR","user":{"login":"Praburaj","id":2294732,"avatar_url":"https://avatars.githubusercontent.com/u/2294732?v=3","gravatar_id":"","url":"https://api.github.com/users/Praburaj","html_url":"https://github.com/Praburaj","followers_url":"https://api.github.com/users/Praburaj/followers","following_url":"https://api.github.com/users/Praburaj/following{/other_user}","gists_url":"https://api.github.com/users/Praburaj/gists{/gist_id}","starred_url":"https://api.github.com/users/Praburaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Praburaj/subscriptions","organizations_url":"https://api.github.com/users/Praburaj/orgs","repos_url":"https://api.github.com/users/Praburaj/repos","events_url":"https://api.github.com/users/Praburaj/events{/privacy}","received_events_url":"https://api.github.com/users/Praburaj/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/DNX/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-09-17T22:04:20Z","updated_at":"2015-03-13T17:14:23Z","closed_at":null,"body":"For example: Create a web app and add a command to execute to use weblistener. \r\n\r\nDo a kpm pack. The pack output has a web.cmd. \r\n\r\nNow run the web.cmd from the kpm pack output using any desktop CLR. Runs fine. Try to run the same command after switching to coreclr (both x86/amd64 reproduces the issue)\r\n\r\nOn AMD64+CoreCLR here is the error:\r\n```\r\nSystem.ArgumentNullException: Value cannot be null.\r\nParameter name: version1\r\n   at NuGet.SemanticVersion.op_LessThan(SemanticVersion version1, SemanticVersion version2)\r\n   at System.Linq.Enumerable.All[TSource](IEnumerable`1 source, Func`2 predicate)\r\n   at Microsoft.Framework.Runtime.WalkContext.<>c__DisplayClass3.<Walk>b__7(Node node, Boolean state)\r\n   at Microsoft.Framework.Runtime.WalkContext.ForEach[TState](Node root, TState state, Func`3 visitor)\r\n   at Microsoft.Framework.Runtime.WalkContext.Walk(IEnumerable`1 dependencyResolvers, String name, SemanticVersion version, FrameworkName frameworkName)\r\n   at Microsoft.Framework.Runtime.DependencyWalker.Walk(String name, SemanticVersion version, FrameworkName targetFramework)\r\n   at Microsoft.Framework.Runtime.DefaultHost.GetEntryPoint(String applicationName)\r\n   at Microsoft.Framework.ApplicationHost.Program.ExecuteMain(DefaultHost host, String applicationName, String[] args)\r\n   at Microsoft.Framework.ApplicationHost.Program.Main(String[] args)\r\n```\r\n\r\nOn X86+CoreCLR here is the error:\r\n```\r\nSystem.ArgumentNullException: Value cannot be null.\r\nParameter name: version1\r\n   at NuGet.SemanticVersion.op_LessThan(SemanticVersion version1, SemanticVersion version2)\r\n   at NuGet.SemanticVersion.op_GreaterThan(SemanticVersion version1, SemanticVersion version2)\r\n   at NuGet.SemanticVersion.op_GreaterThanOrEqual(SemanticVersion version1, SemanticVersion version2)\r\n   at Microsoft.Framework.Runtime.WalkContext.Tracker.<>c__DisplayClass0.<IsBestVersion>b__1(Item known)\r\n   at System.Linq.Enumerable.All[TSource](IEnumerable`1 source, Func`2 predicate)\r\n   at Microsoft.Framework.Runtime.WalkContext.Tracker.IsBestVersion(Item item)\r\n   at Microsoft.Framework.Runtime.WalkContext.<>c__DisplayClass3.<Walk>b__7(Node node, Boolean state)\r\n   at Microsoft.Framework.Runtime.WalkContext.ForEach[TState](Node root, TState state, Func`3 visitor)\r\n   at Microsoft.Framework.Runtime.WalkContext.Walk(IEnumerable`1 dependencyResolvers, String name, SemanticVersion version, FrameworkName frameworkName)\r\n   at Microsoft.Framework.Runtime.DependencyWalker.Walk(String name, SemanticVersion version, FrameworkName targetFramework)\r\n   at Microsoft.Framework.Runtime.DefaultHost.Initialize()\r\n   at Microsoft.Framework.Runtime.DefaultHost.GetEntryPoint(String applicationName)\r\n   at Microsoft.Framework.ApplicationHost.Program.ExecuteMain(DefaultHost host, String applicationName, String[] args)\r\n   at Microsoft.Framework.ApplicationHost.Program.Main(String[] args)\r\n```"},"comment":{"url":"https://api.github.com/repos/aspnet/DNX/issues/comments/79148302","html_url":"https://github.com/aspnet/DNX/issues/642#issuecomment-79148302","issue_url":"https://api.github.com/repos/aspnet/DNX/issues/642","id":79148302,"user":{"login":"glennc","id":234688,"avatar_url":"https://avatars.githubusercontent.com/u/234688?v=3","gravatar_id":"","url":"https://api.github.com/users/glennc","html_url":"https://github.com/glennc","followers_url":"https://api.github.com/users/glennc/followers","following_url":"https://api.github.com/users/glennc/following{/other_user}","gists_url":"https://api.github.com/users/glennc/gists{/gist_id}","starred_url":"https://api.github.com/users/glennc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glennc/subscriptions","organizations_url":"https://api.github.com/users/glennc/orgs","repos_url":"https://api.github.com/users/glennc/repos","events_url":"https://api.github.com/users/glennc/events{/privacy}","received_events_url":"https://api.github.com/users/glennc/received_events","type":"User","site_admin":false},"created_at":"2015-03-13T17:14:23Z","updated_at":"2015-03-13T17:14:23Z","body":"@Praburaj Did you see if this was still an issue?"}}