Skip to content

Instantly share code, notes, and snippets.

@altrive
Last active August 29, 2015 13:57
Show Gist options
  • Save altrive/9773306 to your computer and use it in GitHub Desktop.
Save altrive/9773306 to your computer and use it in GitHub Desktop.
Use-NuGetPackage Microsoft.OData.Client -Verbose #Use PSNuGet <https://github.com/altrive/PSNuGet>
$context = New-Object Microsoft.OData.Client.DataServiceContext([uri] "https://graph.windows.net")
<#
New-Object : "1" 個の引数を指定して ".ctor" を呼び出し中に例外が発生しました: "'ClientEdmModelCache' のタイプ初期化子が例外をスローしました。"
System.IO.FileNotFoundException: ファイルまたはアセンブリ 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7ce
c85d7bea7798e, Retargetable=Yes'、またはその依存関係の 1 つが読み込めませんでした。指定されたファイルが見つかりません。
ファイル名 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' です。'Sys
tem.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'
場所 Microsoft.OData.Edm.Library.Annotations.EdmDirectValueAnnotationsManager.SetAnnotation(IEnumerable`1 immut
ableAnnotations, Object& transientAnnotations, String namespaceName, String localName, Object value)
場所 Microsoft.OData.Edm.Library.Annotations.EdmDirectValueAnnotationsManager.SetAnnotationValue(IEdmElement el
ement, String namespaceName, String localName, Object value)
場所 Microsoft.OData.Edm.ExtensionMethods.SetEdmVersion(IEdmModel model, Version version)
場所 Microsoft.OData.Client.DataServiceContext.ClientEdmModelCache..cctor()
#>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment