C#アプリを再構築すると、コードコントラクト分析の結果が得られないことがよくあります。これは、次のエラーメッセージが原因で発生します
CodeContracts: MyApp.Client.Model: Analysis method MyApp.Client.Model.MyClass.CreateCalculatedElements(System.Collections.Generic.List1<System.Collections.Generic.KeyValuePair2<System.String,MyCompany.Scripting.ICompiledFunction1<System.Object>>>,System.Collections.Generic.Dictionary2<System.String,MyCompany.Scripting.ICompiledFunction1<System.Decimal>>,System.Collections.Generic.Dictionary2<System.String,MyCompany.Scripting.ICompiledFunction1<System.Decimal>>) timed out
メソッドの定義は次のとおりです
internal void CreateCalculatedElements(
List<KeyValuePair<string, ICompiledFunction<object>>> preFinalCalculationScripts,
Dictionary<string, ICompiledFunction<decimal>> factorCalculators,
Dictionary<string, ICompiledFunction<decimal>> elementCalculators)
これは常にタイムアウトになるとは限りません。再構築ソリューションを介してすべてのプロジェクトではなく、1つのプロジェクトに対してのみ手動で契約チェックを実行する方法はありますか?