gpt4 book ai didi

c# - Visual Studio 测试构建步骤找不到 dll

转载 作者:行者123 更新时间:2023-11-30 21:46:17 24 4
gpt4 key购买 nike

您好,我的 TFS 构建过程中有以下构建步骤

1) 构建代码2) 运行测试

第一步有以下输入

解决方案:MyApp\TestApp*.sln

MSBuild 参数:/p:DeployOnBuild=True/p:DeployDefaultTarget=WebPublish/p:WebPublishMethod=FileSystem/p:DeleteExistingFiles=True/p:publishUrl="D:\output"

然后在我的测试步骤中,我有以下内容

测试程序集:D:\output\bin*tests*.dll

当我运行它时,我收到以下警告“未找到匹配模式的测试程序集:'D:\output\bin*tests*.dll'

除了测试项目之外,所有二进制文件都在那里我如何告诉第一步发布测试 dll?这是正确的方法吗,因为我正在对路径进行硬编码,有更好的方法吗?

最佳答案

是因为我是Release模式构建,单元测试项目没有设置为Release模式构建

关于c# - Visual Studio 测试构建步骤找不到 dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39362473/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com