Share via


Where to download "mc.exe" and "rc.exe" for Visual Studio 2017/.NET 4.7.02/Win7

Question

Saturday, May 4, 2019 3:04 PM

Hi, I have visual studio 2017(.NET 4.7.02) on Win7, I need the message compiler mc.exe and Resource compiler rc.exe, what download do I need to get these tools?   I looked in "Program Files" and "Program Files (x86)" under SDK and visual studio, I don't see these files

All replies (7)

Saturday, May 4, 2019 3:14 PM

I got them with the Windows 10 SDK

(for example for my version, in C:\Program Files (x86)\Windows Kits\10\bin\10.0.16299.0\x86)


Saturday, May 4, 2019 3:19 PM

Yeah, I don't have that directory on Win7, I am doubtful WIN10 versions would run on Win7, It may also be expecting a higher version of .NET (I tried installing a generic SDK but it greyed out some tool options because it wanted a higher version of .NET) , my project is locked into 4.7.02, I need older versions compatible with Win7/.NET v4.7.02


Saturday, May 4, 2019 3:31 PM

There is a link for older versions in the MS page : Previous SDK versions


Saturday, May 4, 2019 3:38 PM

going to try the WIN10 SDK..... hope it doesn't break anything,

Update: Install notes indicate that it changes versions of many software packages.... don't want to take risk it breaks something else.

I have tried to download/install through Tools>Extensions Updates, 

No luck there either.....


Saturday, May 4, 2019 3:45 PM | 1 vote

If you don't have any C++ workloads installed, then the easiest option is to go to the Visual Studio Installer, modify your instance of Visual Studio, and then go to Individual Components:

You can find the Windows 10 SDK there.

The resource compiler and message compiler come with all versions of the Windows SDK, so it doesn't matter which version you install.

For example, I have them in 10.0.18362.0\x86 and x64, I also have them in 10.0.17763.0\x86 and x64, I also have them in 10.0.17134\x86 and x64.

This is because those are the versions of the Windows SDK they are installed in.

So just install a Windows SDK that is available in the Visual Studio 2017 setup and you are good to go.

This is a signature. Any samples given are not meant to have error checking or show best practices. They are meant to just illustrate a point. I may also give inefficient code or introduce some problems to discourage copy/paste coding. This is because the major point of my posts is to aid in the learning process.


Saturday, May 4, 2019 3:50 PM

It won't, because these particular tools in the Windows 10 SDK are set to run on Windows 7.

This is the executable header for rc.exe. Do you notice the Subsystem version field is 6.01? Windows 7's version number is 6.01.7601 for SP1. The subsystem version is basically the lowest version of Windows that this executable will run on, and it is specifically set to work on 7.

The Windows 10 SDK is also documented to support Windows 7 too.

This is a signature. Any samples given are not meant to have error checking or show best practices. They are meant to just illustrate a point. I may also give inefficient code or introduce some problems to discourage copy/paste coding. This is because the major point of my posts is to aid in the learning process.


Tuesday, May 7, 2019 6:26 AM

Hi coastalSax,

Have you anything could be updated here?

As @Darran said, you could install windows SDK via VS installer. There would not make any risk on your system.

Looking forward your reply.

Best

May

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]