Visual Studio 2010 Shell Isolated template broken

2019-04-29 14:03发布

问题:

I am following a tutorial for creating a Visual Studio Isolated Shell application. When I get to step number 4 I a dialog with the following text:

A problem was encountered creating the sub project 'VSShellStub1'. The template specified cannot be found. Please check that the full path is correct.

I've tried this on two separate machines with identical results. Both machines have the Visual Studio 2010 SDK and the Isolated redistributable installed. Has anyone seen/solved this problem?

回答1:

This will happen if you didn't install Visual C++ as a feature when you installed Visual Studio 2010. Visual C++ is required for building Isolated Shell applications since the stub exe and stub UI dll have to be native binaries.

You can add Visual C++ by following these instructions (under "Installing Optional Components").