Quantcast
Channel: RazorGenerator Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 525

Commented Unassigned: Razor Generator MSBuild - Helpers are not generate in static class [154]

$
0
0
Hello,

I got problem and i can't understand the logic, i think there is an issue...

I got a *Helper.cshtml

```
@* Generator: MvcHelper *@
.....
```


When i generate it with Custom Tool : RazorGenerator the generated helper file look like this :

```
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
public static class ...............
```


When i generate it with RazorGenerator.MSBuild i got this :

```
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "2.0.0.0")]
public class ................... : System.Web.WebPages.HelperPage
```

Somebody got the same problem ? Why this difference ?

Vianney
Comments: In my case the first one is the good one. The second one don't work. My workaround for the moment is to don't compile my Helper view with RazorGenerator.MSBuild by changing this in the file RazorGenerato.MsBuild.targets : ``` ... <ItemGroup> <RazorSrcFiles Condition=" '@(RazorSrcFiles)' == '' " Include="**\*.cshtml" __Exclude="**\*Helper.cshtml"__ /> ... ``` And compiling each of my Helper view File with the "Custom Tool : RazorGenerator". But it's not a good solution and my goal is to use the same method for every view with MSBuild.

Viewing all articles
Browse latest Browse all 525

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>