2016-08-20 9 views
1

エンティティデータモデルをプロジェクトに追加すると、このエラーが発生します。これは、基本的にApp_Dataフォルダの.mdfファイルのモーダルを作成しています。それはWCFプロジェクトです。エンティティフレームワーク変換コードの実行中に例外がスローされました

私はVS 2015コミュニティ版を使用しており、Xamarinもインストール済みです。

.netフレームワークのバージョンを4.5.0から4.5.1-2と4.6.1に変更しようとしましたが、このエラーが発生しています。私は手動でMicrosoft.CodeAnalysisパッケージをインストールしました。パッケージフォルダからすべてのものを削除しようとしました。その後、すべてのnugetプラグインを復元しました。しかし、すべての事は私のために失敗です。 Microsoft.CodeAnalysisへ

リファレンスが追加され、そのバージョンは「1.3.1.0」は

は、私がここで間違って何をしているのかもしれないのですか?

エラー:

Severity Code Description Project File Line Suppression State Error An Exception was thrown while running the transformation code. The process cannot continue. The following Exception was thrown: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=1.3.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: 'Microsoft.CodeAnalysis, Version=1.3.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' at Microsoft.VisualStudio.TextTemplating.CompilerBridge..ctor(String source, Boolean debug, IEnumerable 1 references, String cmdLineArguments) at Microsoft.VisualStudio.TextTemplating.CompilerBridge.Create(SupportedLanguage language, String source, Boolean debug, IEnumerable 1 references, String cmdLineArguments) at Microsoft.VisualStudio.TextTemplating.TransformationRunner.Compile(String source, String inputFile, IEnumerable 1 references, Boolean debug, SupportedLanguage language, String compilerOptions) at Microsoft.VisualStudio.TextTemplating.TransformationRunner.LocateAssembly(Boolean cacheAssemblies, String fullClassName, String source, String inputFile, Boolean debug, SupportedLanguage language, IEnumerable 1 compilerReferences, String compilerOptions) at Microsoft.VisualStudio.TextTemplating.TransformationRunner.PrepareTransformation(TemplateProcessingSession session, String source, ITextTemplatingEngineHost host) === Pre-bind state information === LOG: DisplayName = Microsoft.CodeAnalysis, Version=1.3.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (Fully-specified) LOG: Appbase = file:///C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/IDE/ LOG: Initial PrivatePath = NULL Calling assembly : Microsoft.VisualStudio.TextTemplating.14.0, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\Users\Hitin\AppData\Local\Microsoft\VisualStudio\14.0\devenv.exe.config LOG: Using host configuration file: LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. LOG: The same bind was seen before, and was failed with hr = 0x80131040. 1

+0

アップデート後にマシンを再起動しましたか? – Sampath

+0

@Sampath私はちょうどそれを再起動し、エラーがまだ存在するので、それは私が信じる何か他のものでなければなりません。 – Hitin

答えて

0

それは今ソートだが、VS 2015のインストールが破損している(がある)更新をxamarinのように見えます。

修復はここでは機能しません。

「VS2015コミュニティアップデート2」から「VS2015コミュニティアップデート3」へのアップグレードが唯一の解決策でしたが、現在はxamarinとVSの両方が問題なく動作しています。

関連する問題