- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
private static string GetRootedCurrentConfigurationFile(string configurationFile)
{
if (string.IsNullOrEmpty(configurationFile))
{
throw new ArgumentException(Resources.ExceptionStringNullOrEmpty, "configurationFile");
}
if (!File.Exists(configurationFile))
{
throw new FileNotFoundException(string.Format(CultureInfo.CurrentCulture, Resources.ExceptionConfigurationLoadFileNotFound, new object[] { configurationFile }));
}
if (!Path.IsPathRooted(configurationFile))
{
return Path.Combine(AppDomain.CurrentDomain.BaseDirectory, configurationFile);
}
return configurationFile;
}
if (!File.Exists(configurationFile))
{
throw new FileNotFoundException(string.Format(Cult ureInfo.CurrentCulture, Resources.ExceptionConfigurationLoadFile NotFound, new object[] { configurationFile }));
}
Правильно Гавнакод!!!! Как у нас может найтись файл по куску пути?
И в комент даешь "минус" %username%?
Вот вам доказательства и ответ их сапорта:
http://entlib.codeplex.com/Thread/View.aspx?ThreadId=221852