简体   繁体   English

VSTS CI / CD管道NetStandard子目录

[英]VSTS CI/CD Pipeline NetStandard Subdirectory

I am completely new to VSTS CI Pipeline, and when I say completely new, I'm talking about 4 hours in. 我对VSTS CI Pipeline完全不熟悉,当我说全新时,我说的是4个小时。

I'm trying to setup an automated build on one of my subdirectories in my projects directory,and upon successful build, create nuget packages and have them pushed to my internal "Package Management" extension I setup earlier. 我正在尝试在我的项目目录中的一个子目录上设置自动构建,并且在成功构建之后,创建nuget包并将它们推送到我之前设置的内部“Package Management”扩展。 So effectively a private repo for internal use packages. 因此,有效的内部使用包的私人回购。

The problem I am having, is that when I start my build (save and queue), It starts checking out every single file, in every folder, of every single project I have checked in (I am watching the console/build). 我遇到的问题是,当我开始构建(保存和队列)时,它开始检查每个文件中的每个文件,我检查过的每个项目(我正在观看控制台/构建)。 Most of these are say full .net framework, WCF services/fill in the blank here and are completely irrelevant to the projects in question, thus I cannot see the point of what is happening. 其中大部分都是完整的.net框架,WCF服务/在这里填空,与所讨论的项目完全无关,因此我看不出发生了什么。

So; 所以; 1) Is this normal, and ultimately, how do I limit this checkout process to only the directories and subsequent subdirectories I am trying to build the pipe for? 1)这是正常的,最终,我如何将此结帐流程限制为仅我正在尝试构建管道的目录和后续子目录?

2) How do I only build projects under a certain sub-directory, which in turn contains its own folders/projects 2)我如何只在某个子目录下构建项目,而子目录又包含自己的文件夹/项目

So Example: 例如:

$AllProjects/NetStandard/Utils/* where * contains multiple project folders $ AllProjects / NetStandard / Utils / *其中*包含多个项目文件夹

Util1 Util2 ... UtilN Util1 Util2 ... UtilN

I have used the .Net Core Template, due to the libraries under the folder in questions all being NetStandard. 我使用了.Net核心模板,因为问题文件夹下的库都是NetStandard。

Apologies for the seemingly awkward question, but again, this is quite literally brand new to me. 为这个看似尴尬的问题道歉,但同样,这对我来说是一个全新的问题。 Thanks 谢谢

I'm assuming you're using TFVC, not Git. 我假设你正在使用TFVC,而不是Git。

On the Get Sources step, you need to set your workspace mappings. 在“获取源”步骤中,您需要设置工作区映射。 Workspace mappings allow you to specify which locations in source control should be synchronized. 工作区映射允许您指定源控件中的哪些位置应该同步。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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