これを同様の質問の回答として投稿しましたが、応答がなかったため、ここで運試しをしました。
PostSharp 1.5 が正常に動作する .net 2.0 アセンブリがあります。VS2012 へのアップグレードを許可されました。
プロジェクトは VS2012 によって自動変換されており、エラーが発生しています。すべてのプロジェクトで.net 3.5をターゲットにするようにしましたが、まだ取得中です
Error 27 Unhandled exception: PostSharp.CodeModel.BindingException: Cannot find the type 'System.Func`2' in assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
at PostSharp.CodeModel.AssemblyEnvelope.GetTypeDefinition(String typeName, BindingOptions bindingOptions)
at PostSharp.CodeModel.Domain.FindTypeDefinition(String assemblyQualifiedTypeName, BindingOptions bindingOptions)
at PostSharp.CodeModel.TypeRefDeclaration.GetTypeDefinition(BindingOptions bindingOptions)
at PostSharp.CodeModel.TypeSpecDeclaration.GetTypeDefinition(BindingOptions bindingOptions)
at PostSharp.Extensibility.Tasks.IndexGenericInstancesTask.Execute()
at PostSharp.Extensibility.Project.ExecutePhase(String phase)
at PostSharp.Extensibility.Project.Execute()
at PostSharp.Extensibility.PostSharpObject.ExecuteProjects()
at PostSharp.Extensibility.PostSharpObject.InvokeProject(ProjectInvocation projectInvocation)
at PostSharp.MSBuild.PostSharpRemoteTask.Execute(PostSharpTaskParameters parameters, TaskLoggingHelper log)
System.Core への参照を確認しましたが、バージョン 3.5.0.0 を指していることは間違いないため、上記の 4.0.0.0 参照も多少混乱しました。
PostSharp 1.5 は VS 2010 で 3.5 および 4.0 をターゲットとして正常に動作することを読みました。しかし、一部の人々はプロジェクトファイルなどである種の魔法のハッカーをしなければなりませんでした.
上記のように環境を設定した人はいますか?(.net 3.5、VS2012、PostSharp 1.5)
私はすでに代替案を検討しており、PostSharp 2.0 のコミュニティ バージョンが最適なようです。しかし、それまでの間、これは現在の環境で行うことができますか? また、ハッカーは何が必要ですか?
乾杯
混雑する
更新: ここにいる人の 1 人は、MSBuild ツールセットをハッキングすることでこれが可能になると考えています。誰でも光を当てることができますか?
更新: 以下のプロパティ グループ コード セクションを追加すると、VS 2012 は次のように表示します。
Error 26 The PostSharp build step failed (exit code 9009). See previous errors or the build log for details. Connectivity.Service.Client.Acl –