VS 2019 upgrade

James J 586 Reputation points
2020-12-01T14:34:02.663+00:00

When we trying to upgrade from VS 2017 to VS 2019. We are getting one of the compilation issue "Microsoft.VisualStudio.DevShell.dll" file is not found. Why we need to add this dll after upgrade to VS 2019.

Currently I have written pre build event script to copy the file from installation path to Debug folder it is working. But, My question do we really needs to be added this file. Can you please clarify.

Find the below issue details for your reference.

5> The system cannot find the path specified.
5> **********************************************************************
5> ** Visual Studio 2019 Developer Command Prompt v16.8.1
5> ** Copyright (c) 2020 Microsoft Corporation
5> **********************************************************************
5> The system cannot find the path specified.
5> Microsoft (R) Service Model Metadata Tool
5> [Microsoft (R) Windows (R) Communication Foundation, Version 4.7.2053.0]
5> Copyright (c) Microsoft Corporation. All rights reserved.
5> Import-Module : The specified module '..\Bin\Debug\Microsoft.VisualStudio.DevShell.dll' was not
5> loaded because no valid module file was found in any module directory.
5> + ... ajor -ge 3){Import-Module '..\Bin\Debug\Microsoft.Vi ...

Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,009 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 27,891 Reputation points Microsoft Vendor
    2020-12-02T06:52:54.73+00:00

    Hi @James J ,

    The module Microsoft.VisualStudio.DevShell.dll is provided to help complete the compilation.
    From the error, it seems that Import-Module tries to find the module in the module directory. But the module is not in the module directory.
    Therefore, I suppose that the Microsoft.VisualStudio.DevShell.dll should be added in Debug folder.

    Sincerely,
    Anna

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful