关于程序路径
LucenePath:@(System.Configuration.ConfigurationManager.AppSettings["LucenePath"])Path.Combine(相对目录)@(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "lucene_index"))Path.Combine(绝对目录)@(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, System.Configuration.ConfigurationManager.AppSettings["LucenePath"]))*@@*输出结果:LucenePath:C:\inetpub\wwwroot\www_domain_net\bin\App_Data\lucene_indexPath.Combine(相对目录)H:\wwwroot\domain\domain.Web\lucene_indexPath.Combine(绝对目录)C:\inetpub\wwwroot\www_domain_net\bin\App_Data\lucene_index*@
LucenePath:@(System.Configuration.ConfigurationManager.AppSettings["LucenePath"])<br />Path.Combine(相对目录)@(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "lucene_index"))<br />Path.Combine(绝对目录)@(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, System.Configuration.ConfigurationManager.AppSettings["LucenePath"]))<br />*@
@*输出结果:LucenePath:C:\inetpub\wwwroot\www_haolizi_net\bin\App_Data\lucene_indexPath.Combine(相对目录)H:\wwwroot\HaoLiZi\HaoLiZi.Web\lucene_indexPath.Combine(绝对目录)C:\inetpub\wwwroot\www_haolizi_net\bin\App_Data\lucene_index*@