Code52 / pretzel

A site generation tool (and then some) for .NET platforms
http://code52.org/pretzel/
Microsoft Public License
598 stars 163 forks source link

Discussion: Razor intellisense #63

Open JakeGinnivan opened 12 years ago

JakeGinnivan commented 12 years ago

Hey guys,

I would like to include a .csproj and a web.config with the razor template, allowing it to be opened in VS and edit the .csproj files.

The main issue with this is the project either needs to reference the models, this could be via .dll, including a .cs in the package or by referencing the pretzel exe.

Or is intellisense not that important (I would like it because it adds discoverability of features, and allow people to come up with cool ways to use razor in pretzel).

Thoughts?

ghost commented 12 years ago

Should the csproj be bundled up as a VS template, perhaps including a buildtask which goes and downloads pretzel.exe on first build (ala nuget), then bakes/tastes/etc?

shiftkey commented 12 years ago

@JakeGinnivan I'm not 100% clear on how this will work - as pretzel runs in the background, watching a folder, how will the user see this? Feels like a discussion for MarkPad.

JakeGinnivan commented 12 years ago

This is about enabling visual studio to edit the Razor layout files for a pretzel site. Markpad does not edit Razor file :)

How it will work is the Pretzel site will contain a .csproj file, a web.config and the Razor config all setup. This means layout files can be added to the project, and pretzel is referenced from this project, and now you have Razor intellisence.

shiftkey commented 12 years ago

Thoughts off the top of my head:

Can you think of anything we'd need to add to the pretzel exe specifically?