On Thu, Jul 24, 2025 at 7:15 PM Juergen Funk <[email protected]> wrote: > > Hi Christian, > > > IANAL, but all the documents I read about that read about intranet or > > a share in your company or something like that, even if there's a > > network based method, it still doesn't sound to me like it could be > > offered over the internet. > Yes, you're right, I confused that with the “offline layout via web server,” > which is not what we have. > > But you can also install it using the command line. > for example (can not found the .vsconfig)
the .vsconfig is also in the root of the core repository (linked to the .config/vs2022.vsconfig file, there's also a 2022_cross.vsconfig file that would add the necessary components to cross compile for ARM64) > vs_community.exe --quiet --wait --norestart --add > Microsoft.VisualStudio.Workload.ManagedDesktop --add > Microsoft.VisualStudio.Workload.NetWeb yeah, since we're not using only the workloads, but also need some individual components, using the vsconfig instead is much easier/shorter. > winget install --id Microsoft.VisualStudio.2022.Community --override "--quiet > --add Microsoft.VisualStudio.Workload.ManagedDesktop --includeRecommended" The winget configuration file uses winget to install visual studio, so that's coming full-circle :-) and as for --includeRecommended: that's used by the default .config/configuration.winget - the .config/jenkins.winget omits those (and also uses the cross variant of the config) > In the documentation, we could include a note about installing > vs_community --quiet --wait --norestart --add > Microsoft.VisualStudio.Workload.ManagedDesktop --add ... > as an alternative to manual installation. I don't see a point in using manual vs-installer method over winget configure, the latter is much simpler (and doesn't require you to hunt down the vs-installer beforehand) > > "winget configure -f .config/configuration.winget" – that will install > > visual studio with the required packages > Where can I find the document? That's in the core repo – it is basically using winget as you described above to install VS, except that it doesn't manually list the components (which the configuration could just as well), but it uses the vsconfig file that already exists for the list of packages. Winget configure is described here: https://learn.microsoft.com/en-us/windows/package-manager/configuration/ The part specifically for Visual Studio lives here: https://github.com/microsoft/VisualStudioDSC ciao Christian
