This project is read-only.
1
Vote

System.IO.FileNotFoundException when using WebGrease via Commandline

description

Hi,

I'm trying to use WebGrease via command line (also tried Developer Command Prompt for VS2013). When I run "wg options", I'm getting following error (screenshot attached)

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'WebGrease, Version=1.6.5135.21930, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
at WebGrease.Program.Main(String[] args)

Image

I tried on 3 different development machines. Same issue is present on all.

I'm using:
  • WebGrease.1.6.0
  • Visual Studio 2013 Update 3
  • Windows 8.1 (64 bit)
What am I missing?
Any help solving this issue is much appreciated.

file attachments

comments

tanri wrote Oct 29, 2014 at 10:49 AM

It is looking for WebGrease library. So what you could do is copying the WebGrease.dll into the tools folder.

zbend wrote Oct 29, 2014 at 4:40 PM

Even after copying the .dll running 'wg options' returns 'An error was encountered while processing your request. Please verify your inputs and try again'