Visual Studio 2017 support

So the registry key ‘HKEY_LOCAL_MACHINE\Software\NVIDIA Corporation\Nsight Tegra’ doesn’t seemingly exist, but because of 32-bit and 64-bit Application Data in the Registry - Win32 apps | Microsoft Learn it was possible
registry access was being filtered to there. Since visual studio 2017’s devenv.exe is a 32-bit process, and is a kind of program where it may make sense to separate registry data for 32-bit and 64-bit instances, it may have opted to prevent redirection to the real HKLM. In short, had to instead go to ‘Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\NVIDIA Corporation’ where I found the ‘Nsight Tegra’ key. It didn’t have Full Control permissions on that key nor the Nvidia Corporation parent key so I just gave users full control as a work around and now it doesn’t crash.

How could this have happened? Maybe in the many attempts to install the plugin I may have succeeded while running as administrator… whether it was using the install bat which invokes vsix installer… So it probably only gave administrator permissions… Causing normal user started visual studio instances to fail due to missing registry key permissions

Anyway, I’ve attached the VSIX for anyone out there that might need it

Microsoft VSIX Installer
-------------------------------------------
vsixinstaller.exe version:
15.6.152+ge95e4dd1ce
-------------------------------------------
Command line parameters:
C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,/q,/a,/s:Community,/v:15.0,C:\Users\vwauser\Downloads\nvidiategra\\Nvidia.Pentak.vsix,/l:NsightTegraVsix15.0Community-install.log,/callingprocessid:13376,/installas:1140
-------------------------------------------
Microsoft VSIX Installer
-------------------------------------------
Initializing Install...
Extension Details...
	Identifier         : 24554cbd-c19b-4f14-94d6-8d935246fdc4
	Name               : NVIDIA Nsight Tegra VSE
	Author             : NVIDIA Corporation
	Version            : 3.5.18024.1421
	Description        : NVIDIA Nsight Tegra, Visual Studio Edition
	Locale             : en-US
	MoreInfoURL        : https://developer.nvidia.com/nvidia-nsight-tegra
	InstalledByMSI     : False
	SupportedFrameworkVersionRange : [4.5.2,)

	SignatureState     : Unsigned
	Supported Products : 
		Microsoft.VisualStudio.Community
			Version : [12.0,16.0)
		Microsoft.VisualStudio.Pro
			Version : [12.0,16.0)
		Microsoft.VisualStudio.Enterprise
			Version : [14.0,16.0)
		Microsoft.VisualStudio.Premium
			Version : [12.0,14.0)
		Microsoft.VisualStudio.Ultimate
			Version : [12.0,14.0)

	References         : 
		-------------------------------------------------------
		Identifier   : Microsoft.VisualStudio.MPF
		Name         : Visual Studio MPF
		Version      : [11.0,12.0)
		MoreInfoURL  : 
		Nested       : No

	Prerequisites      : 
		-------------------------------------------------------
		Identifier   : Microsoft.VisualStudio.Component.VC.CoreIde
		Name         : Visual Studio C++ core features
		Version      : [12.0,16.0)

		-------------------------------------------------------
		Identifier   : Microsoft.Component.MSBuild
		Name         : MSBuild
		Version      : [12.0,16.0)

		-------------------------------------------------------
		Identifier   : Microsoft.VisualStudio.Component.CoreEditor
		Name         : Visual Studio core editor
		Version      : [12.0,16.0)

		-------------------------------------------------------
		Identifier   : Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core
		Name         : Visual C++ core desktop features
		Version      : [12.0,16.0)

Signature Details...
	Extension is not signed.
@('.\Nvidia.PentaK-3.5.18024.1421-NsightTegraVsix15.0Community-install.zip', '.\Nvidia.PentaK.vsix','.\i
nstall.bat','.\vsix_actions.bat') | % {$f=$_; @('md5','sha1','sha256') | % {$n=Get-FileHash -Algorithm $_ $f;$a=@{Algorithm=$_;Hash=$n.Hash;name=(gc
i $n.Path).Name};New-Object PSObject -Property $a  }}
>>

Hash                                                             name                                                                  Algorithm
----                                                             ----                                                                  ---------
F6C729706F9DD83234AB5615E17A5AF2                                 Nvidia.PentaK-3.5.18024.1421-NsightTegraVsix15.0Community-install.zip md5
2342438FBADBCEA1554517FB0095561C11800DD2                         Nvidia.PentaK-3.5.18024.1421-NsightTegraVsix15.0Community-install.zip sha1
8252AB20FAD3810CD9D82A8EB12994957DB64CF3DFC33CA826162D8A80A0250A Nvidia.PentaK-3.5.18024.1421-NsightTegraVsix15.0Community-install.zip sha256
466717B3A2BCCBE7B83F4E280983151D                                 Nvidia.PentaK.vsix                                                    md5
8078AF7F391292395670D58F541233D1F8C2ADF0                         Nvidia.PentaK.vsix                                                    sha1
29156663ADC60C95198DCD567DFD59741F448CB6CB8FB361878CE0154DD4FD8F Nvidia.PentaK.vsix                                                    sha256
4570B554BDD62248745DADF99A5D1E77                                 install.bat                                                           md5
9E7161C13B70371A6B85D9586BDC63B8228E668C                         install.bat                                                           sha1
922639C4638B3136BCA44B599C24B12D525DB14540E19C6A31F3B9AD56B0941A install.bat                                                           sha256
A82734CA4E57E8CDFC3FDA6F44805C9E                                 vsix_actions.bat                                                      md5
ED68320ABA0E0121B26DDFCE76CCB00AAEA50462                         vsix_actions.bat                                                      sha1
BDB79BE421A49B75D70605BABF608B7B17E1190B45C054F208885AFD3B4B41CE vsix_actions.bat                                                      sha256

Nvidia.PentaK-3.5.18024.1421-NsightTegraVsix15.0Community-install.zip (9.29 MB)

You’re welcome, justin6wxzm - it’s a pleasure to work with you.

Indeed, the registry key HKEY_LOCAL_MACHINE\Software\NVIDIA Corporation\Nsight Tegra is created by the MSI installer and is redirected to WOW6432Node because of devenv.exe being a 32-bit process.
The VSIX installer doesn’t have capabilities to create registry keys.

I’m glad to have been able to get the plugin to run now from installing the VSIX, but I realized that the MSI must also be adding Android-Tegra as a possible target to vs2017 and or anything else. Currently any attempts to attach to process results in a brief pop up of the android debugging starting gdb server status dialog. I presume I need to somehow build the android-target to add the appropriate symbols, linkage or something.

It seems the best way to fix everything is to just get the installer to work. Perhaps there’s a way to modify the WIX script to appropriately detect a dev environment with only VS 2017?

Did not have much time last week - I am trying to figure out how to attach files to this post - don’t seem to have an option, just direct linking via urls. Am i missing something ?
vslogs.zip (4.14 MB)

tomz5rpy You’ve actually attached the logs archive to the post. A URL to a file hosted on some cloud storage also works.

justin6wxzm

I don’t quite get the issue here. The VSIX contains MSBuild platforms and all the required bits that are deployed into the %VS_2017_INSTALL_ROOT%\Common7\IDE\VC\VCTargets directory.
https://docs.microsoft.com/en-us/visualstudio/extensibility/set-install-root

So, you don’t need the MSI installer in order to build the project and debug it on an Android device.
Here’s a catch, though: you can attach ONLY to the Android process that belongs to an APK that’s generated by the project that you’ve opened in VS.

I see, I’ll take a look. Since i’m building Unreal Engine Projects
I was following

But I just wasn’t able to select [Tegra-Android], I only have [Android] and that’s from I think built-in android support from VS2017

Though these instructions do say after installing there is a NSight Tegra Project Upgrade that I haven’t looked for

Here’s two points to clarify:

  1. The unreal build tool from UE 4.19 seems to omit the Tegra-Android platform configurations from generated VS projects (.vcxproj files) even if NT VSE is installed. You can add the MSBuild platform manually using VS’s Configuration Manager.
    [url]https://docs.microsoft.com/en-us/cpp/ide/vcxproj-file-structure[/url]
  2. Don’t be afraid of SIGILL that’s observed at the start of debugging of a UE4 project on certain devices is actually harmless, as it’s produced and correctly handled by the OpenSSL library (it’s CPU capabilities evaluation routine). Just hit Continue and the debug session will go on.

Got it, will check that out Thank you, you’ve been a great help

The issue is with codeworks release 7 and before published, the software incredibuild is causing the issue you can do a workaround using an unsupported approach https://www.incredibuild.com I think as I’m not an employee of nvidia and just download the latest release of the software from there, this solved my VS 2017 issue

Ok, I’m late to the party here and only have VS 2017 installed and get:

The selected items:
Nsight Tegra, Visual Studio Edition 3.5

Missing external dependencies may cause the error of installation:

  • Microsoft Visual Studio

When I try to install CodeWorks. How do we get around this?

Hi stevieboy, please, try the standalone installer of NT VSE 3.5, that’s available here:
[url]https://developer.nvidia.com/gameworksdownload[/url]

In case of emergency (if the tool installation still fails), please, share with us the most recent log files named dd_.log, VSIXInstaller.log, NVIDIA_Nsight_Tegra_*.log which are stored in %tmp% directory

Great, that seemed to work. Do I go ahead install Codeworks over the top of this?

Steve.

You can try that stevieboy, but skip Nsight Tegra, Visual Studio Edition 3.5 component in the CodeWorks installer