Visual Studio 2013内部容器安装 [英] Visual Studio 2013 inside container installation

查看:76
本文介绍了Visual Studio 2013内部容器安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


Hi,



玩过有一些时候现在使用Windows容器(通过Docker),我目前正在尝试安装Visual Studio或至少msbuild以便能够在其中构建cpp。

Been playing for some times now with Windows containers (through Docker) and I am currently trying to install Visual Studio or at least msbuild to be able to build cpp inside it.



主要问题是无法使用容器中的图形安装程序,因此对于msbuild,因为我找不到BuildTools安装程序的命令行参考,我试图通过移动来安装它从我的开发机器到我们的CI(Server 2016 Standard,
服务器核心容器)的文件夹,但当然没有设置注册表键,缺少envs vars等,CL.exe无法找到Windows API(找不到kernel32.lib)。我挣扎了一段时间,终于放弃了,因为答案在这里和互联网没有
帮助或他们是点击式解决方案(我不太了解Windows虽然,所以我可能错过了什么)。

The major problem is not being able to use graphical installers from containers so for msbuild, since I couldn't find a command line reference for the BuildTools installer, I tried to install it by moving folders from my dev machine to our CI (Server 2016 Standard, Server Core containers) but of course with no registry keys set, missing envs vars and such, CL.exe is not able to find the windows API (not finding kernel32.lib). I struggled a while with this and finally gave up since answers here and on the internet didn't help or they were click-click solutions (I don't know much about Windows though, so I probably missed something).



我有更多的运气与Visual Studio,因为实际上有一个安装程序的命令行参考(不是2013年,但我正在使用的选项似乎存在)。安装Visual Studio我运行: 

I had more luck with Visual Studio since there is actually a command line reference for the installer (not for 2013 but the options I am using seems to exist). To install Visual Studio I run: 


vs_professional.exe /Silent /Passive /NoRestart /Full /Log INSTALL.log /AdminFile AdminDeployment.xml





安装程序和所需文件由我们的系统管理员提供,但安装失败,您可以在日志中看到:



[0FF0:36CC] [2017-04-19T13:27:38] i052:条件'(VersionNT> = v6.1)'的计算结果为真。

[0FF0:36CC] [2017-04-19T13:27:38] i000:将字符串变量'WixBundleName'设置为值'Microsoft Visual Studio Professional 2013'

[0FF0:36CC] [ 2017-04-19T13:27:39] i000:加载托管引导程序。

[0FF0:36CC] [2017-04-19T13:27:40] i000:创建BA线程以异步运行。

[0FF0:29A8] [2017-04-19T13:27:40] i000:Ux开始为
[0FF0:29A8] [2017-04-19T13:27: 41] i000:MUX: 从LocalizableStrings.xml加载LocalizableStrings.xml字符串

[0FF0:29A8] [2017-04-19T13:27:41] i000:MUX: 重置结果

[0FF0:29A8] [2017-04-19T13:27:41] i000:MUX: 当前行动:安装

[0FF0:29A8] [2017-04] -19T13:27:41] i000:将字符串变量'CurrentOperation'设置为值'Install'
$
[0FF0:29A8] [2017-04-19T13:27:41] i000:设置字符串变量' IsLanguagePack'来价值''
[0FF0:29A8] [2017-04-19T13:27:41] i000:MUX: 当前操作:安装

[0FF0:29A8] [2017-04-19T13:27:41] i000:将字符串变量'CurrentOperation'设置为值'Install'
$
[0FF0:29A8] [2017-04-19T13:27:41] i000: MUX: 新的最后一个未经证实的来源:网络$
[0FF0:29A8] [2017-04-19T13:27:41] i000:MUX: 来源确认为
[0FF0:29A8] [2017-04-19T13:27:41] i000:将字符串变量'CurrentRepairPackage'设置为值''
[0FF0:29A8] [2017-04-19T13:27: 42] i000:MUX:  Resume = None

[0FF0:29A8] [2017-04-19T13:27:42] i000:MUX:  Restart = Never

[0FF0:29A8] [2017-04-19T13:27:42] i000:MUX: 关系=无

[0FF0:29A8] [2017-04-19T13:27:42 ] i000:MUX: 动作=安装

[0FF0:29A8] [2017-04-19T13:27:42] i000:MUX: 显示=被动

[0FF0:29A8] [2017-04-19T13:27:42] e000:MUX: 错误:由于对象的当前状态,操作无效。$
[0FF0:29A8] [2017-04-19T13:27:42] e000:MUX:  Stack:    at Microsoft.Devdiv.Bootstrapper.AdminDeployment.Initialize()

    at Microsoft.Devdiv.Bootstrapper.ManagedUx.InitializeAdminDeployment(CommandLineArgumentsStore commandlineArguments)

    at Microsoft.Devdiv.Bootstrapper.ManagedUx.Initialize()

    at Microsoft.Devdiv.Bootstrapper.ManagedUx.InternalRun()

[0FF0:36CC][2017-04-19T13:27:38]i052: Condition '(VersionNT >= v6.1)' evaluates to true.
[0FF0:36CC][2017-04-19T13:27:38]i000: Setting string variable 'WixBundleName' to value 'Microsoft Visual Studio Professional 2013'
[0FF0:36CC][2017-04-19T13:27:39]i000: Loading managed bootstrapper application.
[0FF0:36CC][2017-04-19T13:27:40]i000: Creating BA thread to run asynchronously.
[0FF0:29A8][2017-04-19T13:27:40]i000: Ux Started
[0FF0:29A8][2017-04-19T13:27:41]i000: MUX:  Loading LocalizableStrings.xml string from LocalizableStrings.xml
[0FF0:29A8][2017-04-19T13:27:41]i000: MUX:  Reset Result
[0FF0:29A8][2017-04-19T13:27:41]i000: MUX:  Current action: Install
[0FF0:29A8][2017-04-19T13:27:41]i000: Setting string variable 'CurrentOperation' to value 'Install'
[0FF0:29A8][2017-04-19T13:27:41]i000: Setting string variable 'IsLanguagePack' to value ''
[0FF0:29A8][2017-04-19T13:27:41]i000: MUX:  Current action: Install
[0FF0:29A8][2017-04-19T13:27:41]i000: Setting string variable 'CurrentOperation' to value 'Install'
[0FF0:29A8][2017-04-19T13:27:41]i000: MUX:  New last unconfirmed source: Web
[0FF0:29A8][2017-04-19T13:27:41]i000: MUX:  Source confirmed
[0FF0:29A8][2017-04-19T13:27:41]i000: Setting string variable 'CurrentRepairPackage' to value ''
[0FF0:29A8][2017-04-19T13:27:42]i000: MUX:  Resume = None
[0FF0:29A8][2017-04-19T13:27:42]i000: MUX:  Restart = Never
[0FF0:29A8][2017-04-19T13:27:42]i000: MUX:  Relation = None
[0FF0:29A8][2017-04-19T13:27:42]i000: MUX:  Action = Install
[0FF0:29A8][2017-04-19T13:27:42]i000: MUX:  Display = Passive
[0FF0:29A8][2017-04-19T13:27:42]e000: MUX:  ERROR: Operation is not valid due to the current state of the object.
[0FF0:29A8][2017-04-19T13:27:42]e000: MUX:  Stack:    at Microsoft.Devdiv.Bootstrapper.AdminDeployment.Initialize()
   at Microsoft.Devdiv.Bootstrapper.ManagedUx.InitializeAdminDeployment(CommandLineArgumentsStore commandlineArguments)
   at Microsoft.Devdiv.Bootstrapper.ManagedUx.Initialize()
   at Microsoft.Devdiv.Bootstrapper.ManagedUx.InternalRun()



现在我试图搜索'由于对象的当前状态,操作无效',但我找到的只是与开发相关的问题,而不是与Visual Studio设置有关,因为我现在正在使用紫色谷歌搜索综合症来解决我的问题(并且没有一到
帮助IRL),我来这里寻求帮助。谁知道,也许有人已经尝试在Windows容器中构建cpp或安装Visual Studio。

Now I tried to search for 'operation is not valid due to the current state of the object' but all I could find is dev related issue, not Visual Studio setup related and since I am having the purple google searches syndrom now for my problems (and no one to help IRL) , I am coming here asking for some help. Who knows, maybe someone already tried to build cpp or install Visual Studio inside a Windows container.



问候。

推荐答案

您好nouamane,

Hi nouamane,

欢迎来到MSDN论坛。

Welcome to the MSDN forum.

由于你想在Windows Containers上安装VS professional 2013,我检查了
VS专业2013的系统要求,支持的操作系统列表如下:

Since you want to install the VS professional 2013 on Windows Containers, and I checked the system requirement of the VS professional 2013, the supported OS list is as below:

** Windows 7服务包1,Windows 8,Windows 8.1,Windows Server 2008 R2 SP1,Windows Server 2012,Windows Server 2012 R. 2

还应支持Windows 10和Windows Server 2016,因为在发布VS 2013时,这两个操作系统尚未发布。

The Windows 10 and Windows server 2016 should also be supported, since when the VS 2013 is released, this two OS have not released yet.

Windows容器是一个独立的,资源控制的,可移植的操作环境。我怀疑VS professional 2013无法安装在windows容器上。
您可以尝试以管理员身份直接运行VS professional 2013安装程序 vs_professional.exe ,检查是否会提醒警告或错误消息,如"与版本不兼容您运行的Windows是"
"。如果你收到错误消息,这意味着它不受支持。

The Windows Containers are an isolated, resource controlled, and portable operating environment. I suspect the VS professional 2013 cannot install on the windows container. You can try to directly run the VS professional 2013 installer vs_professional.exe as administrator, check if it will reminder the warning or error message like "is not compatible with the version of Windows you're running" or not. If you get the error message which means it is not be supported.

但是想想我们的论坛是讨论VS IDE而我不熟悉Windows容器,请重定向到

此Windows容器论坛
并启动一个主题寻求更专业的支持,他们会帮助你确认它,也许有其他方法可以达到你的发展要求,谢谢你的理解。

But think about our forum is to discuss the VS IDE and I am not familiar with the Windows Container, please redirect to this Windows Container forum and start a thread to seek for a more professional support, they will help you confirm it and maybe there have some other ways achieve your development requirement, thank you for your understanding.

致以最诚挚的问候,

Sara


这篇关于Visual Studio 2013内部容器安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆