简体   繁体   中英

Azure DevOps. Missing file when creating a Nuget package

Maybe someone can help me.

I get the following message when creating a NuGet package: File not found. This is displayed to me in the task "NuGet pack".

The NuGet package is built via Azure DevOps and in the build pipline there is a task "Copy Files to:$(build.artifactstagingdirectory)" in which I see that the folders are not copied from the source (vsts-agent\3\s) to the target (vsts-agent\3\a). All the other folders are copied, just this one is not and so the files it contains are not copied. In vsts-agent\3\s everything is present. My solution in Visual Studio contains the following projects: several UnitTest, several class libraries and a service. The missing folder is the service.

The Agent job in the Build Pipline contains the following Task: Use Nuget, Nuget restore, Assembly manifest Data, Build Solutions..., Publish symbols Path, Copy Files to..., Publish Artifact:drop, Nuget pack, Nuget push.

What do I need to do so that the service folder is also copied.

Thanks.

I also found out the following: In the (vsts-agent\3\s) is as described the folder with the service, but I saw that this in the bin folder is not a configuration folder (release). In the task "Copy files to..." is in the element Contents " bin\$(BuildConfiguration)\ " deposited. So it is clear that the files are not copied, because the service folder has no release folder. Why is this missing there? Can I adjust it somehow?

I'm not sure if you are using "Copy Files" task, try

在此处输入图像描述

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