我可以在 Visual Studio 中设置 LARGEADDRESSAWARE 吗?
- 作者: 周沫cc
- 来源: 51数据库
- 2023-02-13
问题描述
我有一个需要为 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.
- C#通过fleck实现wss协议的WebSocket多人Web实时聊天(附源码)
- 团队城市未满足要求:MSBuildTools12.0_x86_Path 存在
- 使用 MSBuild.exe 在发布模式下构建 C# 解决方案
- 当我发布 Web 应用程序时,AfterPublish 脚本不运行
- 构建时 T4 转换的产品仅在下一个构建中使用
- ASP.NET Core Application (.NET Framework) for Windows x64 only error in project.assets.json
- 新的 .csproj 格式 - 如何将整个目录指定为“链接文件"到子目录?
- 如何将条件编译符号(DefineConstants)传递给 msbuild
- MSBuild 支持 Visual Studio 2017 RTM 中的 T4 模板
- NuGet 包还原找不到包,没有源