問題描述
我有一個需要為 32 位且需要為/LARGEADDRESSAWARE 的 .net 程序集.
I have a .net assembly that needs to be 32-Bit and needs to be /LARGEADDRESSAWARE.
我知道如何使用 EditBin 執行此操作,但我想知道 Visual Studio 2010 中是否有內置方法?或者,是否有人為此編寫了 MSBuild 任務?
I know how to do this with EditBin, but I wonder if there is a built-in way in Visual Studio 2010? Or alternatively, did someone write an MSBuild Task for this?
這是一個 C# 應用程序,所以遺憾的是沒有鏈接器選項:(
This is for a C# app, so no linker options sadly :(
推薦答案
您可以將其作為構建后任務來完成.在構建事件"選項卡中,輸入以下命令
You can do it as a Post-build task. In "Build Events" tab, put following command
editbin /largeaddressaware $(TargetPath)
進入構建后事件命令行:"
into the "Post-build event command line:"
VS2008 就是這種情況.我認為它應該以與 VS2010 相同的方式工作.
This is the case for VS2008. I think it should work in the same way for VS2010.
這篇關于我可以在 Visual Studio 中設置 LARGEADDRESSAWARE 嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!