WCF Custom tool warning “Cannot import wsdl:portType”

Yet another odd problem to deal with today. “Custom tool warning: cannot import wsdl:portType Could not load file or assembly”Capture

Thanks to Nuget, it appears that it tries to load all assemblies when “Reuse types in all referenced assemblies” is marked.


The WSDL tool doesn’t use the below setting so it fails.

[code langauge=”xml”]
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity name="RabbitMQ.Client" publicKeyToken="89e7d7c5feba84ce" culture="neutral" />
<bindingRedirect oldVersion="" newVersion="" />

Un-check, deselect, “Reused types in referenced assemblies” and your problems will go away, just don’t check the offending assembly again 🙂 If you have to use that assembly, for your project file to the correct version.