aspnet / RazorTooling

Razor tooling for Visual Studio 2015

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how can i use taghelper IntelliSense for a aspnet core library project?

endink opened this issue · comments

in the library project, I use this config in project.json:

"tools": {
    "Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final"
  },

but it doesn't work, how to use InterlliSense for a RazorView in Library project?
something like:

<a asp-for="XXX">, <form asp-for>

@endink so you have a .NET Core class library project with some CSHTML files in it and you want tag helper IntelliSense?

@NTaylorMullen @DamianEdwards is this supposed to work?

This currently isn't supported in the VS side of things or in the Razor tooling side of things. As for the question for if this should work. We do support the ability for a user to embed Razor files in a library and then compile them at runtime assuming a user has a custom file provider; therefore, I'd say we should shoot to make this work eventually.

If you want intellisense you can give Re-Sharper a try, since it gives custom tags and attributes intellisense.
The only thing missing is the purple and bold aspect of taghelpers, which I kind of get used to...

Is this likely to be added in future releases?

Thanks!

Is this likely to be added in future releases?

That's our goal 😄

This issue was moved to aspnet/Razor#1136