问题
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