我可以设置LARGEADDRESSAWARE在Visual Studio中? [英] Can I set LARGEADDRESSAWARE from within Visual Studio?

查看:2407
本文介绍了我可以设置LARGEADDRESSAWARE在Visual Studio中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个必须是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.

这篇关于我可以设置LARGEADDRESSAWARE在Visual Studio中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆