Visual Studio Team Services构建无法找到.sln文件

时间:2016-02-16 01:54:26

标签: tfs azure-devops

我是Visual Studio和Visual Studio Team Services的新手。

我正在尝试使用Team Services运行简单代码的构建。但是,我收到以下错误:使用搜索模式'C:\ a \ 1 \ s ***。sln'找不到解决方案。

我的步骤是: 1.在Team Services中,创建一个名为Same New Project的团队项目。 2.打开Visual Studio,配置我的工作区。 3.在VS中,创建了一个新的解决方案(Windows窗体) 4.签入代码。 5.在Team Services中,从菜单中选择Code并刷新屏幕以使新项目成为可能。 6.从菜单中选择Build。 7.单击+符号以创建新的构建定义。 8.选择Visual Studio。单击“下一步”。 9.检查持续集成(每当更新此分支时构建) 10.在默认代理队列下选择托管。单击“创建”。 11. enter image description here

  1. 点击保存。
  2. Clicked Queue Build。
  3. 点击确定。
  4. 构建完成后,发布错误。 这是控制台输出: 托管代理成功分配。 配置Hosted Agent的连接设置 启动托管代理 初始化与Hosted Agent的连接 已成功连接到托管代理
  5. 开始:构建

    执行以下命令行: C:\ LR \ MMS \ Services \ Mms \ TaskAgentProvisioner \ Tools \ agents \ default \ agent \ worker \ vsoWorker.exe / name:Worker-1c2934a8-bfde-429a-945e-4bb6394a6d3b / id:1c2934a8-bfde-429a-945e -4bb6394a6d3b / rootFolder:“C:\ LR \ MMS \ Services \ Mms \ TaskAgentProvisioner \ Tools \ agents \ default”/logger:Forwarding,1.0.0;Verbosity=Verbose,Name=Agent1-1aadeebb9c4390e852d65e80b5fec753;JobId=1c2934a8-bfde- 429A-945E-4bb6394a6d3b

    开始:获取资源

    同步存储库:Sam New Project(TFVC) 工作区名称:ws_1_1; Build \ f1fca027-0a60-48e6-a5aa-f55071ee636c 获得C:\ a \ 1 \ s; C10 获取C:\ a \ 1 \ s \ BuildProcessTemplates; C11 得到C:\ a \ 1 \ s \ Sam New WIndows Form; C13 获取C:\ a \ 1 \ s \ BuildProcessTemplates \ AzureContinuousDeployment.11.xaml; C11 获取C:\ a \ 1 \ s \ BuildProcessTemplates \ DefaultTemplate.11.1.xaml; C11 获取C:\ a \ 1 \ s \ BuildProcessTemplates \ LabDefaultTemplate.11.xaml; C12 获取C:\ a \ 1 \ s \ BuildProcessTemplates \ UpgradeTemplate.xaml; C11 得到C:\ a \ 1 \ s \ Sam New WIndows Form \ Sam New WIndows Form; C13 获取C:\ a \ 1 \ s \ Sam New WIndows Form \ Sam New WIndows Form \ App.config; C13 获取C:\ a \ 1 \ s \ Sam New WIndows Form \ Sam New WIndows Form \ Form1.cs; C13 获取C:\ a \ 1 \ s \ Sam New WIndows Form \ Sam New WIndows Form \ Form1.Designer.cs; C13 获取C:\ a \ 1 \ s \ Sam New WIndows Form \ Sam New WIndows Form \ Program.cs; C13 获取C:\ a \ 1 \ s \ Sam New WIndows Form \ Sam New WIndows Form \ Properties; C13 获得C:\ a \ 1 \ s \ Sam新窗口形式\ Sam New WIndows Form \ Sam New WIndows Form.csproj; C13 获得C:\ a \ 1 \ s \ Sam新窗口形式\ Sam New WIndows Form \ Sam New WIndows Form.csproj.vspscc; C13 获取C:\ a \ 1 \ s \ Sam New WIndows Form \ Sam New WIndows Form \ Properties \ AssemblyInfo.cs; C13 获取C:\ a \ 1 \ s \ Sam New WIndows Form \ Sam New WIndows Form \ Properties \ Resources.Designer.cs; C13 获取C:\ a \ 1 \ s \ Sam New WIndows Form \ Sam New WIndows Form \ Properties \ Resources.resx; C13 获取C:\ a \ 1 \ s \ Sam New WIndows Form \ Sam New WIndows Form \ Properties \ Settings.Designer.cs; C13 获取C:\ a \ 1 \ s \ Sam New WIndows Form \ Sam New WIndows Form \ Properties \ Settings.settings; C13 完成将存储库Sam New Project同步到版本C13(工作区版本C13)

    正在运行的任务

    启动任务:构建解决方案***。sln

    执行powershell脚本:C:\ LR \ MMS \ Services \ Mms \ TaskAgentProvisioner \ Tools \ agents \ default \ tasks \ VSBuild \ 1.0.19 \ VSBuild.ps1 使用搜索模式'C:\ a \ 1 \ s ***。sln'找不到解决方案。

    完成任务:VSBuild

    启动任务:将文件复制到:$(build.artifactstagingdirectory)

    将workingFolder设置为默认值:C:\ LR \ MMS \ Services \ Mms \ TaskAgentProvisioner \ Tools \ agents \ default \ tasks \ CopyFiles \ 1.0.10 找到0个文件

    完成任务:CopyFiles

    启动任务:发布工件:删除

    将workingFolder设置为默认值:C:\ LR \ MMS \ Services \ Mms \ TaskAgentProvisioner \ Tools \ agents \ default \ tasks \ PublishBuildArtifacts \ 1.0.25 Max Concurrent上传2,Max Creators 1 找到0个要上传的文件。 创建0个文件而不上传内容。处理的文件总数为0 上传工件'C:\ a \ 1 \ a'到build 7的容器文件夹'drop'。 与构建7相关联的工件6

    完成任务:PublishBuildArtifacts

    任务VSBuild失败。这导致作业失败。查看任务的日志以获取更多详细信息。

    完成构建

    工人工人-1c2934a8-bfde-429a-945e-4bb6394a6d3b完成了工作1c2934a8-bfde-429a-945e-4bb6394a6d3b

1 个答案:

答案 0 :(得分:2)

根据"获取来源"步骤,解压缩文件(.sln)没有下载。请检查以下事项:

1:转到" Code"选项卡并确保已签入解决方案文件夹和文件。

2:转到" Build"选项卡并确保" Mappings"在"存储库"设置包括构建定义中的解决方案文件夹。 enter image description here

相关问题