From: 011netservice@gmail.com Date: 2024-03-20 Subject: readme-VisualStudio.txt 歡迎來信交流, 訂購軟體需求. #### PROPERTIES window 一片空白? https://www.codeproject.com/Questions/5334867/Get-the-PROPERTIES-window-to-actually-show-propert This is a known issue and has been reported to MS, open the form then switch to a source window then back to the form and the properties magically, though somewhat annoyingly, appear. 先點選到 Source 檔案, 再回到 Design form 畫面就恢復正常. #### ToolBox 裡面沒有任何 Item 可選的解決方法 2024-03-20 Empty toolbox in Visual Studio 2022 for .NET 6.0 WinForms and Control Library projects https://stackoverflow.com/questions/73402437/empty-toolbox-in-visual-studio-2022-for-net-6-0-winforms-and-control-library-pr I found a solution for this: Close Visual Studio Go to this folder on your computer: %USERPROFILE%\Local Settings\Application Data\Microsoft\VisualStudio\ Open the sub-folder for your version of Visual Studio, something like 17.0_65d436a7 Delete these 4 files: toolbox.tbd toolbox_reset.tbd toolboxIndex.tbd toolboxIndex_reset.tbd 建議兩邊都刪除這4個檔案 %USERPROFILE%\Local Settings\Application Data\Microsoft\VisualStudio\ %LOCALAPPDATA%\Microsoft\VisualStudio\ After you open Visual Studio the toolbox items should be there. Thanks! This was the only solution that worked. The described path in step 2 however is not correct (for me), I used this instead "%LOCALAPPDATA%\Microsoft\VisualStudio\" #### Upgrade 2024-03-19 How to upgrade a Windows Forms desktop app to .NET 7 https://learn.microsoft.com/en-us/dotnet/desktop/winforms/migration/?view=netdesktop-8.0 Right-click on the MatchingGame.Logic project in the Solution Explorer window and select Upgrade. 過程中可能需要下載安裝元件. Microsoft.NET.UpgradeAssistant.vsix. 安裝過程中可能需要先關閉 Visual Studio 2022. #### Single-file deployment 2024-03-19 https://learn.microsoft.com/en-us/dotnet/core/deploying/single-file/overview?tabs=cli Exe net6.0 true true win-x64 **** Embedding DLLs in a compiled executable 使用工具比較簡單: https://github.com/Fody/Costura 可再多增加: https://github.com/Fody/Fody/issues/206