Powershell 动态Bin文件夹难以将Bin文件夹复制到工件位置Azure DevOps
我在Azure DevOps中的CI有问题 我需要在每个CI中运行一个通用PowerShell脚本,该脚本将文件从bin文件夹复制到具有每个项目文件夹名称的artifact(a)文件夹中 但是bin路径是动态的,例如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
$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