我正在努力将软件工具(MSBuild,.NET框架,Wix等)安装到Windows docker容器上。
FROM mcr.microsoft.com/windows/servercore:ltsc2016
SHELL ["powershell"]
# Install Chocolatey
RUN Set-ExecutionPolicy Bypass
RUN iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# Install dotnet 4.6.2
RUN choco install netfx-4.6.2-devpack -y
# Install MSBuild 15.0
RUN choco install microsoft-build-tools -y
CMD ["powershell"]
构建docker映像时,安装挂起并显示消息“正在安装dotnetfx” ...是否有人成功在Windows容器上安装了.NET框架和MSBuild?我真的很感谢任何建议。我没主意了。