Spring.NET :Error creating context 'spring.root': InputStream is null from Resource 错误的解决方法

今天在学习Spring.Net时加载配置文件时出现了Error creating context 'spring.root': InputStream is null from Resource = [assembly [SpringDemo2, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null], resource [SpringDemo2.Objects.xml]]读取失败的错误;

解决方法:

将XML的属性:“生成操作”选择“嵌入的资源”
就OK了。

你可能感兴趣的:(Inputstream)