要在 VS 解决方案中设置的文件夹 property/properties 以将其及其下的文件包含在构建输出中
Folder property/properties to set in VS solution to include it and files under it in build output
想要在 c# 项目中包含一个文件夹及其下的静态文件以生成输出。目的是通过组合程序集的根位置和文件夹在程序中使用这些静态文件。
Folder property/properties to set in VS solution to include it and
files under it in build output
非常简单,您可以直接将文件或整个文件夹拖到解决方案资源管理器上的项目中。
And 然后将每个文件的 属性 Copy to Output Directory
更改为 Copy if Newer
.
之后,这些静态文件将在构建输出文件夹下。
这是关于解决步骤的 gif。
想要在 c# 项目中包含一个文件夹及其下的静态文件以生成输出。目的是通过组合程序集的根位置和文件夹在程序中使用这些静态文件。
Folder property/properties to set in VS solution to include it and files under it in build output
非常简单,您可以直接将文件或整个文件夹拖到解决方案资源管理器上的项目中。
And 然后将每个文件的 属性 Copy to Output Directory
更改为 Copy if Newer
.
之后,这些静态文件将在构建输出文件夹下。
这是关于解决步骤的 gif。