I'm trying to get Less to work in MVC 4 asp.net in Microsoft Visual Studio with no luck. I've searched on countless sites with no luck to solving my particular dilemma. I have these lines of code added in my layout head:
<link rel="stylesheet/less" type="text/css" href="@Url.Content("~/content/Test.less")" />
<script type="text/javascript" src="@Url.Content("~/content/Less/dist/less.min.js")"></script>
As well as these lines of code in BundleConfig:
var lessBundle =
new Bundle("~/Content/Test.less").IncludeDirectory("~/Content/Less", "*.less");
lessBundle.Transforms.Add(new LessTransform());
lessBundle.Transforms.Add(new CssMinify());
enter code herebundles.Add(lessBundle);
I already have dotLess installed, but i'm getting this error message and can't figure out what is or why it isn't working:
Error 12 Assembly 'System.Web.Optimization.Less, Version=1.3.0.0, Culture=neutral, PublicKeyToken=9b7581e0240fe480' uses 'System.Web.Optimization, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Optimization, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
I've now tried a combination of code from these two websites to get it to work:
http://ift.tt/1uMBbGT As well of Course lesscss.org
Please I need help haha thank you
Aucun commentaire:
Enregistrer un commentaire