我需要在构建之后复制文件,使其包含在我通过Visual Studio部署到Elastic Beanstalk的项目的bin目录中。
使用内置VS发布工具时,我使用:
<Target Name="CustomCollectFiles">
<ItemGroup>
<_CustomFiles Include="$(SolutionDir)\Lib\Neurotec\native\x64\*" />
<_CustomFiles Include="$(SolutionDir)\Lib\Neurotec\Faces.ndf" />
<FilesForPackagingFromProject Include="%(_CustomFiles.Identity)">
<DestinationRelativePath>bin\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath>
</FilesForPackagingFromProject>
</ItemGroup>
</Target>
<PropertyGroup>
<CopyAllFilesToSingleFolderForPackageDependsOn>CustomCollectFiles;
;</CopyAllFilesToSingleFolderForPackageDependsOn>
<CopyAllFilesToSingleFolderForMsdeployDependsOn>CustomCollectFiles;
;</CopyAllFilesToSingleFolderForMsdeployDependsOn>
</PropertyGroup>
在使用AWS工具进行Visual Studio部署时,如何使用类似的构建步骤?