1

Closed

Generating Service Class with Default Services Namespace results in Build Error of generated Classes

description

When you generate classes in recursive mode, the default services namespace is Services, this conflicts with the code which references ManagedUPnP.Services as just Services, this will be fixed in a future version so that an explicit reference to ManagedUPnP.Services is used instead.
 
Workarounds
Any of the following is a viable workaround:
 
1) Do not use the default namespace or (devicename).Services for the generation
 
2) Change the offending line of code in the service generated class to ManagedUPnP.Services instead
 
3) Fix the code generation unit in ServiceGen.cs - change line 363 from:
 
        "\t\t\treturn FromServices(new Services(baseDevice, ServiceType, includingChildDevices));\r\n" +
 
to
 
        "\t\t\treturn FromServices(new ManagedUPnP.Services(baseDevice, ServiceType, includingChildDevices));\r\n" +
 
A new version will be up sometime in the future to address this minor issue.
 
Thankyou
Aaron
Closed Oct 18, 2011 at 1:31 AM by TheToid
Fixed in version 1.5

comments