Share via

.NET framework version missing

Vasiliki Anagnostatou 0 Reputation points
2023-08-21T15:23:50.7833333+00:00

Hallo,

I am quite new to VS.

I installed the Community version 2022 recently but I cannot run my script.

I get the error which I copied here below. I checked in my registry editor and I can see that I have the version 4.8.04084 (even though in the warning the "0" is missing). I am not sure what is going on there. I have intalled the .NET framework 4.8. Do you know what it might be happening ?

Severity Code Description Project File Line Suppression State

Error MSB3644 The reference assemblies for .NETFramework,Version=v4.8.4084 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks C:\Users\Elekta\Sample_Scripts\AutoDicomImport\AutoDicomImport.csproj C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets 1241

Developer technologies | .NET | .NET Runtime

2 answers

Sort by: Most helpful
  1. Vasiliki Anagnostatou 0 Reputation points
    2023-08-22T07:11:28.68+00:00

    Hallo,

    Sorry, I am not sure if you received my last answer, I mentioned that I had to do an offline installation and used the following command

    vs_Community.exe --layout C:\localVSlayout

    I believe that this command should install all packages (including the .NET. )

    Is that right ?

    Do you know how can I see which version of .NET have I installed ?

    Thanks in advance,

    Vassia

    0 comments No comments

  2. Jiachen Li-MSFT 34,241 Reputation points Microsoft External Staff
    2023-08-22T05:37:12.16+00:00

    Hi @Vasiliki Anagnostatou ,

    The error message suggests that you can resolve this by installing the .NET Framework 4.8 Developer Pack (SDK/Targeting Pack) for the specific version mentioned.

    You can download it from the link provided in the error message: https://aka.ms/msbuild/developerpacks

    Best Regards.

    Jiachen Li


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.