pretzel icon indicating copy to clipboard operation
pretzel copied to clipboard

Discussion: Razor intellisense

Open JakeGinnivan opened this issue 13 years ago • 4 comments
trafficstars

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?

JakeGinnivan avatar Mar 16 '12 08:03 JakeGinnivan

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?

ghost avatar Mar 16 '12 08:03 ghost

@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.

shiftkey avatar Apr 27 '12 02:04 shiftkey

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.

JakeGinnivan avatar Apr 27 '12 03:04 JakeGinnivan

Thoughts off the top of my head:

  • project template for VS to define the structure
  • install-package Pretzel.Razor to reference the necessary assembly (same code as in pretzel, just don't reference the exe)
  • build script starts pretzel watching the folder if it isn't running

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

shiftkey avatar Apr 27 '12 03:04 shiftkey