将模型添加到 silverlight wcf ria 服务启用的应用程序
我已经开始将 MVVm light2 框架用于启用 wcf ria 的 silverlight 4.0 应用程序。
我能够将一个名为“Models”的文件夹添加到托管 silverlight 应用程序的 ASP .Net 应用程序,我向此文件夹添加了一个类,并且我能够在我的 silverlight 应用程序中设置属性和所有内容,但是一旦我当我开始将更多此类类添加到我的 Models 文件夹中时,它们在我的 silverlight 应用程序中的任何位置都无法访问。
另外,在我的 MainViewModel.cs 中,智能感知没有显示新添加的类,我确保在我的 silvelight 应用程序中访问它们之前应用程序已构建,并且命名空间也是正确的。
我是否缺少设置属性或其他内容?
I have started using the MVVm light2 framework for the wcf ria enabled silverlight 4.0 application.
I was able to add a folder named "Models" to ASP .Net application that hosts the silverlight application, I added a class to this folder, and i am able to set the properties and all for this in my silverlight application, but once i started to add more such classes into my Models folders, they aren't getting accessible anywhere in my silverlight application.
Also in my MainViewModel.cs the intellisense is not showing the newly added class/classes , i made sure the application is build before i accessed them in my silvelight application, also the namespaces are correct.
Am I missing to set a property or something?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的团队中有人遇到了类似的问题。我记得它与 .cs 文件上的物理位置有关,这可能意味着命名空间已更改。
Someone on my team faced a similar problem. As I recall it had something to do with the physical location on the .cs files, which may imply that the namespace had changed.