skip to Main Content

please help.

I have installed quite a lot of framework and development pack. as you can see in the image.

downloaded .net framewoek

unfortunately I want to access an ancient project. this project runs on .net framwork 4.5, and must not be upgraded.

I have visual studio 22 installed, but whenever i open the solution, i get the following error as seem in the image bellow.

dot net 4.5 error

At the moment I have succeeded in installing the target park for 4.5.2 but it is not helping.

I have tried to install the .net framework 4.5 runtime, but i get the error bellow.

enter image description here

Please help

3

Answers


  1. Chosen as BEST ANSWER

    With help of @JonasH and @Narish, I took time to study the documentation to understand what is happening.

    Following an article referenced by @Narish, I made a copy of the v4.5.1 folder in the .NETFramework dir, which is still compatible with v4.5 and renamed it to v4.5

    enter image description here

    As of this moment, the legacy code and & still opens.


  2. Look @ article – https://www.gnostice.com/docs/docstudio_net/guide/_faq_buildinganddeployment_vs2022_and_netframework45.html

    Total 3 solutions:

    Option 1: Install Visual Studio 2019. This will enable support for building even in Visual Studio 2022.

    Option 2: Download the Windows 8 SDK from here and when installing it choose the option to install .NET Framework 4.5.

    Option 3: Follow the steps below to manually copy over the targeting pack to your machine.

    1.Download Microsoft.NETFramework.ReferenceAssemblies.net45 from NuGet

    2.Open the package as a zip file

    3.Copy the files from build.NETFrameworkv4.5 folder to Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.5

    Login or Signup to reply.
  3. You can download the windows dev kit from here

    1. https://www.gnostice.com/docs/docstudio_net/guide/_faq_buildinganddeployment_vs2022_and_netframework45.html
    2. When installing it only choose the option to install .NET Framework 4.5
      and browse to this path C:Program Files (x86)Reference AssembliesMicrosoftFramework.NETFramework
    3. Close Visual studio and re-open it.
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search