可以在Windows Server 2016 Core上安装Visual Studio 2019社区吗?

邮报Impatica

我可以在Windows 2016 Core docker容器上静默安装Visual Studio 2019社区吗?我按照说明下载了VS Community exe,然后解压缩到vslayout文件夹。我在构建期间将此文件夹复制到了Windows 2016 Server核心Docker容器中,并尝试使用以下命令运行安装:

RUN .\vs_setup.exe --add Microsoft.VisualStudio.Workload.NetCrossPlat --includeRecommended --quiet --norestart

在构建过程中,我得到了几行,如下所示,最后一行是:

Preparing: C:\Users\ContainerAdministrator\AppData\Local\Temp\e1ab6aced6786d403760\vRemoving intermediate container 67a8e8bebba1

然后,其余的容器构建继续进行,并且没有错误地完成,但是您可以说没有安装任何跨平台库,更不用说安装完成得太快了,因此没有任何意外。

我在浪费时间吗?是否有可能在Windows容器中执行此操作?我只想能够在Windows Server 2016核心构建代理中构建xamarin.android应用。

邮报Impatica

我想到了。(我假设)您必须使用Visual Studio构建工具。有关如何设置的帮助,请转到docker hub,找到microsoft .net framework sdk Windows映像,然后查看dockerfile。您将看到他们如何设置构建工具。然后使用Google这个词visual studio build tools workloads来查找要添加的任何构建组件。

基于Microsoft dockerfile,这是我相关的编辑部分,使我着手进行android开发:

&& 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 `

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Visual Studio社区可以安装TFS(Team Foundation Server)吗?

在Windows Server 2016的Visual Studio安装程序中找不到.NET Framework 4.7目标包

在 Windows Server 2016 标准上安装 Anaconda

Windows Server 2016上的Portainer安装

Windows Server 2016 EC2可以挂载EFS吗?

在Windows 7上安装Visual Studio 2015社区版

Django 会在 Windows Server 2019 或 2016 上运行吗?

Visual Studio 测试代理 兼容 Server 2016

是否可以在Visual Studio 2017社区中安装SQL Server数据工具?

Visual Studio 2017企业版,IIS 10,Windows Server 2016,Web Deploy 5错误:“确保已安装Web Deploy”

Windows Server 2016和2019之间的区别

用户数据:在Windows Server 2016上安装IIS

如何在Windows Server 2016上安装Microsoft Edge?

无法在 Windows Server 2016 (WinPython) 上安装 pysqlite

PHP Manager IIS 无法在 Windows Server 2016 上安装

如何在Windows 7上安装SQL Server 2016

无法在VMware Workstation Player上安装Windows Server 2016

支持 Windows Server 2016 活动目录吗?

我可以在Windows 10上使用Visual Studio 2008吗?

安装Windows SQL Express Server 2016

我可以在Visual Studio 2013上使用.net Core吗

Visual Studio 2019社区版脱机安装程序

是Management Studio 2016提供SQL Server 2016

Azure 上的出厂重置 Windows Server 2016

在Windows 2016 Server上卸载服务

OpenSSH 无法在 Windows Server 2016 上运行

是否可以在Windows Server 2012中安装Android Studio?

Windows Server 2016-是否可以安装其他Web浏览器?

Azure Site Recovery将不会安装在独立Windows Server 2016 Core上-C ++模块加载失败