{"action":"opened","issue":{"url":"https://api.github.com/repos/Excel-DNA/ExcelDna/issues/7","labels_url":"https://api.github.com/repos/Excel-DNA/ExcelDna/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/Excel-DNA/ExcelDna/issues/7/comments","events_url":"https://api.github.com/repos/Excel-DNA/ExcelDna/issues/7/events","html_url":"https://github.com/Excel-DNA/ExcelDna/issues/7","id":85554242,"number":7,"title":"ExcelDnaPack has a problem with output file paths without directory component","user":{"login":"phrrngtn","id":65653,"avatar_url":"https://avatars.githubusercontent.com/u/65653?v=3","gravatar_id":"","url":"https://api.github.com/users/phrrngtn","html_url":"https://github.com/phrrngtn","followers_url":"https://api.github.com/users/phrrngtn/followers","following_url":"https://api.github.com/users/phrrngtn/following{/other_user}","gists_url":"https://api.github.com/users/phrrngtn/gists{/gist_id}","starred_url":"https://api.github.com/users/phrrngtn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phrrngtn/subscriptions","organizations_url":"https://api.github.com/users/phrrngtn/orgs","repos_url":"https://api.github.com/users/phrrngtn/repos","events_url":"https://api.github.com/users/phrrngtn/events{/privacy}","received_events_url":"https://api.github.com/users/phrrngtn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-05T15:06:17Z","updated_at":"2015-06-05T15:06:17Z","closed_at":null,"body":"from https://exceldna.codeplex.com/workitem/9366\r\n\r\nMe:\r\n> I had to be very careful with the command-line arguments to ExcelDnaPack. My previous comment about packing failing was due to omitting leading '.\\ ' from the paths and had nothing to do with mixed-mode assemblies (I incorrectly thought it had something to do with this as I had a reference to a mixed mode assembly in the solution but was not referencing it in the anywhere else in the code nor in the .dna)\r\n\r\n\r\nGovert:\r\n> Are you saying that it makes a difference to ExcelDnaPack whether put the arguments as \".\\XXX.dna\" vs. just \"XXX.dna\"? Do you have any idea why that would be?\r\n\r\n\r\nReproduce by omitting the leading .\\\r\n```\r\nC:\\work\\DummyCTP\\DummyCTP\\bin\\Debug>ExcelDnaPack.exe DummyCTP.dna /O DummyCTP.xll /Y\r\nOutput directory could not be created. Error: Path cannot be the empty string or all whitespace.\r\n\r\nExiting ExcelDnaPack.\r\n```\r\nThe problem appears to be with this line:\r\n```\r\n   string outputDirectory = Path.GetDirectoryName(xllOutputPath);\r\n```\r\n\r\nI found that specifying a leading .\\ on the output argument is sufficient.\r\n\r\n```\r\nC:\\work\\DummyCTP\\DummyCTP\\bin\\Debug>ExcelDnaPack.exe DummyCTP.dna /O .\\DummyCTP.xll /Y\r\nUsing base add-in C:\\tools\\ExcelDna.xll\r\n  ->  Updating resource: Type: ASSEMBLY_LZMA, Name: EXCELDNA.INTEGRATION, Length: 60651\r\n  ->  Updating resource: Type: CONFIG, Name: __MAIN__, Length: 524\r\n  ~~> ExternalLibrary path DummyCTP.dll resolved to C:\\work\\DummyCTP\\DummyCTP\\bin\\Debug\\DummyCTP.dll.\r\n  ->  Updating resource: Type: ASSEMBLY_LZMA, Name: REINSCTP, Length: 4959\r\n  ~~> Assembly path NLog.dll resolved to C:\\work\\DummyCTP\\DummyCTP\\bin\\Debug\\NLog.dll.\r\n  ->  Updating resource: Type: ASSEMBLY_LZMA, Name: NLOG, Length: 119256\r\n  ->  Updating resource: Type: DNA, Name: __MAIN__, Length: 1035\r\nCompleted Packing .\\DummyCTP.xll.\r\n\r\n```\r\n\r\nI will check out a couple of these suggestions for command-line processing (not my favorite topic!) and see if any of them look appropriate\r\nhttp://stackoverflow.com/questions/491595/best-way-to-parse-command-line-arguments-in-c\r\n"}}