访问使用生成操作文件:内容 [英] Accessing files using Build Action: Content

查看:85
本文介绍了访问使用生成操作文件:内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前访问的内容文件的方式是,将它们设置为始终复制/是否有更新,然后直接将文件加载。

The way I've previously accessed content files is by setting them to "Copy always/if newer", then loading the file directly.

然而,浏览网络,似乎有另一种方式来加载它 - 它的自动包含的.exe / .dll。不过,我一直无法找出方法是什么,访问所述包含的内容。

However, browsing the web, it seems there's another way to load it - That it's automatically included in the .exe/.dll. However, I've been unable to find out what the method is, to access said included content.

推荐答案

嵌入的资源。这将导致它被涌入的组装

It is Embedded Resource. This will cause it to be streamed into your assembly.

下面是微软直通步行:的 http://support.microsoft.com/kb/319292

Here is Microsoft's walk thru: http://support.microsoft.com/kb/319292

这篇关于访问使用生成操作文件:内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆