Is there a way to find out whether an app.config file exists, without using "File.Exists"?
I tried
if ( !ConfigurationManager.ConnectionStrings.ElementInformation.IsPresent )
{...}
but IsPresent is false even if app.config with a connection string exists.
Edit:
Did I misinterpret the IsPresent Property?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…