排除模式不适用于vsts构建 [英] Exclusion pattern not working for vsts build

查看:90
本文介绍了排除模式不适用于vsts构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用VSTS构建来设置CI环境,但是我需要从nuget包装中排除一个项目.我正在使用Nuget pack任务.我正在将csproj字段的路径设置为 **\*.csproj;-:**\<name of proj>.csproj

I'm trying to setup our CI environment using VSTS build but I need to exclude one project from the nuget packaging. I'm using the Nuget pack task. I'm setting the path to csproj field to **\*.csproj;-:**\<name of proj>.csproj

但是,这似乎排除了所有项目,并且没有打包任何东西.我已经进行了一些研究,排除优先于包含,但即使我指定了要排除的项目的确切位置,也仍然排除了所有内容.删除-:位可正确构建所有内容,因此排除绝对有问题.

However, it seems to be excluding all projects and not packaging anything. I've done some research and the exclusion takes priority over the inclusion, but even when I specify the exact location of the project to exclude it still excludes everything. Remove the -: bit correctly builds everything so it's definitely something wrong with the exclusion.

有人知道这是否是一个错误( https://github.com/Microsoft/vsts-tasks/issues/4336 看起来很相似,但并不相同).还是我做错了什么?

Does anyone know if this is a bug (https://github.com/Microsoft/vsts-tasks/issues/4336 looks similar, but not the same). Or am I doing something wrong?

推荐答案

是的,否定模式似乎不起作用.

Yes, the negative pattern seems can't work.

此处有一个问题,我在上面添加了评论,您可以跟进.

There is an issue here which I added a comment, you can follow up.

这篇关于排除模式不适用于vsts构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆