Hi,
I am trying to regenerate the OData Client code. My environment is below.
Visual Studio 2015 pro edition. Framework 4.5.2
- Microsoft.OData.Client (version 7.5.4)
- Microsoft.OData.Core (version 7.5.4)
- Microsoft.OData.Edm (version 7.5.4)
- Microsoft.Spatial (version 7.5.4)
Below error are thrown.
Severity Code Description Project File Line Suppression State
Error CS0116 A namespace cannot directly contain members such as fields or methods ODataUtility D:\D365\Utility\ODataUtility\ODataClient.cs 1 Active
Error Compiling transformation: 'CoreVocabularyConstants' does not contain a definition for 'OptimisticConcurrencyControl' ODataUtility D:\D365\Utility\ODataUtility\ODataClient.tt 989
Error Compiling transformation: 'IEdmModel' does not contain a definition for 'FindDeclaredValueTerm' and no extension method 'FindDeclaredValueTerm' accepting a first argument of type 'IEdmModel' could be found (are you missing a using directive or an assembly reference?) ODataUtility D:\D365\Utility\ODataUtility\ODataClient.tt 989
Error Compiling transformation: Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<Microsoft.OData.Edm.Vocabularies.IEdmVocabularyAnnotation>' to 'System.Collections.Generic.IEnumerable<IEdmVocabularyAnnotation>'. An explicit conversion exists (are you missing a cast?) ODataUtility D:\D365\Utility\ODataUtility\ODataClient.tt 831
Error Compiling transformation: The first operand of an 'is' or 'as' operator may not be a lambda expression, anonymous method, or method group. ODataUtility D:\D365\Utility\ODataUtility\ODataClient.tt 835
Error Compiling transformation: The type or namespace name 'Annotations' does not exist in the namespace 'Microsoft.OData.Edm' (are you missing an assembly reference?) ODataUtility D:\D365\Utility\ODataUtility\ODataClient.tt 13
Error Compiling transformation: The type or namespace name 'EdmxReaderSettings' could not be found (are you missing a using directive or an assembly reference?) ODataUtility D:\D365\Utility\ODataUtility\ODataClient.tt 586
Error Compiling transformation: The type or namespace name 'Expressions' does not exist in the namespace 'Microsoft.OData.Edm' (are you missing an assembly reference?) ODataUtility D:\D365\Utility\ODataUtility\ODataClient.tt 14
Error Compiling transformation: The type or namespace name 'IEdmIntegerValue' could not be found (are you missing a using directive or an assembly reference?) ODataUtility D:\D365\Utility\ODataUtility\ODataClient.tt 2267
Error Compiling transformation: The type or namespace name 'IEdmStringConstantExpression' could not be found (are you missing a using directive or an assembly reference?) ODataUtility D:\D365\Utility\ODataUtility\ODataClient.tt 836
Error Compiling transformation: The type or namespace name 'IEdmValueAnnotation' could not be found (are you missing a using directive or an assembly reference?) ODataUtility D:\D365\Utility\ODataUtility\ODataClient.tt 832
Error Compiling transformation: The type or namespace name 'IEdmValueTerm' could not be found (are you missing a using directive or an assembly reference?) ODataUtility D:\D365\Utility\ODataUtility\ODataClient.tt 835
Error Compiling transformation: The type or namespace name 'IEdmVocabularyAnnotation' could not be found (are you missing a using directive or an assembly reference?) ODataUtility D:\D365\Utility\ODataUtility\ODataClient.tt 831
Error Compiling transformation: The type or namespace name 'Library' does not exist in the namespace 'Microsoft.OData.Edm' (are you missing an assembly reference?) ODataUtility D:\D365\Utility\ODataUtility\ODataClient.tt 15
Error Compiling transformation: The type or namespace name 'Values' does not exist in the namespace 'Microsoft.OData.Edm' (are you missing an assembly reference?) ODataUtility D:\D365\Utility\ODataUtility\ODataClient.tt 16