This issue has been moved from a ticket on Developer Community.
[severity:Other]
Trying the new Razor editor in VS 2019 16.9 preview 3, having the experimental features turned on in Tools| Options.
The announced function "Go to component definition" function (F12) does not work if the component has been defined in a referenced Razor library.
Steps to reproduce:
- create a new Blazor project (server-side) using the default template
- open Index.razor, put the component. Try the "Go to definition" function on the component. It correctly opens the definition of the component in Counter.razor. So far ok.
- add a new Razor lib project to the solution. It will by default contain the Component1.razor component. Reference the Razor lib in the Blazor project
- add the Component1.razor to the Index.razor page. Try "Go to definition" on the component - it does not work (it does nothing)
More observations: I have tried the following scenarios, none of them works -
- Added the component as <RazorClassLibrary1.Component1 /> ... did not work
- Added the component as and added @using RazorClassLibrary to the Index.razor ... did not work
- Added the component as and added @using RazorClassLibrary to the _Imports.razor ... did not work
Original Comments
Feedback Bot on 1/27/2021, 09:43 PM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Original Solutions
(no solutions)
This issue has been moved from a ticket on Developer Community.
[severity:Other]
Trying the new Razor editor in VS 2019 16.9 preview 3, having the experimental features turned on in Tools| Options.
The announced function "Go to component definition" function (F12) does not work if the component has been defined in a referenced Razor library.
Steps to reproduce:
More observations: I have tried the following scenarios, none of them works -
Original Comments
Feedback Bot on 1/27/2021, 09:43 PM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Original Solutions
(no solutions)