LOGO OA教程 ERP教程 模切知識交流 PMS教程 CRM教程 開發文檔 其他文檔  
 
網站管理員

【C#】獲取.net Framework框架的安裝目錄

admin
2021年5月11日 17:54 本文熱度 3862


方法一:
string frameworkInstallDir = System.Runtime.InteropServices.RuntimeEnvironment.GetRuntimeDirectory();

方法二:
public static string GetFrameworkDirectory()
{
    // This is the location of the .Net Framework Registry Key 
    string framworkRegPath = @"Software\Microsoft\.NetFramework";
    // Get a non-writable key from the registry 
    RegistryKey netFramework = Registry.LocalMachine.OpenSubKey(framworkRegPath, false);
    // Retrieve the install root path for the framework 
    string installRoot = netFramework.GetValue("InstallRoot").ToString();
    // Retrieve the version of the framework executing this program 
    string version = string.Format(@"v{0}.{1}.{2}\",
    Environment.Version.Major,
    Environment.Version.Minor,
    Environment.Version.Build);
    // Return the path of the framework 
    string path = System.IO.Path.Combine(installRoot, version);
    if (path.EndsWith("\\"))
    {
        return path;
    }
    else
    {
        return path + "\\";
    }
}

該文章在 2021/5/11 17:54:20 編輯過
關鍵字查詢
相關文章
正在查詢...
點晴ERP是一款針對中小制造業的專業生產管理軟件系統,系統成熟度和易用性得到了國內大量中小企業的青睞。
點晴PMS碼頭管理系統主要針對港口碼頭集裝箱與散貨日常運作、調度、堆場、車隊、財務費用、相關報表等業務管理,結合碼頭的業務特點,圍繞調度、堆場作業而開發的。集技術的先進性、管理的有效性于一體,是物流碼頭及其他港口類企業的高效ERP管理信息系統。
點晴WMS倉儲管理系統提供了貨物產品管理,銷售管理,采購管理,倉儲管理,倉庫管理,保質期管理,貨位管理,庫位管理,生產管理,WMS管理系統,標簽打印,條形碼,二維碼管理,批號管理軟件。
點晴免費OA是一款軟件和通用服務都免費,不限功能、不限時間、不限用戶的免費OA協同辦公管理系統。
Copyright 2010-2025 ClickSun All Rights Reserved

黄频国产免费高清视频,久久不卡精品中文字幕一区,激情五月天AV电影在线观看,欧美国产韩国日本一区二区
日本精油按摩视频福利精品 | 日日摸夜夜摸狠狠摸中文字幕 | 亚噜噜狠久久香蕉人妖 | 日本国产亚洲一区不卡 | 亚洲AV日韩AV不卡在线观看 | 中文国产日韩欧美二视频 |