MS OData client code generator fails: conversion compilation: metadata file "Microsoft.OData.Client.dll" not found

After pulling the project from the source control to the new dev with VS 2013, I found that I can no longer create my proxies and entity classes on the client side (from the .tt file created by the OData Client Code Generator)

I get exceptions compiling the conversion with

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

eg.

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

This is followed by several hundred other build errors, since the tt file did not generate the required classes, giving instead only scary

 ErrorGeneratingOutput 

This is despite the fact that these libraries and their accompanying XML files are present in the right place in the Bin project.

+5
source share
1 answer

I realized that I did not set the corresponding bits from "Extensions and Updates"

  • Tools> Extensions and Updates
  • Online> Visual Studio Gallery> "OData Client Code Generator" (enter / paste into the search)
  • Installed version 2.3.0

Bam - everything works again and correctly generates my proxies and entities!

Stupid to me.

+12
source

All Articles