Visual Studio 2012 error: Package 'Visual C++ package' failed to load

前端 未结 4 1465
野性不改
野性不改 2020-12-08 06:31

When I\'m trying to open any solutions that worked fine before in Visual Studio 2012, the error \"Package \'Visual C++ package\' failed to load\" keeps showing up.

4条回答
  •  时光取名叫无心
    2020-12-08 07:20

    Running command prompt from inside Visual Studio.

    For easier access, you can add the Visual Studio Developer Command Prompt or any other command prompt to the Tools menu on Visual Studio, by adding it to the external tools list. This is how you can accomplish that:

    1. Open Visual Studio.

    2. Select the Tools menu and choose External Tools...

    3. On the External Tools dialog box, choose the Add button. A new entry appears.

    4. Enter a Title for your new menu item such as Command Prompt.

    5. In the Command field, specify the file you want to launch such as %comspec% or C:\Windows\System32\cmd.exe.

    6. In the Arguments field, specify where to find the specific command prompt you want to use such as /k "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat" (this will launch the Developer Command Prompt installed with Visual Studio 2015). This value needs to be changed according to your Visual Studio version and installation location.

    7. Choose a value for the Initial directory field such as Project Directory.

    8. Choose the OK button. After that, the new menu item is added and you can access the command prompt from the Tools menu.

    Then:

    1. Right-click the Visual Studio icon
    2. Choose Run As Administrator
    3. Click the menu TOOLS → *Command Prompt** to open the command window
    4. Input the command "devenv /Setup"
    5. Open Visual Studio again, and it will work.

提交回复
热议问题