顯示具有 Visual Studio 標籤的文章。 顯示所有文章
顯示具有 Visual Studio 標籤的文章。 顯示所有文章

2026年1月15日 星期四

[研究]Visual Studio 更新中,.sln 無法開啟

[研究]Visual Studio 更新中,.sln 無法開啟

2026-01-15

下圖,Visual Studio Installer 正在更新 Visual Studio Enterprise 2026、Visual Studio Enterprise 2019、Visual Studio Enterprise 2022


下圖,雖然 Visual Studio Enterprise 2019 還沒輪到,但是在 .sln 按下滑鼠右鍵,選 Microsoft Visual Studio 2019


下圖,依然無法使用



(完)

2025年12月22日 星期一

[研究]Visual Studio 2026執行出錯 - 此版本的Visual Studio不再支援舊版指令碼偵錯(Internet Explorer、cscript等)。

[研究]Visual Studio 2026執行出錯 - 此版本的Visual Studio不再支援舊版指令碼偵錯(Internet Explorer、cscript等)。

2025-12-22


無法啟動程式 'https://localhost:44335/Default.aspx'。

此版本的Visual Studio不再支援舊版指令碼偵錯(Internet Explorer、cscript等)。

**********

【解決】


選 IE 以外的瀏覽器


至於有甚麼瀏覽器可以選,要看你電腦安裝了那些瀏覽器。



(完)

2025年12月5日 星期五

[研究]Visual Studio Installer 2022 不再提供了

[研究]Visual Studio Installer 2022 不再提供了

2025-12-05

Visual Studio 2022 v17.14 下載網址

https://learn.microsoft.com/zh-tw/visualstudio/releases/2022/release-notes?tabs=allfeatures#17.14.21


點過去網址變成


Visual Studio Installer 2022 不再提供了。
MSDN是可以下載到,2025/12/04 安裝後也是 Visual Studio 2022 Enterprise。

(完)

2025年12月4日 星期四

[研究]新機用 VS2019 的 VisualStudioSetup.exe 會變成安裝 VS2022 了

[研究]新機用 Visual Studio 2019 的 VisualStudioSetup.exe 會變成安裝 Visual Studio 2022 了

2025-12-04、2026-09-24

Visual Studio 2019 產品生命週期和服務
https://learn.microsoft.com/zh-tw/visualstudio/releases/2019/servicing-vs2019
版本 16.11 終止支援 2029 年 4 月

Visual Studio 2019 – Microsoft Lifecycle
https://learn.microsoft.com/zh-tw/lifecycle/products/visual-studio-2019
清單 開始日期 主要支援結束日期 延伸支援結束日期
Visual Studio 2019 2019年4月2日 2024年4月9日 2029年4月10日

直接下載舊版安裝程式看看

https://learn.microsoft.com/zh-tw/visualstudio/releases/2019/history

https://learn.microsoft.com/en-us/visualstudio/releases/2019/history

16.11.60 2026年9月8日 16.11.37627.13

https://download.visualstudio.microsoft.com/download/pr/e2324e87-3765-4b14-85e5-1234d99f6254/70dd471250470f867dc39d5784cbb9859dc174643c37c01d7685256ff1d1a958/vs_Enterprise.exe

https://download.visualstudio.microsoft.com/download/pr/e2324e87-3765-4b14-85e5-1234d99f6254/9a34d6502df58aac17f3708f07fcf4bed38bf8e0a5b6b9adc59674715651721d/vs_Professional.exe

https://download.visualstudio.microsoft.com/download/pr/e2324e87-3765-4b14-85e5-1234d99f6254/56c889adadf638062ef8e7b9421a988e8cb5441b3730e5ed28f777a538d9f69e/vs_BuildTools.exe

下圖,用舊版 vs_Enterprise.exe安裝則是舊版




(完)


2025年11月14日 星期五

[研究]Visual Studio 的 NuGet相依套件變了

[研究]Visual Studio 的 NuGet相依套件變了

2025-11-14

環境:Visual Studio 2022 + ASP.NET + WebForm + Web Application + C# + SQL Server 2019 + SQL Server Management Studio (SSMS) 20.2

NuGet 更新

System.Collections.Immutable 9.0.10 => 10.0.0
更新:
HtmlSanitizer 9.0.876 => 9.0.886
取消

因為之前更新 HtmlSanitizer 9.0.876 => 9.0.886 和 System.ValueTuple.4.5.0 -> 4.6.1 會出事,故取消

[研究]ASP.NET,無法載入檔案或組件 'System.ValueTuple
https://shaurong.blogspot.com/2025/05/aspnet-systemvaluetuple.html

System.Formats.Asn1.9.0.10 -> System.Formats.Asn1.10.0.0
更新:
HtmlSanitizer 9.0.876 => 9.0.886
取消

System.IO.Packaging.9.0.10 -> 10.0.0
更新:
System.IO.Packaging.9.0.10 -> System.IO.Packaging.10.0.0
取消

System.IO.Packaging.9.0.10 -> 10.0.0
更新:
System.IO.Packaging.9.0.10 -> System.IO.Packaging.10.0.0
取消

System.Collections.Immutable 9.0.10 => 10.0.0
更新:
System.Formats.Asn1.9.0.10 -> System.Formats.Asn1.10.0.0
System.ValueTuple.4.5.0 -> System.ValueTuple.4.6.1
居然變了,和上面不同???(上面是連續操作,不是隔陣子)

System.Formats.Asn1.9.0.10 -> System.Formats.Asn1.10.0.0
更新:
System.Formats.Asn1.9.0.10 -> System.Formats.Asn1.10.0.0
System.ValueTuple.4.5.0 -> System.ValueTuple.4.6.1
居然變了,和上面不同???

System.IO.Packaging  9.0.10 => 10.0.0
更新:
System.Formats.Asn1.9.0.10 -> System.Formats.Asn1.10.0.0
System.ValueTuple.4.5.0 -> System.ValueTuple.4.6.1
居然變了,和上面不同???

********************************************************************************

發現 Visual Studo 2019 的 NuGet 勾選安裝某一個套件,結果提示要安裝相依 B 套件,

取消,再次勾選和安裝和上次相同的一個套件,結果提示要安裝相依 C 套件,和上一次不同,Why ?

ChatGPT

這種現象在 Visual Studio 2019 NuGet 套件管理裡其實是可以理解的,原因通常和 NuGet 的相依解析機制有關,尤其是在多套件、版本範圍、以及本地快取的情況下。讓我仔細說明:


1️⃣ 套件相依版本範圍

NuGet 套件的依賴通常不是固定版本,而是 版本範圍,例如:

PackageA 1.0.0 依賴 PackageB >=1.0.0 <2.0.0

這表示 NuGet 可以選擇符合範圍的任何版本。

  • 第一次安裝,NuGet 可能選了 PackageB 1.5.0。
  • 取消後再次安裝,NuGet 可能重新解析依賴,選了 PackageC(如果 PackageB 在你的本地環境或快取中不可用,或解析策略不同)。

2️⃣ 本地快取與全局快取影響

NuGet 安裝時會使用 本地快取 (%UserProfile%\.nuget\packages):

  • 如果第一次解析失敗或部分安裝被取消,快取狀態可能變化。
  • 再次安裝時,NuGet 可能重新解析依賴,選擇不同版本的相依套件(甚至不同套件)來滿足版本要求。

3️⃣ 不同來源或封包版本

NuGet 會考慮你的 套件來源 (package source):

  • 官方 NuGet.org、公司內部 NuGet feed,甚至本地 .nupkg 檔案。
  • 若不同來源有不同版本的套件,解析時可能挑選不同版本,導致相依套件從 B 變 C。

4️⃣ NuGet 的相依解析演算法

Visual Studio 2019 的 NuGet 依賴解析邏輯是 試圖找到一個滿足所有版本限制的組合:

  • 如果取消安裝時某些中間套件被移除,再次解析時 NuGet 可能找到另一個不同組合來滿足依賴。
  • 特別是 PackageReference 的專案(vs packages.config)更容易出現不同解析結果。

5️⃣ 小結

所以你看到這種現象,主要原因是:

  • 套件相依通常是 範圍而非固定版本。
  • NuGet 每次解析時可能選擇不同滿足條件的組合。
  • 本地快取、取消安裝後的狀態、或不同來源版本,都可能影響解析結果。
  • 尤其在 Visual Studio 2019,NuGet 相依解析算法在這些邊緣情況下可能會有「不同結果」。

💡 建議方法:

  • 如果要固定依賴版本,手動在專案 .csproj 或 packages.config 指定版本號。
  • 或使用 nuget.config 指定來源和版本策略。

********************************************************************************

NuGet 如何解析套件相依性
https://learn.microsoft.com/zh-tw/nuget/concepts/dependency-resolution
How NuGet resolves package dependencies
https://learn.microsoft.com/en-us/nuget/concepts/dependency-resolution

Package versioning
https://learn.microsoft.com/zh-tw/nuget/concepts/package-versioning
https://learn.microsoft.com/en-us/nuget/concepts/package-versioning

How to trace resolving process of nuget package references
https://stackoverflow.com/questions/74004433/how-to-trace-resolving-process-of-nuget-package-references

(完)


2025年11月13日 星期四

[研究]Visual Studio 2026 Enterprise正式版 30天試用版安裝

[研究]Visual Studio 2026 Enterprise正式版 30天試用版安裝

2025-11-13

續

[研究]Visual Studio 2026 正式版於 2025-11-11 釋出
https://shaurong.blogspot.com/2025/11/visual-studio-2026-2025-11-11.html

Visual Studio 2026 系統需求
https://learn.microsoft.com/zh-tw/visualstudio/releases/2026/vs-system-requirements

支援的作業系統,僅限 x64

  • Windows 10、Windows 11
  • Windows Server 2025、2022、2019 的標準版和資料中心版。

硬體

  • 16 個核心或更多核心
  • 最少 4 GB 的 RAM,建議 16 GB RAM,最適合 64 GB RAM
  • 硬碟空間:至少 2.5 GB 至 210 GB 的可用空間,一般安裝需要 20-50 GB (下面測試僅勾選ASP.NET開發,安裝畫面需要說 9.24 GB,VM上安裝實際要約 30 GB)
  • 建議在固態硬碟 (SSD) 上安裝 Windows 和 Visual Studio
  • 顯示器解析度:最低 1366 x 768,建議 1920 x 1080 或更高

註:敝人在 Core-i8-8700 + 32GB + SSD 1TB 真實硬體上跑,Visual Studio 2022 (不是 2026) 跑 ASP.NET WebForm 的「設計」畫面,VS2022 很容易當掉,VS2019正常,疑似硬體效能撐不住,建議用好些的硬體執行。


































(完)

2025年11月12日 星期三

[研究]Visual Studio 2026 正式版於 2025-11-11 釋出

[研究]Visual Studio 2026 正式版於 2025-11-11 釋出

2025-11-12

Visual Studio 2026 正式版於 2025-11-11 釋出
https://learn.microsoft.com/zh-tw/visualstudio/releases/2026/release-history

Visual Studio 2026  線上安裝檔案,官方下載網址
https://visualstudio.microsoft.com/zh-hant/downloads/

下載得到 VisualStudioSetup.exe,版本 18.0.11205.157

(完)

2025年10月10日 星期五

[研究]微軟 Microsoft Visual Studio 2026 預覽版本安裝

[研究]微軟 Microsoft Visual Studio 2026 預覽版本安裝

2025-10-09

續這3篇

相關

[研究]SQL Server 2025 RC1繁體中文評估版 DVS ISO 下載
https://shaurong.blogspot.com/2025/10/sql-server-2025-rc1-dvs-iso.html

[研究]SQL Server 2025 RC1 Standard Developer 繁體中文評估版安裝記https://shaurong.blogspot.com/2025/10/sql-server-2025-rc1-standard-developer.html

[研究]SQL Server Management Studio (SSMS) 22 預覽版2 (Preview 2)下載安裝
https://shaurong.blogspot.com/2025/10/sql-server-management-studio-ssms-22-2.html

********************************************************************************

微軟 Microsoft Visual Studio 2026 預覽版本下載

Visual Studio 2026 Insiders
https://visualstudio.microsoft.com/insiders/?rwnlp=zh-hant

官方部落格也有下載說明與釋出公告:
Visual Studio 2026 Insiders is here!
https://devblogs.microsoft.com/visualstudio/visual-studio-2026-insiders-is-here/

Insiders 釋出備忘錄(Release Notes)頁面 
https://learn.microsoft.com/en-us/visualstudio/releases/vs18/release-notes-insiders















(完)

相關

[研究]微軟 Microsoft Visual Studio 2026 預覽版本安裝
https://shaurong.blogspot.com/2025/10/microsoft-visual-studio-2026_10.html

[研究]SQL Server 2025 RC1繁體中文評估版 DVS ISO 下載
https://shaurong.blogspot.com/2025/10/sql-server-2025-rc1-dvs-iso.html

[研究]SQL Server 2025 RC1 Standard Developer 繁體中文評估版安裝記https://shaurong.blogspot.com/2025/10/sql-server-2025-rc1-standard-developer.html

[研究]SQL Server Management Studio (SSMS) 22 預覽版2 (Preview 2)下載安裝
https://shaurong.blogspot.com/2025/10/sql-server-management-studio-ssms-22-2.html