NuGet package

Jul 8, 2011 at 10:59 AM
Edited Jul 8, 2011 at 11:28 AM

Any chance of adding this to NuGet please.

Many thanks

Shevek

Coordinator
Jan 9, 2012 at 4:20 PM

WCFExtras+ is now available as a NuGet package,

Aug 3, 2012 at 5:06 PM

Thanks for the nuget package, but I get an exception when adding

<behaviorExtensions>
        <add name="wsdlExtensions" type="WCFExtrasPlus.Wsdl.WsdlExtensionsConfig, WCFExtrasPlus, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
</behaviorExtensions>

to my service host:

"Beim Erstellen des Konfigurationsabschnittshandlers für "system.serviceModel/extensions" ist ein Fehler aufgetreten.: Die Datei oder Assembly "WCFExtrasPlus, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" oder eine Abhängigkeit davon wurde nicht gefunden. Die gefundene Manifestdefinition der Assembly stimmt nicht mit dem Assemblyverweis überein. (Ausnahme von HRESULT: 0x80131040)"

sorry for the german but I think there is sth wrong with the manifest... if I use the dll from codeplex it works... I tried changing the version string to 2.3.0.2 but no success.

I recognized some differences in the dll properties: 1.0.0.0 & strongname=false (codeplex) vs. 2.3.0.2 & strongname=true (nuget)

 

Thanks in advance

      
Sep 17, 2013 at 3:15 PM
Edited Sep 17, 2013 at 3:42 PM
Try this instead - obviously adjust the assembly version based on which package you're using:

<behaviorExtensions>
    <add name="wsdlExtensions" type="WCFExtrasPlus.Wsdl.WsdlExtensionsConfig, WCFExtrasPlus, Version=2.3.1.8201, Culture=neutral, PublicKeyToken=f8633fc5451b43fc" />
  </behaviorExtensions>
Then add the endpoint behaviour as usual:

<behaviors>
  <endpointBehaviors>
    <behavior name="RobsPrettyWsdlEndpointBehavior">
      <wsdlExtensions location="http://www.myliveurl.com/IdentityProvider.svc" singleFile="true" />
    </behavior>
  </endpointBehaviors>
And apply it to an endpoint:
<service name="RM.TestService">
   <endpoint behaviorConfiguration="RobsPrettyWsdlEndpointBehavior" binding="basicHttpBinding" bindingConfiguration="basicHttp" name="basicHttpEndpoint" contract="RM.Test.IIdentityProvider" />
</service>
Cheers,
Rob.