Skip to main content

Posts

Showing posts from November, 2025

Upgrade older vs.net .net 4 framework solutions/applications to .net 10 sdk.

Backup your project (cs, vb, whatever language).  Start the command line as administrator.   Run the following: dotnet tool install -g upgrade-assistant Move to the folder of your vs.net project: cd path\to\yourproject   Run the following command to upgrade the project: upgrade-assistant upgrade path\to\yourproject\yourproject.sln    

.net 10 framework sdk not available on vs.net 2026 and 2022

Make sure that you've installed the sdk (It can be done also through the "Visual studio installer" -> "modify" -> Single Components -> .net )  https://dotnet.microsoft.com/en-us/download/visual-studio-sdks .net 10 sdk -> https://dotnet.microsoft.com/en-us/download/dotnet/10.0   Restart vs.net. --  Any older project must be upgraded if the used .net framework was below 5.

[FIX] Visual Studio 2022 + 2026: Warning CA1416 "Call site reachable by all platforms" but "only supported on: 'windows'"

  Edit your vb or cs project  ex: Viewer.vbproj  or  Viewer.csproj    Check that the framework has the suffix "-windows" as the following example:  <TargetFramework>net10.0-windows</TargetFramework>    Then make sure that  GenerateAssemblyInfo the following is set to true <GenerateAssemblyInfo>true</GenerateAssemblyInfo>    Rebuild your project.