简体   繁体   English

将“复制到输出目录”的默认选项设置为“始终复制”

[英]Set the default option for 'Copy to Output Directory' to 'Copy Always'

I've just started a new project in and the new project is using a fair amount of images/text files. 我刚刚在开始了一个新项目,新项目使用了大量的图像/文本文件。

The actual project is a simple installer but my requirements are too advanced for existing installers so I'm having to create my own. 实际项目是一个简单的安装程序,但我对现有安装程序的要求太高,所以我必须创建自己的安装程序。

My issue is that I'm having to go into the properties of each file I have added and change the 'Copy to Output Directory' from 'Never' to 'Copy Always' and as you can imagine this is taking a fair bit of time with around 50 files to add: 我的问题是我必须进入我添加的每个文件的属性,并将“复制到输出目录”从“从不”更改为“始终复制”,您可以想象这需要花费相当多的时间要添加大约50个文件:

在此输入图像描述

Is it possible to set the 'Copy Always' as the default for adding new files to any project? 是否可以将“始终复制”设置为将新文件添加到任何项目的默认值? If so, how? 如果是这样,怎么样?

I imagine that there is some registry tweak that can do this, but I haven't found anything. 我想有一些注册表调整可以做到这一点,但我没有找到任何东西。

I followed @Hans Passant's comment about selecting all files and setting them to 'Copy Always', as per se: 我按照@Hans Passant关于选择所有文件并将其设置为“始终复制”的评论,如下所示:

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM