Something has happened to my VS 2022 installation. When I open a WinForms solution (Net6.0), there are no items in the toolbox.
The project settings contain
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<OutputType>WinExe</OutputType>
<RootNamespace>Flasher-UI</RootNamespace>
<IsWebBootstrapper>false</IsWebBootstrapper>
<PublishUrl>***</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>4</ApplicationRevision>
<ApplicationVersion>2.1.0.0</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<UseWindowsForms>true</UseWindowsForms>
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
<Platforms>AnyCPU;x64</Platforms>
</PropertyGroup>
...
I have tried all the suggestions I have found when searching. These include
- Toolbox->Reset
- Toolbox->Choose items, Reset
- Updated VS to latest level (17.3.4)
I have loaded a WPF solution and there the toolbox is filled normally.
I tried another WinForms solution which uses .Net Framework 3.5 and again the toolbox is filled.
The project did work normally until recently. I can only assume that I have changed something in the project settings but I don't know what that might be.
UPDATE
- updated to latest level
- problem occurs with new .Net 6 Winforms app too
- deleted .vs folder in existing solution
SOLUTION
Repair the VS installation and reboot.
CodePudding user response:
My vs2022 had the same problem in the last update, but after I repaired
it through the installer
, it was back to normal.