app.config から設定を読み取ろうとしていますが、以下のようになります
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="Chrome" value="path to the chrome driver" />
<add key="IE32" value="path to the IE32 driver" />
<add key="IE64" value="path to the IE64 driver" />
<add key="Url" value="url to the site"/>
</appSettings>
</configuration>
私はコンテンツを読むために次のコードを使用しています
using System;
using System.Configuration;
public static class Config
{
public static string ClientId
{
get
{
return ConfigurationManager.AppSettings["IE32"];
}
}
}
常に null を返すのはなぜですか?