Dai

Results 167 comments of Dai

I now have RazorGenerator's Custom Tool working in VS2019 - phew. The VSIX is also compatible with VS2015 and VS2017. Caveats: The code in RazorGenerator to load the "v1" (ASP.NET...

@davidebbo I need to pick your brain for some guidance: when RazorGenerator (and the Razor assemblies) are ran as a **Custom Tool** in VS2019 they're hosted in-proc inside VS, though...

@Daddoon > Is this also related to the fact that since some days, I have issue with intellisense doing things completly wrong if i try to do an autocompletion ?...

@pranavkm Phew, that's a relief - I was concerned that the latest Razor-for-.NET 5 stuff wouldn't be targeting .NET Standard anymore.

@traceygibbons They _should_ work, but the base-path that relative-paths are applied to varies and I don't believe it's based on the physical filesystem structure of your RazorGenerator project, but it's...

As a work-around, if I add a dummy type-argument to `BadPage` and then specify that in the `.cshtml` then it compiles: BadPage.cs: ``` class BadPage : ProjectPage { /* ......

> I added NuGet RazorGenerator.MSBuild, but that gives errors, that there are conflicting generations What are the actual error messages you're seeing? Are you getting output files with numbers in...

> But when I pull from Git, it doesn't rebuild/regenerate. So I want to regenerate when building the project. I can't for the life of me figure out how. (Okay,...

I thought the NuGet command `Enable-RazorGenerator` does this automatically - it sets the `Custom Tool` to "`RazorGenerator`" on every `.cshtml` file in the current project. I do wish the same...

`interface EnvDTE.ProjectItemsEvents` has the `ItemAdded` event. Here's an example using the interface, though it doesn't use the `ItemAdded` events: http://stackoverflow.com/questions/3471511/where-should-i-attach-solution-or-project-events-in-my-visual-studio-add-in Googling for "envdte itemadded" shows more examples.