naspinski
naspinski

Reputation: 34687

Where do I get resgen.exe to use with NANT?

I am simply trying to run NANT with resgen, but I can't seem to find what I need to download to have it available in 'C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin\resgen.exe' on my server.

Thank you.

Upvotes: 12

Views: 18582

Answers (3)

Io-oI
Io-oI

Reputation: 2565

To obtain all available versions and their respective paths

  • In command-line prompt>
where.exe /r \ ResGen.exe

rem :: results ::

c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\ResGen.exe
c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.2 Tools\ResGen.exe
c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7 Tools\ResGen.exe
c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.1 Tools\ResGen.exe
c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\ResGen.exe
c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\ResGen.exe
  • In > Start Menu -> Run
cmd /k where.exe /r \ ResGen.exe

rem :: results ::

c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\ResGen.exe
c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.2 Tools\ResGen.exe
c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7 Tools\ResGen.exe
c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.1 Tools\ResGen.exe
c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\ResGen.exe
c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\ResGen.exe
  • Get all outputs on your ClipBoard add | clip
cmd /k where.exe /r \ ResGen.exe | clip 

Upvotes: 5

Jaanus Varus
Jaanus Varus

Reputation: 3573

With Visual Studio developer installation "resgen" can be found at

Visual Studio 2012

%PROGRAMFILES(X86)%\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\resgen.exe

Visual Studio 2017

%PROGRAMFILES(X86)%\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.2 Tools\resgen.exe

Upvotes: 8

Josh Gallagher
Josh Gallagher

Reputation: 5329

On the server running your NANT script, you can either install Visual Studio 2005 to get "resgen.exe" available at the location described in your question or you can install the Windows SDK.

Once installed, "resgen.exe" will be available at a location similar to:

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin

Upvotes: 15

Related Questions