I want to add MVC futures to my project and make the build available in Spark . However, he does not accept it at all.
I can use Microsoft.Web.Mvc in my classes (controllers / models, etc.), but they just don't show up in .spark files.
I can not use <use assembly""/>, as this kills my IntelliSense. And also if I try to add <use namespace='Microsoft.Web.Mvc" />, this is not a finding .Web.
I also cannot add assemblies to spark sections web.config, as this kills IntelliSense too.
It:
public void RegisterViewEngines(ViewEngineCollection engines)
{
if (engines == null) throw new ArgumentNullException("engines");
var settings = new SparkSettings();
settings.SetAutomaticEncoding(true);
settings
.AddNamespace("System")
.AddNamespace("System.Collections.Generic")
.AddNamespace("System.Linq")
.AddNamespace("System.Web.Mvc")
.AddNamespace("System.Web.Mvc.Html")
.AddNamespace("Microsoft.Web.Mvc");
settings
.AddAssembly("Microsoft.Web.Mvc")
.AddAssembly("Spark.Web.Mvc")
.AddAssembly("System.Web.Mvc, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35")
.AddAssembly("System.Web.Routing, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35");
engines.Add(new SparkViewFactory(settings));
}
It does not cause errors and does not kill my IntelliSense in Sspark files, but it also does not seem to want to import the assembly still motionless.
Microsoft.Web.Mvc.dll .
?