VS 2015 Isolated Shell application when built in VS2022 results in build errors

hemalatha Nallusamy 1 Reputation point
2022-07-19T06:21:16.04+00:00

VS 2015 Isolated Shell application when build in VS2022 results in build errors.

Error Detail:
2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\VSSDK\Microsoft.VsSDK.Common.targets(126,5): error VSSDK1000: Failed to load 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VSSDK\VisualStudioIntegration\Tools\bin\VSCT.exe' Assembly. Could not load file or assembly 'file:///C:\Program Files (x86)\Microsoft Visual Studio 14.0\VSSDK\VisualStudioIntegration\Tools\bin\VSCT.exe' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Steps to reproduce:

  1. Create an Isolated Shell application project in VS2015.
  2. Build the project. it builds fine.
  3. Change the reference of shell dlls to use specific version and build the project.
  4. Open same project in VS2022 and build it. We get the above error.

Need support to fix this error.

Thanks in advance..

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
0 comments No comments
{count} votes

7 answers

Sort by: Most helpful
  1. hemalatha Nallusamy 1 Reputation point
    2022-08-01T06:52:33.347+00:00

    Hi @Tianyu Sun-MSFT ,

    In VSShellStub1UI.vcxproj file, the build tools version was 14.0. Once I changed it from 14.0 to 17.0 as advised by
    Tina Schrepfer (VS) [MSFT], It worked.

    Now I am successfully able to build the application.

    Thanks a lot for your guidance and support


  2. Ender 1 Reputation point
    2022-09-01T02:07:24.847+00:00

    I open VSShellStub1.sln in VS2022,then,choose "not upgrade". I removed these 2 project, VSShellStub1 and VSShellStub1UI, and add them in again. Then, I can run VSShellStub1 as startup.
    If compile the solution, the error about vsct.exe format is still here, but I can debug the aboutPack.
    236647-image.png


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.