.net-core - 在 MS Build 中复制到输出时如何保留文件夹?
问题描述
这是我的代码:
<ItemGroup>
<Content Include="$(ProjectDir)..\Translations\**\*.*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
基本上我告诉项目继续文件夹,并将文件夹内Translations
的所有内容复制到输出目录。
但是,当我转到输出时,我看到没有Translations
目录。只有它的文件被直接复制到bin
文件夹中。
我想要的是也保留该Translations
文件夹。换句话说,文件应该被复制到bin\Translations
目录中。
我应该怎么做才能得到这个结果?
解决方案
推荐阅读
- testing - 为什么 GoConvey 测试失败并显示错误代码 0?
- java - org.hibernate.HibernateException:缺少序列或表:使用 oracle 11g 的`BPM_SEC_USER_SEQ`
- c++ - 将回调函数指针作为参数从 vb 代码传递给 c++ dll
- vba - VBA 用户窗体作为输入框
- php - 重构 PHP 函数代码以获得更好的可读性
- mysql - MySql 批量插入 - Windows 10 任务管理器上的磁盘使用率 100%
- java - NumberFormatException Android Java
- ajax - laravel如何将分页结果发送到ajax请求中
- git - 选择一系列提交时出现 Git 樱桃选择问题
- kubernetes - 将 traefik 部署为具有 NET_BIND_SERVICE 功能的 DaemonSet