The only thing that worked for me was this:
- Uninstall Microsoft.AspNet.Web.Optimization
- In Nuget command prompt run: install-package Microsoft.AspNet.Web.Optimization -Version 1.0.0
This will install an older version of Web.Optimization. The project was initially referencing version 1.1.0. The problem is not with WebGrease, but with the System.Web.Optimization.dll that is referencing an old, inexisting version of WebGrease.
When I ran the project, it worked, but I wanted to use the same package version as the rest of team. So, I tried to update but... the error returned...
After this, I deleted the project (again) and took it back from the SVN. To my surprize, it started to work... The thing is that I had deleted the project completely and took it from the SVN several times before this. I even took the dlls from a colleague because I thought that maybe I'm getting corrupted files from NuGet, but to no avail.
Strange...
No comments:
Post a Comment