フォルダー内に複数のコンソール アプリケーションと 1 つの MVC Web API アプリケーションがあります。これらすべてのアプリケーションが、親フォルダーにある constants.config ファイルを参照することは可能ですか? すべてのアプリケーションの各 Web.config ファイルで、構成セクションを次のように宣言しました。
<configSections>
<section name="Constants" type="System.Configuration.NameValueFileSectionHandler, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
<Constants file="~/Constants.config">
ただし、Constants.config はアプリケーションによって読み取られません。パスを正しく与える方法は?