Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use RazorClassLibrary as assembly type for Library Project #44

Open
bub-bl opened this issue Nov 10, 2023 · 4 comments
Open

Use RazorClassLibrary as assembly type for Library Project #44

bub-bl opened this issue Nov 10, 2023 · 4 comments

Comments

@bub-bl
Copy link
Contributor

bub-bl commented Nov 10, 2023

That can allow us to have full razor intellisense. Currently, we dont have property suggestions when we use a custom component

@garrynewman
Copy link
Member

Does this actually work?

@bub-bl
Copy link
Contributor Author

bub-bl commented Nov 10, 2023

Currently, this is not working, we need to add the following nuget package in ASPNET Microsoft.AspNetCore.Components.Web to have some additionals razor suggestions. I think this package add some analyzers.

I know, you can't use this package in S&box, but that can be good to rewrite same analyzer from Microsoft.AspNetCore.Components.Web to have a better intellisense.

This package add this kind of intellisense:

  • RazorComponent suggestions in another components (The component suggestion only work when inherits from ComponentBase in AspNet)
  • Better syntax highlighting
  • Some refactorisation suggestions
  • Property suggestions when the [Parameter] attribute is defined on a component property

But at this time, this is not a priority

@garrynewman
Copy link
Member

What I mean is, have you made these changes locally and it works?

@bub-bl
Copy link
Contributor Author

bub-bl commented Nov 11, 2023

What I mean is, have you made these changes locally and it works?

It doesn't work in its current state, you would have to use the library's analyzers and add some modifications to make it work for S&box

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants