install in windows server core

amin nazari 21 Reputation points
2022-08-19T18:16:29.3+00:00

Hello guys
recently our team create some agents with windows server 2022 core to build our projects.
so we understand to need install visual studio enterprise for dependencies.

but I don't know visual studio enterprise exists for windows core or not
I found this website for install
https://learn.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-enterprise?view=vs-2019
but I don't know this supports all of the visual studio enterprise features I can install on windows desktop or not

I need to know about this.
TNX

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. Tianyu Sun-MSFT 29,446 Reputation points Microsoft Vendor
    2022-08-22T09:00:18.907+00:00

    Hi @amin nazari ,

    Welcome to Microsoft Q&A forum.

    The document includes workload IDs and component IDs. They are the same(installing with UI in VS IDE or using IDs in command line). The difference is these IDs are usually for command line installing.

    One thing to note is that you may need to select to install all "Required"(Dependency type) components of one workload to install this workload. I mean, if you only installing several Required components or only selecting several Optional components to install(without installing Required components), then the installation may fail.

    BTW, if you want to install all workloads and components, you can consider this command: vs_enterprise.exe --layout C:\XXXXX --lang en-US(this command creates a complete local layout with all features).

    Feel free to contact us.

    Best Regards,
    Tianyu

    • 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.

2 additional answers

Sort by: Most helpful
  1. Philippe Levesque 5,711 Reputation points
    2022-08-19T19:08:26.32+00:00

    Hi

    You can install feature in silent mode, but it can be complex to do.

    Does that answer, answer you for the how to do it ?

    To quote the answer; you use BuildTools.exe, and add the dependencie you need;

    && setx /M DOTNET_SKIP_FIRST_TIME_EXPERIENCE 1 && start /w vs_BuildTools.exe ^
    --add Microsoft.VisualStudio.Workload.MSBuildTools ^ --add Microsoft.VisualStudio.Workload.NetCoreBuildTools ^
    --add Microsoft.Net.Component.4.8.SDK ^ --add Microsoft.VisualStudio.Workload.XamarinBuildTools;includeOptional ^
    --quiet --norestart --nocache --wait && powershell -Command "if ($err = dir $Env:TEMP -Filter dd_setup_*_errors.log | where Length -gt 0 | Get-Content) { throw $err }"
    && del vs_BuildTools.exe `

    0 comments No comments

  2. amin nazari 21 Reputation points
    2022-08-20T04:32:52.53+00:00

    TNX yagmoth555

    I tried with that and that was success.
    but I have another question
    I guess I couldn't say clearly
    let's explain again but with details

    on the windows desktop, I install visual studio with some workloads
    I wanna know workload in install with UI and command is the same
    or not, I can not install all of the workload same visual studio on a windows desktop

    that's my question