【发布时间】:2018-03-16 17:54:13
【问题描述】:
基本上,我希望“资源”文件夹中的所有内容都是 EmbeddedResource。
这个问题很完美,但问题是关于旧的 csproj 格式。 In Visual Studio, how can I set the Build Action for an entire folder?
【问题讨论】:
基本上,我希望“资源”文件夹中的所有内容都是 EmbeddedResource。
这个问题很完美,但问题是关于旧的 csproj 格式。 In Visual Studio, how can I set the Build Action for an entire folder?
【问题讨论】:
这似乎可行,在 .csproj 文件中:
<ItemGroup>
<EmbeddedResource Include="Resources\**" />
</ItemGroup>
【讨论】: