Where is "ildasm" in Visual Studio 2019? - c#

I used to be able to run ildasm in the Developer Command Prompt for Visual Studio 2017. With Visual Studio 2019, ildasm is no longer available:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>ildasm
'ildasm' is not recognized as an internal or external command,
operable program or batch file.
Was it replaced with something else or is my VS 2019 installation incomplete?

ildasm.exe is installed with the Windows SDK tools, located in C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\ildasm.exe or somewhere similar depending on the version.
You can install the SDK from this website or by selecting it in the optional components during the installation of VS2019.

Try to use it directly from Developer Command Prompt 2019/2017

Related

I have installed VS 2017. But the installer can't find it, which results in that I can't update and uninstall them

This is my Visual Studio UI and installer:
Then, I try to open the installer from Visual Studio. But it shows an error message:
I think that there is no specific path of the vs in its config files. However, I failed to find it. Please share your advice and a solution for this. Thanks.
Let's try this way
- Open CMD with admin privilage and go to this path
cd /d c:\program files (x86)\microsoft visual studio\installer
Depend on which version of visual studio you have installed (Enterprise, Community or Professional) type :
for Enterprise
vs_installershell.exe repair --installPath="C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise"
for Community
vs_installershell.exe repair --installPath="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community"
for Professional
vs_installershell.exe repair --installPath="C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional"
here is the source it has worked for some users
https://developercommunity.visualstudio.com/content/problem/313423/missing-option-value-installpath.html

Can't run NMAKE in the command prompt after upgrade to Visual Studio 2017

I have some power shell scripts file it uses both MSBUILD.exe and NMAKE, I invoke it by command prompt not developer command prompt of VS 2017, but it is not recognized after executed VsMSBuildCmd.bat file.
But it works fine on the Visual Studio 2015.
Besides, it is working through developer command prompt of VS 2017.
Any suggestions?
It seems like the new location for Visual Studio 2017 Developer Command Prompt is here:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\LaunchDevCmd.bat
Can't run NMAKE in the command prompt after upgrade to Visual Studio 2017
I got the same result "'nmake' is not recognized as an internal or external command" after executed the VsMSBuildCmd.bat file from VS2017 installation directory: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools:
After test, I found the solution for this issue, after executed the VsMSBuildCmd.bat, still need to executed the vcvars.bat. The path of vcvars.bat is:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\vsdevcmd\ext
In this case, NMAKE command would be recognized in command prompt:
If you don't see vcvars , you should install msvc component.

How to enable TFS tracing in Visual Studio 2017

I was looking to enable TFS tracing in my Visual Studio 2017. All the links I have found is for older version of Visial Studio where you go to the \common7\IDE directory to open up the devenv.exe.config file. For some reason, I do not have this file in my 2017 version.
Does Visual Studio 2017 still utilize the devenev.exe.config? If so, does it reside in a different directory from previous versions?
The devenev.exe is also located under \common7\IDE directory. However, VS2017 installed path is not the same as previous version. The devenv.exe is located at:
For VS2017
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe
For VS2015
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe
If you want to find the install location of devenv in a script, since there is no %VS150COMNTOOLS% for Visual Studio 2017, you could use vswhere.exe or powershell to find your Visual Studio instances. Detail steps please refer this question: reliable way to find the location devenv.exe of Visual Studio 2017
I ended up going to the VS 2017 environment in a command window in administrator mode. I then ran 'devenv.exe /log c:\vs_logs\log.txt'. That allowed me to create logs of what VS was doing

VS2017 command line build (missing "%VS150COMNTOOLS%VSVars32.bat")

I have installed VS2017 and call
call "%VS120COMNTOOLS%VSVars32.bat"
from the command line but all I get is
'"%VS150COMNTOOLS%VSVars32.bat"' is not recognized as an internal or external command, operable program or batch file.
If I run "set" from the command line I can see VS120COMNTOOLS (for VS2013) & VS140COMNTOOLS (for VS2015) but there is no VS150COMNTOOLS. How can I build from the command line?
I submitted this as a tech support issue to Microsoft who accepted it as a bug in the install ("there is no VSVars32.bat in the C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools directory.").
However, there is a work-around:
From MS:
At least, since there is a VsDevCmd.bat, there is a Visual Studio 2017 Developer Command Prompt, which also sets, modifies environment variables (Framework40Verion, FrameworkDir, FrameworkDIR64, FrameworkVersion, FrameworkVersion64, INCLUDE, IPCPATH, PATH, VCINSTALLDIR, VCToolsInstallDir, ...)
C:\Program Files (x86)\Microsoft Visual Studio\2017\EDITION\Common7\Tools\VsDevCmd.bat
Run C:\Program Files (x86)\Microsoft Visual Studio\2017\EDITION\Common7\Tools\VsDevCmd.bat where EDITION is the type of VS2017 install, i.e. C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat for the Enterprise install. This sets up the needed environment variables and batch builds will work.
Hope this helps anyone struggling with the same issue.
VS2017 has reworked its directory structure and filenames. The file is no longer titled "VsVars32.bat", you should look for the file 'vcvars.bat', which can be located in ..\Program Files (x86)\Microsoft Visual Studio\2017\EDITION\Common7\Tools\vsdevcmd\ext\vcvars.bat (using Adam's syntax, replace EDITION with the version of Visual Studio you use).
For simplicity, you can use %VSAPPIDDIR% in your call to point to the IDE folder where devenv.exe is located, and go back one folder to define your path to the batch file. For example:
call "%VSAPPIDDIR%..\Tools\vsdevcmd\ext\vcvars.bat"
If its any help to anyone...
If you modify your Visual Studio 2017 installation to install the component:
"VC++ 2015.3 v140 toolset for Desktop (x86,x64)"
then the 'VSVars32.bat' file which is missing, will be installed (as its a component of VC++ 2015, but not VC++ 2017).

ILDASM.exe through Visual Studio 2008

Is there a way to find ILDASM.exe from Visual Studio 2008?
I know the location "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin", but I want it through Visual Studio 2008.
If you have the SDK:
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin
Personally, though, I'd use .NET Reflector instead...
I tend to associate this with bin/exe via the "Open With..." dialog in the Solution Explorer; add it to that, job done.
I'm not sure what you mean by "wanting it through Visual Studio", but you can easily add it to the Visual Studio Tools menu with the "Tools -> External Tools" dialog.
The .NET Framework 3.5 that comes with Visual Studio 2008 is more or less only an extension (new assemblies) to .NET 2.0. Therefore the directory structures seem to be different.
On my machine, the new ILDASM.exe is located in "C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin".

Categories