EKsumic's Blog

let today = new Beginning();

Click the left button to use the catalog.

OR

vs2022的SetupProject無法選擇編譯平臺怎麽辦?

一般來講,可以在圖形界面設置,但是這裏提供一個直接修改

[*.vdproj]

文件的方法。

 

解決方法:修改安裝項目的目標平台

安裝項目(Setup Project)默認情況下是x86平台的,不支持直接更改為x64。不過,有一種方法是手動編輯項目文件,嘗試強制設置平台。

關閉Visual Studio:確保Visual Studio關閉。

編輯.vdproj文件:使用文本編輯器(如Visual Studio Code或Notepad++)打開 NouchiKenriAccess_MS_Setup.vdproj 文件。

添加/修改目標平台:找到 Product 節點,並添加或修改 TargetPlatform 屬性值為 3:1 (0表示x86, 1表示x64, 2表示AnyCPU)。例如:

"Product"
{
    ...
    "TargetPlatform" = "3:1"
    ...
}

修改完成后就沒有問題了。

This article was last edited at 2024-06-14 15:27:50

Today's comments have reached the limit. If you want to comment, please wait until tomorrow (UTC-Time).

There is 16h43m59s left until you can comment.