Silverlight RIA 服务、Prism 模块化和移动服务
我正在使用 Prism,因此我可以创建模块化解决方案。我需要访问模块中的 WebContext 和 AuthenticationService,并相信最好的方法是将自动生成的 AuthenticationService 和 UserRegistrationService 移动到共享项目。我已经根据我的需要创建了共享项目以及实体模型和域服务。
谁能给我一些关于移动业务应用程序项目中创建的服务的建议?我已经尝试过这个,移动了相关的资源、部分类等,但就是无法构建它。命名空间意大利面让我很沮丧。
我也有一系列警告,例如
命名空间中的元素“ItemGroup” “http://schemas.microsoft.com/developer/msbuild/2003”无效 命名空间中的子元素“RiaClientCodeGenClientAssemblySearchPath” 'http://schemas.microsoft.com/developer/msbuild/2003'。名单 预期可能的元素:'Item、Reference、COMReference、 COMFileReference、Xdcmake、Bscmake、ClCompile、ClIninclude、Midl、 ResourceCompile、PreLinkEvent、CustomBuildStep、Manifest、 项目配置、NativeReference、ProjectReference、编译、 嵌入式资源、内容、页面、资源、应用程序定义、 无、BaseApplicationManifest、文件夹、导入、服务、WebReferences、 WebReferenceUrl、FileAssociation、BootstrapperFile、PublishFile、 代码分析依赖程序集路径、代码分析字典、 代码分析导入、链接、资源编译、预构建事件、 命名空间中的 PostBuildEvent' 'http://schemas.microsoft.com/developer/msbuild/2003'。 C:\程序 文件\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Ria.Client.targets
有点令人担忧。如果我最终能把它建成的话,也许它们会神奇地消失!
I'm using Prism so I can create a modular solution. I need to access the WebContext and AuthenticationService in my modules and believe the best way to do this is to move auto generated AuthenticationService and UserRegistrationService to a shared project. I already have the shared project created where I've created and Entities Model and DomainService according to my needs.
Can anyone give me some advice on moving the services created in the Business Application project across? I've tried this, moved the associated resources, partial classes etc but just cannot get it to build. The namespace spaghetti is getting me down.
I also have a series of warnings like
The element 'ItemGroup' in namespace
'http://schemas.microsoft.com/developer/msbuild/2003' has invalid
child element 'RiaClientCodeGenClientAssemblySearchPath' in namespace
'http://schemas.microsoft.com/developer/msbuild/2003'. List of
possible elements expected: 'Item, Reference, COMReference,
COMFileReference, Xdcmake, Bscmake, ClCompile, ClInclude, Midl,
ResourceCompile, PreLinkEvent, CustomBuildStep, Manifest,
ProjectConfiguration, NativeReference, ProjectReference, Compile,
EmbeddedResource, Content, Page, Resource, ApplicationDefinition,
None, BaseApplicationManifest, Folder, Import, Service, WebReferences,
WebReferenceUrl, FileAssociation, BootstrapperFile, PublishFile,
CodeAnalysisDependentAssemblyPaths, CodeAnalysisDictionary,
CodeAnalysisImport, Link, ResourceCompile, PreBuildEvent,
PostBuildEvent' in namespace
'http://schemas.microsoft.com/developer/msbuild/2003'. C:\Program
Files\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Ria.Client.targets
which is slightly concerning. Maybe they'll magically disappear if I can finally get this to build!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,如上所述,我创建了一个新的 AuthenticationService,而不是移动和使用东西
在 app.xaml 中进行配置。您必须删除原始 silverlight 和 web 项目之间的链接,以防止在原始业务项目上创建 webcontext。
我最终移动了资源、视图等,并且我想要业务应用程序模板附带的登录表单等。这需要一点努力,我确信有一种更简单的方法 - 还不知道那是什么,但是当我需要再次这样做时,我会尝试不同的方法。
Ok, as mentioned above I created a new AuthenticationService rather than moving things about and used
in the app.xaml to configure it. You have to remove the link between the original silverlight and web project to prevent a webcontext being created on your original business project.
I ended up moving the resources, views etc as well as I wanted the login forms etc that comes with the Business application template. This was a bit of an effort and I'm sure there is an easier way - don't know what that is yet, but when I need to do this again I'll try a different approach.