Error while trying create new python console project on visual studio 2022

Viewed 423

I am using VS 2022, While trying to create new Python Console project, I get this Error message on Error list:

The reference assemblies for .NETFramework,Version=v4.0 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

The Output gives me msg:

C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(1217,5): error MSB3644: The reference assemblies for .NETFramework,Version=v4.0 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 Done building project "PythonApplicationTest.pyproj" -- FAILED.

Build FAILED.

I have tried fresh install of the VS on another machine yet still getting the same Error.

1 Answers
Related