我的 VS 2022 安裝發生了一些事情。當我打開 WinForms 解決方案 (Net6.0) 時,工具箱中沒有任何專案。
專案設定包含
<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>
...
我已經嘗試了搜索時找到的所有建議。這些包括
- 工具箱->重置
- 工具箱->選擇專案,重置
- 將 VS 更新到最新級別 (17.3.4)
我已經加載了一個 WPF 解決方案,并且工具箱已正常填充。
我嘗試了另一個使用 .Net Framework 3.5 的 WinForms 解決方案,工具箱再次被填滿。
該專案直到最近才正常作業。我只能假設我已經更改了專案設定中的某些內容,但我不知道那可能是什么。
更新
- 更新到最新級別
- 新的 .Net 6 Winforms 應用程式也會出現問題
- 已洗掉現有解決方案中的 .vs 檔案夾
解決方案
修復VS安裝并重新啟動。
uj5u.com熱心網友回復:
我的vs2022在上次更新時也遇到了同樣的問題,但是我repaired通過之后installer就恢復正常了。

轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/509979.html
上一篇:如何動態地將按鈕添加到組框中?
