AspMvcPartialViewAttribute not working properly
I have setup the following annotation:
//
//Rsharper annotations
//
[assembly: AspMvcPartialViewLocationFormat(@"~/Views/NexPortHelp/{1}/{0}.cshtml")]
And the following custom ViewEngine
/// <summary>
/// Implementation of the razor view engine allowing custom behavior overrides
/// </summary>
public class NexportViewEngine : RazorViewEngine
{
private static string[] NewPartialViewFormats = new[]
{
@"~/Views/NexPortHelp/{1}/{0}.cshtml"
};
public NexportViewEngine()
{
//Allow custom paths for partial views
base.PartialViewLocationFormats = base.PartialViewLocationFormats.Union(NewPartialViewFormats).ToArray();
}
}
The intellisense for the NexportHelp folder now shows up when I use the AspMvcPartialView Attributwe on parameters BUT it shows up with the full path (C:\..fullpath to view).
Any help would be great
Please sign in to leave a comment.