简体   繁体   中英

Visual Studio Tests Build Step Cant find dlls

Hi I have the following Build steps in my TFS build process

1) Build Code 2) Run Tests

Step one has the following inputs

Solution : MyApp\\TestApp*.sln

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

Then In Step my test step I have the following

Test Assembly : D:\\output\\bin*tests*.dll

When i run it i get the following warning "No test assemblies found matching the pattern: 'D:\\output\\bin*tests*.dll'

All the binaries are there except the test project how do I tell step one to publish the test dll's as well? is this the correct way to do it as I am hard coding a path is there a better way?

这是因为我在发布模式下构建,而单元测试项目未设置为在发布模式下构建

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM