Missing “Add Domain Service Class” in Visual Studio 2012 on Windows 10

浪子不回头ぞ 提交于 2019-12-08 07:44:53

问题


I have a Silverlight 5 app that I need to do maintenance work on. I'd like to avoid a VM.

With the release of .Net Framework 4.6.2 (in preview right now) this bug has been fixed, so it should be possible on my Win 10 machine. I have VS2012 installed along with the WCF RIA Services V1.0 SP1 (and Toolkit) plus the Silverlight 5 SDK. The project builds and runs in VS2012...

But within VS2012 I'm missing the "Add New Domain Service Class" wizard, which I need for some comparative troubleshooting. According to this answer and this link the template was removed in VS2013 and VS2015, both of which I also have installed for other projects.

How can I get the "Add New Domain Service Class" wizard back in VS2012?


回答1:


LightSwitch doesn't require much of the classes and projects that are created as part of the Domain Service Class Library template. Instead you can just:

Create a Class Library project

Add a reference to System.ServiceModel.DomainServices.Server assembly

Make your class inherit from the DomainService class found in the System.ServiceModel.DomainServices.Server namespace.

for more information Creating a WCF RIA Service for Visual Studio LightSwitch 2013-2015



来源:https://stackoverflow.com/questions/36870056/missing-add-domain-service-class-in-visual-studio-2012-on-windows-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!