In the VS2013 all the Url's like this "~/content/etc" in MVC Views are compiled incorrectly. They become "/main/index/~/content/etc". In the VS2012 it worked :(
For example, VS2012:
WriteLiteral(">\r\n<head>\r\n <meta");
WriteLiteral(" http-equiv=\"Content-Type\"");
WriteLiteral(" content=\"text/html; charset=UTF-8\"");
WriteLiteral(" />\r\n <meta");
WriteLiteral(" name=\"viewport\"");
...
WriteAttribute("href", Tuple.Create(" href=\"", 605), Tuple.Create("\"", 653)
, Tuple.Create(Tuple.Create("", 612), Tuple.Create<System.Object, System.Int32>(Href("~/Scripts/bootstrap/css/bootstrap.min.css")
, 612), false)
);
...
And VS2013 (all go as one WriteLiteral):
WriteLiteral(@"</title>
<link href=""~/Scripts/bootstrap/css/bootstrap.min.css"" rel=""stylesheet"" type=""text/css"" />
For example, VS2012:
WriteLiteral(">\r\n<head>\r\n <meta");
WriteLiteral(" http-equiv=\"Content-Type\"");
WriteLiteral(" content=\"text/html; charset=UTF-8\"");
WriteLiteral(" />\r\n <meta");
WriteLiteral(" name=\"viewport\"");
...
WriteAttribute("href", Tuple.Create(" href=\"", 605), Tuple.Create("\"", 653)
, Tuple.Create(Tuple.Create("", 612), Tuple.Create<System.Object, System.Int32>(Href("~/Scripts/bootstrap/css/bootstrap.min.css")
, 612), false)
);
...
And VS2013 (all go as one WriteLiteral):
WriteLiteral(@"</title>
<link href=""~/Scripts/bootstrap/css/bootstrap.min.css"" rel=""stylesheet"" type=""text/css"" />