Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Powershell 动态Bin文件夹难以将Bin文件夹复制到工件位置Azure DevOps_Powershell_Azure Devops - Fatal编程技术网

Powershell 动态Bin文件夹难以将Bin文件夹复制到工件位置Azure DevOps

Powershell 动态Bin文件夹难以将Bin文件夹复制到工件位置Azure DevOps,powershell,azure-devops,Powershell,Azure Devops,我在Azure DevOps中的CI有问题 我需要在每个CI中运行一个通用PowerShell脚本,该脚本将文件从bin文件夹复制到具有每个项目文件夹名称的artifact(a)文件夹中 但是bin路径是动态的,例如 $projectBinDirectory\bin\release\net471\win-x64 $projectBinDirectory\bin\release\net471 $projectBinDirectory\bin\Release\netcoreapp2.1\win-x6

我在Azure DevOps中的CI有问题

我需要在每个CI中运行一个通用PowerShell脚本,该脚本将文件从bin文件夹复制到具有每个项目文件夹名称的artifact(a)文件夹中

但是bin路径是动态的,例如

$projectBinDirectory\bin\release\net471\win-x64
$projectBinDirectory\bin\release\net471
$projectBinDirectory\bin\Release\netcoreapp2.1\win-x64
$projectBinDirectory\bin\Release\netcoreapp2.2\win-x64
$projectBinDirectory\bin\Release\netcoreapp2.1
将来,如果有人创建netcore 2.2或其他东西,如何在复制主项目文件时动态配置发布路径

e、 g。 抄袭

bin\release\netcoreapp2.1\win-x64 all project *.dlls,*configs etc files

问题 无法在bin\release\path之后找到项目文件


我需要找出bin\release…\projectFiles之后的动态路径。此参数修复了我的问题 -c发行版-o./bin/$(BuildConfiguration)/publishNew:


我也使用发布配置文件,但问题仍然是一样的。文件系统发布任何CPU netcoreapp2.1 bin\Release\Publish false True感谢在此处共享您的解决方案,您可以接受它作为答案,这样它可以帮助其他遇到相同问题的社区成员,我们可以归档此线程,谢谢。
artifact\Projectname\ all project files