Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NuGet Package Doesn't Have Needed Dependencies? #17

Open
dmealo opened this issue Jun 26, 2018 · 3 comments
Open

NuGet Package Doesn't Have Needed Dependencies? #17

dmealo opened this issue Jun 26, 2018 · 3 comments

Comments

@dmealo
Copy link
Contributor

dmealo commented Jun 26, 2018

I'm running Leprechaun from a Gulp script (although I tried from command line with the same result) and receive the following error. If I copy all of the DLLs from the zip on GitHub it works fine, but that shouldn't be necessary for a NuGet package.

Here is the error text:
C:\Users\david\Source\Repos\Website> cmd.exe /c gulp -b "C:\Users\david\Source\Repos\Website" --color --gulpfile "C:\Users\david\Source\Repos\Website\Gulpfile.js" 07-Code-Generate-Models [15:52:55] Using gulpfile ~\Source\Repos\Website\Gulpfile.js [15:52:55] Starting '07-Code-Generate-Models'... Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'CommandLineArgumentsParser, Version=3.0.9.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. at Leprechaun.Console.Program.Main(String[] args) [15:52:55] '07-Code-Generate-Models' errored after 164 ms [15:52:55] Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c ".\packages\Leprechaun.Console.1.0.1-pre01\lib\net46\Leprechaun.console.exe /c .\src\Foundation\CodeGen\code\Leprechaun.config" Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'CommandLineArgumentsParser, Version=3.0.9.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. at Leprechaun.Console.Program.Main(String[] args) at ChildProcess.exithandler (child_process.js:213:12) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at maybeClose (internal/child_process.js:821:16) at Socket.<anonymous> (internal/child_process.js:319:11) at emitOne (events.js:77:13) at Socket.emit (events.js:169:7) at Pipe._onclose (net.js:469:12) Process terminated with code 1.

Thanks!

@blipson89
Copy link
Owner

Hi @DavidMtbg,

You want to use the package Leprechaun.Console.Runner. Try switching to that one and let me know if that fixes the issue?

Thanks,
-Ben

@dmealo
Copy link
Contributor Author

dmealo commented Jun 26, 2018

Thanks, Ben! That includes the dependencies in the package along with the executable. I guess I used the other one because the ReadMe pointed to it.

The runner package doesn't seem to contain the Scripts. Would I install a different NuGet package for that? I had them in the project before, but when I uninstalled the other Leprechaun packages to clean things up before installing Leprechaun.Console.Runner, they were removed and not installed with Runner.

Thanks again!
David

@blipson89
Copy link
Owner

Hmmm I'll have to get back to you on that one. I think I need to rework these NuGet packages. They were setup a while ago and things have evolved a bit and there may be room for consolidation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants