title: Unable to cast object of type 'Microsoft.OData.Edm.Csdl.CsdlSemantics.UnresolvedType' to type 'Microsoft.OData.Edm.IEdmCollectionType'
body: <p>In Visual Studio 2013 I'm consuming an OData V4 endpoint using OData Client Code Generator found in Nuget.  Unexpectedly this week the t4 template gave the error: Unable to cast object of type 'Microsoft.OData.Edm.Csdl.CsdlSemantics.UnresolvedType' to type 'Microsoft.OData.Edm.IEdmCollectionType'.</p>
  
  <p>I have 7 OData endpoints I am working with and only one of them had an update on the back-end that required resaving the *.tt file.  Upon saving the error appeared and left the output *.cs file blank.  I then tried saving one of the *.tt files that had no model changes at the OData endpoint to see how it behaved.  The thought process was that perhaps the change in the model at the endpoint somehow was incompatible with the client code generator.  Unfortunately that one failed and produced a blank *.cs file as well with the same error. </p>
  
  <p>Luckily everything is versioned with git and I was able to roll back the files to keep the project running.</p>
  
  <p>Placing this here in case anyone else upgrades their OData Client Code Generator and gets frustrated.</p>