我正在尝试新的 LightSwitch beta 1 并在尝试构建时收到以下错误。没什么特别的——我尝试根据现有数据库中的数据源创建一个新屏幕。当然,没有地方可以添加引用。
错误 5 命名空间“System.ServiceModel”中不存在类型或命名空间名称“DomainServices”(您是否缺少程序集引用?) [...]DataClientImplementation.cs 19 37 ClientGenerated
还有人玩这个新东西吗?
如果微软很聪明,他们也会监控 StackOverflow,并可以向我提出后续问题以缩小问题范围;-)
好的,根据下面 Jeff 的建议:
在卸载现有 RIA 之前:
System.ServiceModel.DomainServices.EntityFramework.dll System.ServiceModel.DomainServices.EntityFramework.xml System.ServiceModel.DomainServices.Hosting.dll System.ServiceModel.DomainServices.Hosting.OData.dll System.ServiceModel.DomainServices.Hosting.OData.xml 系统.ServiceModel.DomainServices.Hosting.xml System.ServiceModel.DomainServices.Server.dll System.ServiceModel.DomainServices.Server.xml
从 LightSwitch iso 重新安装后:
Microsoft.ServiceModel.DomainServices.Tools.dll Microsoft.ServiceModel.DomainServices.Tools.xml System.ServiceModel.DomainServices.EntityFramework.dll System.ServiceModel.DomainServices.EntityFramework.xml System.ServiceModel.DomainServices.Hosting.dll System.ServiceModel.DomainServices .Hosting.OData.dll System.ServiceModel.DomainServices.Hosting.OData.xml System.ServiceModel.DomainServices.Hosting.xml System.ServiceModel.DomainServices.Server.dll System.ServiceModel.DomainServices.Server.xml