Cannot find .net framework 4.0 at target framework (visual basic 2019) ?

asked 2021-04-29T12:06:59.347+00:00
COSMAS MOSES BONIFACE 1 Reputation point

Hi ,

I hope someone can shed light regarding with my problem .

I am using win 10 (64 bits) and currently using Visual Basic 2019 .

I want to use .net framework 4 but i cant see any of this version inside my Visual Basic program .
92559-default.png

As shown image above there few version i have . Before i post this question I have test several solutions such as install .net framework 4 from ;

-> https://dotnet.microsoft.com/download/visual-studio-sdks?utm_source=getdotnetsdk&utm_medium=referral ( choose SDK) , produce no result still the same
92509-sdk.png

2nd iam using Visual Basic installer and modify by choosing .NET Framework 4 targeting pack ,
92420-installer.png
as shown image above i have choose .net framework 4 and restart my machine yet i still have the same issues

i hope someone can help me with this problem , pls ...

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,825 questions
No comments
{count} votes

5 answers

Sort by: Most helpful
  1. answered 2021-04-29T12:34:58.513+00:00
    Karen Payne MVP 29,226 Reputation points Microsoft MVP

    If you installed .NET Framework 4 surely it should show up as follows on Windows 10. Look under C:\Windows\Microsoft.NET for the Framework and Framework64

    92606-f1.png

    Under C:\Windows\Microsoft.NET for both framework folders, what do you have?

    92536-f2.png

    No comments

  2. answered 2021-04-29T12:41:59.207+00:00
    COSMAS MOSES BONIFACE 1 Reputation point

    Hi Karen thank you for taking time to review and reply my question

    here screenshot my directory

    92607-dir-2.png
    92608-dir.png

    No comments

  3. answered 2021-04-29T12:47:17.25+00:00
    COSMAS MOSES BONIFACE 1 Reputation point

    92560-framework-2.png

    here inside my windows/microsoft.NET/framework


  4. answered 2021-12-03T09:10:21.547+00:00
    Edgar Durão 1 Reputation point

    I'm facing the same problem here. Tryed to repair Visual Studio 2019 withouth sucess.
    The plus is i work without any problems in projects using the .Net 4 Framework.... just cannot create a new one.

    Any ideas?


  5. answered 2022-06-01T03:20:20.673+00:00
    Kashmere Smooth 1 Reputation point

    I think you need to select the project that has "(.NET Framework)". If you select the project that targets .NET Standard or .NET Core you get the list you are seeing. Cheers.

    No comments