VB获取程序部署目录
发布时间:2020-12-17 07:36:41 所属栏目:百科 来源:网络整理
导读://Get the assembly informationSystem.Reflection.AssemblyassemblyInfo = System.Reflection.Assembly.GetExecutingAssembly();//Location is where the assembly is run from string assemblyLocation = assemblyInfo.Location;//CodeBase is the locatio
//Get the assembly informationSystem.Reflection.Assembly assemblyInfo = System.Reflection.Assembly.GetExecutingAssembly(); //Location is where the assembly is run from string assemblyLocation = assemblyInfo.Location; //CodeBase is the location of the ClickOnce deployment files Uri uriCodeBase = new Uri(assemblyInfo.CodeBase); string ClickOnceLocation = Path.GetDirectoryName(uriCodeBase.LocalPath.ToString()); (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |