Installation of CUDA 11.2 failed (partially)

Hello

I want to install NVIDIA CUDA 11.2 on my Windows 10 laptop.
However the installation ends with following summary (Nsight Visual Studio Edition Summary):

Installed:

  • Nsight for Visual Studio 2019
  • Nsight for Visual Studio 2017
  • Nsight Monitor

Not installed:

Furthermore, when I try to build the example project asyncAPI after the installation in Visual Studio 2019, I get the error included as a PS at the end of this message. A similar error is produced by building the VS2017 version of that project.

This error occurred after a Windows 10 update using 11.0 and 11.2 toolkit versions.
CUDA projects built successfully before that update using the 11.0 toolkit.

It looks like that this relates to the requirement of Nsight™ Visual Studio Edition Installation for .NET Framework 4.0(?)

I believe that .NET Framework 4.8 is installed on my system, which means that 4.0 should be there too (I tried to install v 4.0 in addition to 4.0 - unsuccessfully as 4.8 is blocking the installation of older versions of .NET Framework).

I am out of ideas about how I can fix this and I would really appreciate any help on this.

Thanks,
Kostas

PS. The error messages from VS2020 when building the “asyncAPI” project.

1>Compiling CUDA source file asyncAPI.cu…
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.2.targets(785,9): error MSB3686: Unable to create Xaml task. Compilation failed.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.2.targets(785,9): error MSB3686: cannot open ‘c:\Users\papadok\AppData\Local\Temp\3lvtqspe\CSC77351280C5C24CDD94708AE7AC7C37A7.TMP’ for reading
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.2.targets(785,9): error MSB3686: ‘c:\Users\papadok\AppData\Local\Temp\3lvtqspe\CSC77351280C5C24CDD94708AE7AC7C37A7.TMP’ is not a valid Win32 resource file
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.2.targets(785,9): error MSB3686:
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.2.targets(785,9): error MSB4175: The task factory “XamlTaskFactory” could not be loaded from the assembly “Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”. Object reference not set to an instance of an object.
1>Done building project “asyncAPI_vs2019.vcxproj” – FAILED.