Thanks for reaching out.
You installed Visual Studio 2019 Build Tools in a container with --noweb and a .vsconfig that lists individual components. The Build Tools SKU only brings MSBuild + minimal targets. The MSBuild folders you expect (e.g. C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VisualStudio\v16.0\WebApplications, Web, WCF) are delivered by the Web Build Tools workload and its component group. If your offline layout doesn’t contain those packages and --noweb blocks downloading, the installer completes without those directories.
- Workload/component IDs for Build Tools (including Web Build Tools and Web build component group) are documented here: Microsoft.VisualStudio.Workload.WebBuildTools, Microsoft.VisualStudio.Web.BuildTools.ComponentGroup. [devblogs.m...rosoft.com]
- Installing Build Tools in Windows containers requires providing all needed payloads (or allowing downloads). Using
--nowebwith an incomplete layout omits components. [visualstud...gazine.com]
1) Rebuild your offline layout to include Web build targets
vs_buildtools.exe ^
--layout \share\vslayout2019 ^
--lang en-US ^
--add Microsoft.VisualStudio.Workload.WebBuildTools ^
--add Microsoft.VisualStudio.Web.BuildTools.ComponentGroup ^
--includeRecommended
Then install from that layout (omit --noweb unless the layout is complete):
Start-Process "\share\vslayout2019\vs_buildtools.exe" -ArgumentList @(
'--quiet','--wait','--norestart',
'--installPath',"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools",
'--add','Microsoft.VisualStudio.Workload.WebBuildTools',
'--add','Microsoft.VisualStudio.Web.BuildTools.ComponentGroup'
) -Wait
Using an offline layout is the supported way to install Visual Studio without internet; the layout must contain all required packages or the install will try to fetch them unless you use --noWeb with a complete layout + --channelURI. [magnetism.ai]
2) Container install (Dockerfile example)
escape=`
FROM mcr.microsoft.com/windows/servercore:ltsc2019
SHELL ["cmd","/S","/C"]
ADD https://aka.ms/vs/16/release/vs_buildtools.exe C:\TEMP\vs_buildtools.exe
RUN C:\TEMP\vs_buildtools.exe --quiet --wait --norestart ^
--add Microsoft.VisualStudio.Workload.WebBuildTools ^
--add Microsoft.VisualStudio.Web.BuildTools.ComponentGroup ^
--includeRecommended ^
--installPath "C:\BuildTools" || IF "%ERRORLEVEL%"=="3010" EXIT 0
This follows Microsoft’s Build Tools in containers guidance; include the workloads you need, and ensure base image compatibility. [visualstud...gazine.com], [blog.ndepend.com]
**
Why your .vsconfig wasn’t enough** Your .vsconfig lists many individual components, but the WebApplications/Web/WCF MSBuild targets are bundled in workloads/component groups (not always pulled by individual component IDs). Add the workload IDs shown above to the layout/installer to pull the correct MSBuild targets. [devblogs.m...rosoft.com]
**
References**
- Build Tools workload & component IDs (includes Web Build Tools + Web build component group): https://learn.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-build-tools?view=visualstudio [devblogs.m...rosoft.com]
- Install Build Tools into a container: https://learn.microsoft.com/en-us/visualstudio/install/build-tools-container?view=visualstudio | Advanced container example: https://learn.microsoft.com/en-us/visualstudio/install/advanced-build-tools-container?view=visualstudio [visualstud...gazine.com], [blog.ndepend.com]
- Create an offline installation / layout (how
--layout,--noWeb,--channelURIwork): https://learn.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio?view=visualstudio [magnetism.ai]
Let us know if the issue persists after following these steps. I’ll be happy to assist further if needed. If the issue has been resolved, Kindly mark the provided solution as "Accept Answer", so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.