我可以设置LARGEADDRESSAWARE在Visual Studio中?LARGEADDRESSAWARE、Visual、Studio

2023-09-02 01:52:22 作者:饥饿走向夜

我有一个必须是32位,并且需要以.NET程序集/ LARGEADDRESSAWARE。

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.