Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个应用程序,其中包含大量Build Action属性设置为Content. 当我分析它时,我发现它需要大量内存所以我怀疑这些文件是原因。
Build Action
Content
这些文件是在执行时还是在我们访问它们时加载到内存中?
不,Content不像Resource。它没有嵌入到应用程序二进制文件中。当您想要复制其他文件(如图像或其他要包含在解决方案中但编译器未触及的外部文件)时,这很有用。
Resource
请参阅:文件属性http://msdn.microsoft.com/en-us/library/0c6xyb66(v=vs.90).aspx