Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MS OData Client Code Generator fails : Compiling transformation: Metadata file 'Microsoft.OData.Client.dll' could not be found

After pulling a project from source control down to a new dev machine with VS 2013 I found I could no longer generate my Client side proxy and entity classes (from the .tt file created by "OData Client Code Generator")

I get exceptions compiling the transform with

  • Microsoft.OData.Client.dll
  • Microsoft.OData.Core.dll
  • Microsoft.OData.Edm.dll

e.g.

Compiling transformation: Metadata file 'Microsoft.OData.Client.dll' could not be found

Followed by a few hundred other build errors as the tt file failed ot generate the required classes giving instead only the dreaded

ErrorGeneratingOutput 

This is despite these dlls and their accompanying xml files being present in the correct place in the project Bin.

like image 751
MemeDeveloper Avatar asked Jul 28 '15 14:07

MemeDeveloper


1 Answers

I realised that I had not installed the relevant bits from "Extensions and Updates"

  1. Tools > Extensions and Updates
  2. Online > Visual Studio Gallery > "OData Client Code Generator" (type / paste into search)
  3. Installed Version 2.3.0

Bam - all working again and generating my proxy and entities correctly !

Silly me.

like image 65
MemeDeveloper Avatar answered Oct 27 '22 18:10

MemeDeveloper