Visual Studio Online的通用应用程序 [英] Universal application with visual studio online

查看:75
本文介绍了Visual Studio Online的通用应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在Visual Studio Online(VSO)中设置项目,并且在设置自动生成方面遇到麻烦. 我的解决方案包含以通用Windows为目标的项目 VSO使用msbuild运行我的项目.

I'm currently setting up project in Visual Studio Online (VSO) and having troubles with setting up automated build. My solution contains projects targeted as Universal Windows VSO uses msbuild to run my project.

在构建过程中,我看到奇怪的错误消息,例如:

During build I see strange error messages like:

    Error CS0518: Predefined type 'System.Void' is not defined or imported
    Error CS0518: Predefined type 'System.Object' is not defined or imported
    Error CS0246: The type or namespace name 'Uri' could not be found (are you missing a using directive or an assembly reference?)

使用以下参数调用

msbuild:

msbuild is invoked with following parameters:

    C:\Program Files (x86)\MSBuild\14.0\bin\amd64\msbuild.exe "C:\a\b0d9e3fd\test\src\Shipping.sln" /nologo /m /nr:false /fl /flp:"logfile=C:\a\b0d9e3fd\test\src\Shipping.sln.log" /dl:CentralLogger,"C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agent\worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll"*ForwardingLogger,"C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agent\worker\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll" /p:Platform=Win32 /p:TargetVersion="Windows10" /p:TargetPlatformVersion="10.0.10010.0" /p:platform="any cpu" /p:configuration="release" /p:VisualStudioVersion="14.0"

这是怎么了?使用msbuild构建通用Windows应用程序是否还需要其他参数?

What's wrong with this? Are there any other additional parameters required to build universal windows app with msbuild?

推荐答案

您是否以Windows 10 SDK为目标?如果是这样,请注意,它是 不是 安装在TFS托管的构建服务器上.因此,您将无法构建使用Windows 10 SDK的应用程序.您可以在此处已安装的软件的完整列表.

Are you targeting the Windows 10 SDK? If so note that it is not installed on the TFS hosted build servers. Consequently you will not be able to build apps that use the Windows 10 SDK. You can see the complete list of installed software here.

这篇关于Visual Studio Online的通用应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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