Am I doing something wrong or is Visual Studio 2013 default projects broken?
Create a new basic MVC project:
File -> New -> Project
and
Templates / Visual C# / Web / ASP.Net Web Application
and
MVC with no Authentication
and immediately on running "template default empty project" I get
Could not load file or assembly 'WebGrease, Version=1.5.1.25624....
Line 5: <meta name="viewport" content="width=device-width, initial-scale=1.0">
Line 6: <title>@ViewBag.Title - My ASP.NET Application</title>
Line 7: @Styles.Render("~/Content/css")
Line 8: @Scripts.Render("~/bundles/modernizr")
Line 9: </head>
and with
Templates / Visual C# / Web / Visual Studio 2012 / ASP.Net Web MVC 4 Application
Razor, Internet Application with a Test Unit
I immediately on starting getting:
Could not load file or assembly 'DotNetOpenAuth.Core, Version=4.0.0.0...
Well... This is default projects, which makes me wonder why I need to immediately fix anything before even doing anything. It's fun, when you're experimenting needing to try to fix things before you even have begin coding.
This is Visual Studio 2013 Pro with everything installed and these are the "Default New Projects".
Removed the lines causing the exceptions, nothing works. Installed WebGrease, Web.Optimization and DotNetOpenAuth extensions, Bootstrap (since it looked like CSS problems).
Looked like this had the solution but no luck: Could not load file or assembly 'WebGrease' or one of its dependencies
In short, if I need to fix every project before starting a new project - something must be wrong.
EDIT
Reinstalling and updating everything in the Nuget console makes both error above disappear, but then this happens:
'System.Web.Mvc, Version=5.2.0.0" exception
and then fixing it with Package Manager Console
Install-Package Microsoft.AspNet.Mvc -Version 5.2.0.0
causes the WebGrease error to appear again and the Nuget console wants me the update the MVC again
trying to fix the webgrease error with installing the expected version instead causes this in the Console:
"Install-Package : Updating 'WebGrease 1.6.0' to 'WebGrease 1.5.1' failed."
So for me, it does NOT work out of the box (with VS2013 Update 3 installed) and restarting a new project seems to make all updates disappear and all errors reappear again, having me to redo the whole process even though I've "seemingly" updated everything that I could update. And it's also very obviously not backwards compatible. WebGrease 1.6 will not work for 1.5.1.