Make PageVirtualPathAttribute value based on namespace instead of folder path.
Namespaces are more versatile in three ways:
They obviously can mirror folder path since by default each folder is ...
Id #111 | Release:
None
| Updated: May 11 at 2:22 PM by zdazzy | Created: May 11 at 2:22 PM by zdazzy
Instead of doing
assembly.GetTypes()
there should be a like of
foreach (var assemblyName in assembly.GetReferencedAssemblies()) {
// load types from assemblyName
}
That way you can simply refer...
Id #110 | Release:
None
| Updated: Mon at 4:00 PM by zdazzy | Created: May 11 at 2:05 PM by zdazzy
Hi,
We found there are few issues with 2.0.1 Razor Generator MSBuild task.
Issue One:
The App_Code/{helper}.cshtml can not compile into the correct place even by using RazorViewsCodeGenDirecto...
Id #109 | Release:
None
| Updated: May 10 at 2:58 AM by jingzheshan | Created: May 10 at 2:56 AM by jingzheshan
Hi,
I've setup an empty MVC project and RazorGenerator (2.0.1) and RazorGenerator (1.5.3.0) as explained in http://www.dzone.com/links/r/precompiling_razor_views_in_aspnet_mvc_3.html.
(in short:...
Id #108 | Release:
None
| Updated: May 9 at 9:21 AM by edokan | Created: May 9 at 9:21 AM by edokan
For a view file located in a path:
Views\123\Index.cshtml
The FileNamespace in VS is generated as
Views._123
While the MsBuild task does not include the leading underscore and generates it a...
Id #106 | Release:
None
| Updated: May 8 at 4:54 PM by pranavkm | Created: Apr 26 at 7:40 PM by pranavkm
Currently we have two different places with different code that implements view instantiation logic.
PrecompiledMvcView.Render
This code is used to create an instance of ordinary view. It:
Trie...
Id #105 | Release:
None
| Updated: Apr 26 at 5:24 AM by davidebbo | Created: Apr 25 at 1:02 PM by odinserj
I've renamed a view "Chart.cshtml" to "ChartDisplay.cshtml" and then renamed "Configuration.cshtml" to "Chart.cshtml". As a result I get two generated files "Chart.generated.cs" and "Chart1.generat...
Id #104 | Release:
None
| Updated: Mar 21 at 9:35 PM by davidebbo | Created: Mar 21 at 9:35 AM by Matzen
I followed exactly the steps described in this post.
http://stacktoheap.com/blog/2013/01/19/precompiling-razor-views-in-asp-dot-net-mvc-3/
But the error is displayed below
ASP.NET runtime error: ...
Id #103 | Release:
None
| Updated: May 3 at 2:31 PM by jdiekhoff | Created: Mar 16 at 9:38 PM by Ridermansb
private bool IsPhysicalFileNewer(string virtualPath)
{
if (virtualPath.StartsWith(_baseVirtualPath ?? String.Empty, StringComparison.Ordinal))
......
}
can change StringComparison.Ordinal to St...
Id #101 | Release:
None
| Updated: Mar 4 at 4:53 PM by pranavkm | Created: Mar 4 at 4:44 PM by pranavkm
The PreemptPhysicalFiles = false works for views, but when RenderPartial is called the cshtml file from assembly is used even the file exist on disk.
There is missing condition for PreemptPhysica...
Id #100 | Release:
None
| Updated: Feb 19 at 11:23 AM by pub | Created: Feb 18 at 9:45 AM by pub