私のプロジェクトでlog4net.ThreadContext.Properties["subjectProperty"] = emailsubject
を使用しようとしています。/参照オプションにextern alias 'xxx'が指定されていません
2つの異なるプロジェクトがあります。1] Web - MVC 2]ビジネス層。 1] WEB -MVcプロジェクトには、Combres [2]ビジネスレイヤーへの参照があります。これらの2つのアセンブリCombresとlog4netを使用してlog4net(here i have extended SMTPAppender for dynamic emailアドレス)
を参照しています。
**私はのextern単語の下に追加されているはThreadContext
**
は、問題を解決するため
重複参照がCombresに存在し、log4netのように、実行時に持つエラー
Use the properties window to change the alias for the assembly from 'global' to 'MyAlias' At the top of the file where the aliased assembly is used, put extern alias MyAlias. This must be before any using statements. Use the alias prefix to use the namespace you want, for example using MyAlias::MyNamespace.
私は持っているエラーとして
**
のexternエイリアス 'XXX' が私が見つけた
**
これは重複していません。この質問の答えはhttp://stackoverflow.com/questions/2502640/the-extern-alias-xxx-was-not-specified-in-a-reference-optionは私にとっては役に立たない.. – swapneel
あなたはすでに手動でプロジェクトファイルを編集しましたか? –
はい。編集済みのWebプロジェクト - まだ動作していません – swapneel