razor icon indicating copy to clipboard operation
razor copied to clipboard

VS2022 Missing HTML Controls in Toolbox for CSHTML Pages

Open vsfeedback opened this issue 2 years ago • 2 comments

This issue has been moved from a ticket on Developer Community.


[regression] [worked-in:16.11] In a .Net Core web project, when working on Razor pages with a CSHTML extension, the Toolbox does not contain any HTML controls. VS 2019 used to have them.

Have tried resetting and repairing. Right click > Show All does then show them, but they are greyed out.


Original Comments

Feedback Bot on 5/7/2022, 01:43 AM:

(private comment, text removed)

Feedback Bot on 5/7/2022, 01:55 AM:

(private comment, text removed)


Original Solutions

(no solutions)

vsfeedback avatar Jun 01 '23 21:06 vsfeedback

From a comment on one of the duplicated bugs:

Some additional details on this request from the original reporter (of the duplicate bug): In the toolbox, I would like to see the following:

1 – All Blazor Components 2 – All HTML based components 3 – Any Hybrid Project i.e. MAUI, WPF and Windows Forms 4 – I’d like to build my own component library and add these to the tree easily when I import my own component library project into a solution or (6) 5 – Anything to do with data connectivity e.g. Azure SQL database/Cosmos DB/APIs 6 – Be able to drag my own components from a Blazor component library from a project into the toolbox 7 – An area for most recently used components for Blazor projects

I know that sounds like a lot, but (1) and (2) would be great for a starting point.

phil-allen-msft avatar Jun 01 '23 21:06 phil-allen-msft

From a comment on one of the duplicated bugs:

Some additional details on this request from the original reporter (of the duplicate bug): In the toolbox, I would like to see the following:

1 – All Blazor Components 2 – All HTML based components 3 – Any Hybrid Project i.e. MAUI, WPF and Windows Forms 4 – I’d like to build my own component library and add these to the tree easily when I import my own component library project into a solution or #6 5 – Anything to do with data connectivity e.g. Azure SQL database/Cosmos DB/APIs 6 – Be able to drag my own components from a Blazor component library from a project into the toolbox 7 – An area for most recently used components for Blazor projects

I know that sounds like a lot, but #1 and #2 would be great for a starting point.

Could you file a separate issue as a feature request for all of this? This particular regression (HTML toolbox snippets) is being fixed, but I want to be sure that the feature request is tracked. (Also please refrain from using # to refer to numbered bullets, since that causes irrelevant issues or PRs to be linked. 😉)

DustinCampbell avatar Feb 27 '24 17:02 DustinCampbell

The original issue (the migrated one) was specifically about the HTML controls (and verified against VS 2019). However, some other ideas from related issues were accumulated here, merging those over to https://github.com/dotnet/razor/issues/10344 with a backlink to this issue. I was able to validate the HTML controls were in the Toolbox window (and drag/drop to insert a few) in previews of 17.10.

phil-allen-msft avatar May 03 '24 18:05 phil-allen-msft