2011-07-18 81 views

回答

6

你必须使用

Application.GetResourceStream(new Uri(_filePath, UriKind.Relative)); 

其中_filePath是路径到您的文件,而不前面的 '/',如 “斌/ file.txt的”。

+1

感谢他完美的工作.. – KhanZeeshan

+0

@KhanZeeshan如果这为你工作我猜你设置_Build Action_到_Resource_的文本文件。 – Praetorian

+1

不,我只是将生成操作设置为“内容” – KhanZeeshan

相关问题