在 Windows 8 或 8.1 上安裝 .NET Framework 3.5

來源:互聯網
上載者:User

標籤:des   style   c   class   blog   code   

  轉載請標明,http://www.gxabase.com

  如果您使用的是 Windows 作業系統,則您的電腦上可能已安裝 .NET Framework。具體而言,.NET Framework 4.5 是 Windows 8 附帶的,並會隨 Windows 8 作業系統一起安裝到您的電腦上。  同樣,.NET Framework 4.5.1 是 Windows 8.1附帶的。

  重要事項:未提供適用於 Windows 8 或 Windows 8.1的 .NET Framework 3.5 的下載。您必須按照本文中提供的說明進行操作,來在“控制台”中啟用 .NET Framework 3.5。

  如果安裝的應用程式需要 .NET Framework 的特定版本,則應用程式的安裝程式可能會在您的電腦上安裝或提示您安裝 .NET Framework。例如,.NET Framework 3.5 不自動隨 Windows 8 或 Windows 8.1一起安裝。  若要在 Windows 8 或更高版本上運行需要 .NET Framework 3.5 的應用程式,您必須在電腦上啟用版本 3.5。可通過兩種方式執行此操作:通過安裝或運行需要 .NET Framework 3.5 的應用程式(即,根據需要安裝 .NET Framework 3.5),或者通過在“控制台”中啟用 .NET Framework 3.5。這兩個選項都需要 網際網路連線。 

  通常,您不應從電腦中卸載 .NET Framework 的任何版本,因為您使用的應用程式可能取決於特定版本,並且可能會在移除該版本後中斷。可以在一台電腦上同時載入 .NET Framework 的多個版本。  這意味著,您不必卸載舊版本即可安裝更新版本。 

  重要說明:                   

  • 將 .NET Framework 3.5 用於為版本 2.0、3.0 以及 3.5 產生的應用程式。              

  • 在安裝 .NET Framework 3.5 之前安裝 Windows 語言套件會導致 .NET Framework 3.5 安裝失敗。在安裝任何 Windows 語言套件之前,請安裝 .NET Framework 3.5。

  • Windows CardSpace 不隨 Windows 8 上的 .NET Framework 3.5 提供。

  

按需安裝.Net Framework 3.5

  如果應用程式需要 .NET Framework 3.5,但沒有在您的電腦上找到啟用的版本,則在安裝時或在首次運行該應用程式時,將顯示以下訊息框。Install this feature to enable the .NET Framework 3.5.‘ data-guid="a24d6113d541ae3547840b6a70800e3d">在訊息框中,選擇“安裝此功能”可啟用 .NET Framework 3.5。  此選項需要 網際網路連線。 

  提示按需安裝 .NET Framework 3.5         在控制台中啟用 .NET Framework 3.5       您還可以通過“控制台”自行啟用 .NET Framework 3.5。Programs and Features, choose Turn Windows features on or off, and then select the .NET Framework 3.5 (includes .NET 2.0 and 3.0) check box.‘ data-guid="2759d363aabf537519d479d45b2d4446">在“控制台”中,選擇“程式和功能”,再選擇“啟用或禁用 Windows 功能”,然後選中“.NET Framework 3.5 (包括 .NET 2.0 和 3.0)”複選框。  此選項需要 網際網路連線。  無需選擇 Windows Communication Foundation (WCF) HTTP 啟用的子項,除非您是需要 WCF 指令碼和處理常式映射功能的開發人員。    在“控制台”中啟用或禁用 Windows 功能           安裝可能會遇到的問題  如果根據需要安裝 .NET Framework 3.5 或者在“控制台”中啟用它失敗,則會收到下列錯誤訊息之一:                       
  • 0x800f0906:“Windows 無法串連到 Internet 以下載必要的檔案。請確保已串連到 Internet,然後單擊‘重試’以便重試。” 

  • 0x800F081F:“無法完成此更改。請重新啟動您的電腦,然後重試。” 

由於下列原因可能顯示這些訊息:                       

  • 您的電腦未串連到 Internet。請串連,然後重試該操作。

    如果無法串連到 Internet,則可以通過使用部署映像服務與管理 (DISM) 命令列工具並指定從中安裝了 Windows 8 的安裝媒體(ISO 映像或 DVD),來啟用 .NET Framework 3.5。                

    1. Run as administrator).‘ data-guid="1ac7e7ab5fc8f5f46f30452678e781d6">在 Windows 8 或 Windows Server 2012 中,使用管理認證開啟命令提示字元視窗(即選擇“以管理員身份運行”)。                    

    2. 要從位於 D:\sources\sxs 目錄中的安裝媒體安裝 .NET Framework 3.5,請使用以下命令:                    

      DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:d:\sources\sxs

      其中:                    

      • /Online 面向您正在啟動並執行作業系統(而不是離線 Windows 映像)。                         

      • /Enable-Feature /FeatureName:NetFx3 specifies that you want to enable the .NET Framework 3.5.‘ data-guid="a7a530fd7685b84f22fe2ed1eb30d00a">/Enable-Feature /FeatureName:NetFx3 指定您需要啟用 .NET Framework 3.5。                        

      • /All enables all parent features of the .NET Framework 3.5.‘ data-guid="58a5709c355a47d3806e324537636861">/All 啟用 .NET framework 3.5 的所有上級功能。                         

      • /LimitAccess prevents DISM from contacting Windows Update.‘ data-guid="e52149c1b6179def3b4c68ce8e52fedf">/LimitAccess 防止 DISM 與 Windows Update 串連。                        

      • /Source specifies the location of the files needed to restore the feature (in this example, the D:\sources\sxs directory).‘ data-guid="99ce67527365838c724b1d1de6a0cd01">/Source 指定還原功能需要的檔案位置(在本樣本中,D:\sources\sxs 目錄)。

/Source specifies the location of the files needed to restore the feature (in this example, the D:\sources\sxs directory).‘ data-guid="99ce67527365838c724b1d1de6a0cd01">如果有問題,請訪問 http://www.gxabase.com諮詢。

              

           

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.