使用搜索模式'd:\ a \ 1 \ s \ ** \ *。sln'未找到解决方案

时间:2019-06-17 15:55:51

标签: azure github azure-pipelines

我希望你一切都好。

请您原谅,我是这种论坛的新手。

在Microsoft Azures Pipelines设置阶段,在Microsoft Azure Pipelines上部署构建时遇到问题。

我的github存储库由main.py,requirements.txt和一个Azure CI文件组成。

此外,我正在使用简单的示例而不是Python进行构建(我应该使用Python吗?)。

这是我的日志:

##[section]Starting: Build solution
==============================================================================
Task         : Visual Studio build
Description  : Build with MSBuild and set the Visual Studio version property
Version      : 1.151.2
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/visual-studio-build
==============================================================================
##[error]Solution not found using search pattern 'd:\a\1\s\**\*.sln'.
##[section]Finishing: Build solution

先谢谢您。

如果您有任何疑问,我随时为您服务。

KR

Ambroise

1 个答案:

答案 0 :(得分:0)

我可以知道您创建了哪个项目吗?它是由Visual Studio模板创建的python application项目吗?众所周知,Python在运行之前会自动将脚本编译为已编译的代码(即字节代码),在管道中没有构建python的任务。如果要通过编译语言(例如C#,Java等)构建项目,则需要为项目/解决方案添加构建任务。例如,对于ASP.NET项目,参数Path to project(s)是必需的对于构建任务,它可以为目标文件( .csproj)或解决方案文件( .sln)进行过滤。