VSTS上的持续集成-构建定义:无文件-System.AggregateException

侯赛因·萨尔曼(Hussein Salman)

我正在使用Visual Studio Team Services。我创建了一个简单的ASP.NET网站,并创建了包含默认设置的Build定义。

在此处输入图片说明

提交更改后,将使用CI触发构建。构建解决方案”步骤可以正常工作,但是在“复制文件”步骤中找不到文件

在此处输入图片说明

我已经为一个简单的控制台应用程序创建了相同的构建定义,并且该构建和发行版都可以正常工作。

When Creating a release from this build, it fails to deploy (i guess because no files are found in (Build process)) and gives the following error:

在此处输入图片说明

Eddie Chen - MSFT

When you build Asp.Net project with a default VSBuild definition, the folder bin\$(BuildConfiguration)\ does not exist. So "Copy Files" task cannot find any files with the default settings. A simple way to fix your issue is add /p:outdir=$(build.artifactstagingdirectory) in "MSBuild Arguments" for VSBuild task as following:

将自定义参数添加到MsBuild

And you can also remove "Copy Files" task since "Publish Build Artifacts" task publishes the files in $(build.artifactstagingdirectory) folder by default and you have set the build output to that folder with the argument added in VSBuild task.

更新:您可以使用以下设置添加“复制文件”任务,以将“ roslyn”文件夹复制到“ bin”文件夹:在此处输入图片说明

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

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

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

VSTS 与安全文件的持续集成

Task.WaitAll上的System.AggregateException

使用VSTS API在VSTS中的持续集成/连续交付过程中将文件提交到Git

持续集成创建构建循环

Nuget软件包-提要(VSTS):试图添加源时抛出异常'System.AggregateException'

System.AggregateException: 在 Blazor 应用程序中“无法构建某些服务”

System.AggregateException:在我的ASP.net核心中,“某些服务无法构建”

Polly Retry总是抛出System.AggregateException而不是自定义异常

导入Xamarin密钥库-System.AggregateException

Web api 中的 System.AggregateException

ScrapySharp表单提交导致System.AggregateException

GitHub Actions停留在纱线构建步骤上以实现React应用程序的持续集成

构建管理/持续集成最佳实践

无法检入TFS并通过持续集成进行构建'

您如何设置每日(每晚)构建和持续集成?

“构建”在持续集成中是什么意思?

Team Services 持续集成构建参考 Nuget 失败

错误 DI(AggregateException:无法构建某些服务)

Visual Studio 2017 15.6.2中的System.AggregateException

System.AggregateException:Azure无法部署网站

System.AggregateException: '某些服務無法構建

无法执行dex:多个dex文件定义了Lbolts / AggregateException

无法执行dex:多个dex文件定义了Lbolts / AggregateException;

当我将大于2MB的文件上传到SharePoint Online时,我的Web服务会引发System.AggregateException

通过持续集成来构建依赖关系和本地构建

通过Github Actions持续集成平台远程构建Flutter应用程序找不到GoogleService-Info.plist文件

持续集成构建健康与推送频率不一致

DevOps - 进程“msbuild.exe”在持续集成构建中以代码“1”退出

在持续集成构建中轻松运行JavaScript单元测试