簡體   English   中英

在 Visual Studio 2019 中構建與 Windows XP、7 和 10 兼容的項目

[英]Build project compatible with Windows XP, 7 and 10 in Visual Studio 2019

我的運行環境:Windows 10、Visual Studio 2019
目標PC: Windows xp, Windows 7, Windows 10 (目前都認為是64bit)

我想做一個不依賴於目標操作系統的發行版。 例如,我只給客戶一個安裝程序,他們可能可以在 Windows xp、Windows 7 或 Windows 10 上運行該程序。
在 Visual Studio 2019 的項目屬性中,我應該檢查哪些內容?
另外,我應該在每個目標平台上編譯和構建我的項目嗎?

在VS2019中使用Visual Studio 2017 v141_xp工具集時,目標平台windows sdk會自動修改為sdk 7。

來自SDK 7的描述:

此 SDK 可用於為Windows 7、Windows XP 、Windows Server 2003、Windows Vista、Windows Server 2008 開發應用程序

雖然 Windows 7 exe 可以在 Windows 10 上兼容打開,但我建議為 Windows 7 和 10 准備單獨的構建設置。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM