VS 2019 - Layout and Offline Installation - Missing packages

Great Scott 1 Reputation point
2022-06-17T01:34:57.263+00:00

I am trying to create a VSLayout for an offline installation on a server for an Azure Agent Build environment, and I am creating my layout like this:

.\vs_Enterprise.exe --layout c:\VSLayout --lang en-Us --add Microsoft.Component.MSBuild --includeOptional

I then move it to my server and attempt the installation like this:

vs_Enterprise.exe --noweb --add Microsoft.Component.MSBuild --includeOptional

No matter what I try, I always seem to get an error saying that some packages are missing and can't be installed. I have tried many different combinations of workloads and package IDs but I can't seem to get this to work. Am I doing something wrong?

Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2022-06-17T06:36:26.837+00:00

    Hi @Great Scott ,

    Welcome to Microsoft Q&A!

    Please check the system requirements of VS2019 and upgrade your agent to the latest version.

    And use the –fix parameter to fix the missing package files. It requires an internet connection.
    Then, move the complete layout to the machine without internet and retry the installation.

    Besides, MSBuild is included by the Desktop development with C++ workload. You can try to add Desktop development with C++ workload to install it
    vs_Enterprise.exe --layout c:\VSLayout --add Microsoft.VisualStudio.Workload.NativeDesktop --includeOptional --lang en-US

    Sincerely,
    Anna
    *
    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    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.

    0 comments No comments

Your answer

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