Window - Visual Studio

Cannot run when setup is in progress

  1. Run dialog : services.msc.
  2. Change Visual Studio Standard Collector Service startup type to Automatic (Delayed Start).

Changing Variables Display Format in Watch Window

While debugging in Visual Studio Watch window allows you to view the variables values in Hex Mode. This is very simple features, Just Right Click on Watch window and select Hexadecimal Display.

How do I auto-restoring *all* nuget packages from a solution in Visual Studio

This runs for the whole solution

Update-Package -Reinstall


This runs for specific project only

Update-Package -Reinstall -Project [ProjectName]

How to remove unused using namespaces

  1. Right click your solution.
  2.  Analyze and Code Cleanup.
  3. Configure Code Cleanup.
  4. Create a profile (Remove & Sort usings) and then run it.

Open .net framework 4.5 project in VS 2022

  1. Download Microsoft.NETFramework.ReferenceAssemblies.net45 from nuget.org.
  2. Open the package as zip.
  3. Copy the files from build\.NETFramework\v4.5\ to C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.

This site can’t provide a secure connection

  1. In Solution Explorer, click your project.
  2. Hit the F4 key (view properties).
  3. Copy the URL (NOT the SSL URL).
  4. Paste the URL into the Project Url on the Web Tab.
  5. Save.
  6. In Solution Explorer, click your project.
  7. Hit the F4 key (view properties).
  8. Change SSL Enabled to false.
  9. Change it back to true. There should be a new SSL URL. Copy it.
  10. Paste the new SSL URL into Project URL on Web tab. Click Create Virtual Directory.
  11. Click Override application root URL, and paste in SSL URL.
  12. Save.