【发布时间】:2015-04-10 10:40:32
【问题描述】:
我在构建时使用 MSBuild 动态生成资源文件,但为了能够在运行时读取此资源文件,我需要它是嵌入式资源。
我到处查看如何将.csproj 中的文件标记为嵌入式资源,我什至尝试过这种方法无济于事。
<ItemGroup>
<Content Include="Infrastructure\Content\Store\content_store_en.json" />
<EmbeddedResource Include="Infrastructure\Content\Store\content_store_en.json">
</EmbeddedResource>
</ItemGroup>
有什么方法可以实现吗?
【问题讨论】:
-
如果对您有帮助,请将其标记为已回答:)
标签: visual-studio msbuild csproj