Silver Black
How to distribute VisualStyles for dialogs Vista style - FIXED!
Ok, I fixed it. In Publish, I went to "Show all settings" and in the "Profile settings" window I clicked the "File publish option" at the bottom and unticked the "Produce single file" setting. And this did the trick!!!
I got a folder with many files, but same overall size, and much smaller executable size, that can be useful in case I should deliver an update of the executable only in future.
15 replies
How to distribute VisualStyles for dialogs Vista style - FIXED!
@reflectronic Main main method is:
I also have a manifest file called <executable-file-name>.exe.manifest in the same folder of the executable itself: ...\bin\Release\net8.0-windows\publish\self-contained.
The error message I receive in the exception is: Value cannot be null. (Parameter 'path1')
There is no parmeter "path1" in my code:
15 replies
How to distribute VisualStyles for dialogs Vista style - FIXED!
My target framework is ".NET 8.0". The weird thing is that if I run the executable from the "bin\Release\net8.0-windows\publish\self-contained" folder I have the glitch, while from the "bin\Debug\net8.0-windows" it runs ok, so also on the same development machine!
15 replies
Control for showing icons (.ICO files) (WinForms .Net 8)
I think I found a way: when selecting the image of the PictureBox control, just select "All files" in the filter combobox of the open dialog box and it's done, the ICO is imported and shown as a PNG or any other file.
9 replies
After updating to v17.9.3 Visual Studio IDE closes at start with error message [FIXED]
OK, I find the fix for .Net 8.03 and VS 2022 Community Edition v17.9.3.
I was not the only one having this issue, it seems something going wrong with 8.0.3 version. The fix is described here: https://stackoverflow.com/questions/78175061/visual-studio-2022-error-after-updating-to-17-9-3-hostcrashexception-failed-t/78183392#78183392 I report the solutions here for semplicity: * Step 1: Downloading .NET Core version 8.0.2 Binaries from link below: https://versionsof.net/core/8.0/8.0.2/ * Step 2: Navigate to path below(replace the path with your current vs path): C:\Program Files\Microsoft Visual Studio\2022\Community\dotnet\net8.0\runtime\shared\Microsoft.NETCore.App there is a folder with name "8.0.3" rename that folder to something else, like "_8.0.3" (to hold it as a backup of the original one) * Step 3: open the downloaded archive, extract the folder "shared\Microsoft.NETCore.App\8.0.2" from it and place it to the path mentioned in step 2 * Step 4: Rename the folder you got from that archive at step 3 to "8.0.3" Now try opening the Visual studio again and check if its working. I just had to replace the "8.0.3" folder with the renamed "8.0.2" (taken from the archive mentioned in the link ) in both the following path: * C:\Program Files\Microsoft Visual Studio\2022\Community\dotnet\net8.0\runtime\shared\Microsoft.NETCore.App * C:\Program Files\dotnet\shared\Microsoft.NETCore.App If anyone have some issues, be sure to change the folder in both this path. Now let's have more fun with VS .Net and C#! 🙂
I was not the only one having this issue, it seems something going wrong with 8.0.3 version. The fix is described here: https://stackoverflow.com/questions/78175061/visual-studio-2022-error-after-updating-to-17-9-3-hostcrashexception-failed-t/78183392#78183392 I report the solutions here for semplicity: * Step 1: Downloading .NET Core version 8.0.2 Binaries from link below: https://versionsof.net/core/8.0/8.0.2/ * Step 2: Navigate to path below(replace the path with your current vs path): C:\Program Files\Microsoft Visual Studio\2022\Community\dotnet\net8.0\runtime\shared\Microsoft.NETCore.App there is a folder with name "8.0.3" rename that folder to something else, like "_8.0.3" (to hold it as a backup of the original one) * Step 3: open the downloaded archive, extract the folder "shared\Microsoft.NETCore.App\8.0.2" from it and place it to the path mentioned in step 2 * Step 4: Rename the folder you got from that archive at step 3 to "8.0.3" Now try opening the Visual studio again and check if its working. I just had to replace the "8.0.3" folder with the renamed "8.0.2" (taken from the archive mentioned in the link ) in both the following path: * C:\Program Files\Microsoft Visual Studio\2022\Community\dotnet\net8.0\runtime\shared\Microsoft.NETCore.App * C:\Program Files\dotnet\shared\Microsoft.NETCore.App If anyone have some issues, be sure to change the folder in both this path. Now let's have more fun with VS .Net and C#! 🙂
44 replies
After updating to v17.9.3 Visual Studio IDE closes at start with error message [FIXED]
My machine is quite old (15 yo - CPU Intel CoreDuo Quad Q9550 @ 2.8 GHz - 8 GB RAM) and I installed Win11 skipping the requirements with some tricks. Could it be this the cause?
44 replies
windows application can not find the location of .NET
My question was here:
https://discord.com/channels/143867839282020352/1218195380424937502
23 replies
windows application can not find the location of .NET
I further investigated and found that if I use PowerShell or Developer Power Shell for Visual Studio (instead of Command Prompt and Developer Command Prompt for Visual Studio), I get "Fatal error" any dotnet.exe I execute, no matter form where I execute it (Program Files, Program Filex (x86), Program Files\Microsoft Visual Studio\2022\Community\dotnet\net8.0\runtime).
23 replies